From 505121e7d3da9e50910ed958efb91ee4fee4a5c6 Mon Sep 17 00:00:00 2001 From: Shigma Date: Mon, 11 Sep 2023 01:06:46 +0800 Subject: [PATCH] chore: setup server-basic --- packages/server-basic/.npmignore | 2 ++ packages/server-basic/package.json | 39 +++++++++++++++++++++++++++++ packages/server-basic/tsconfig.json | 12 +++++++++ 3 files changed, 53 insertions(+) create mode 100644 packages/server-basic/.npmignore create mode 100644 packages/server-basic/package.json create mode 100644 packages/server-basic/tsconfig.json diff --git a/packages/server-basic/.npmignore b/packages/server-basic/.npmignore new file mode 100644 index 00000000..7e5fcbc1 --- /dev/null +++ b/packages/server-basic/.npmignore @@ -0,0 +1,2 @@ +.DS_Store +tsconfig.tsbuildinfo diff --git a/packages/server-basic/package.json b/packages/server-basic/package.json new file mode 100644 index 00000000..89ed1d00 --- /dev/null +++ b/packages/server-basic/package.json @@ -0,0 +1,39 @@ +{ + "name": "@satorijs/server-basic", + "description": "Basic API server for Satori protocol", + "version": "0.0.1", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "exports": { + ".": { + "node": "./lib/index.js", + "browser": "./lib/index.mjs", + "types": "./lib/index.d.ts" + }, + "./package.json": "./package.json" + }, + "files": [ + "lib" + ], + "author": "Shigma ", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/satorijs/satori.git", + "directory": "packages/server-basic" + }, + "bugs": { + "url": "https://github.com/satorijs/satori/issues" + }, + "homepage": "https://github.com/satorijs/satori/tree/master/packages/server-basic", + "keywords": [ + "satori", + "protocol", + "server", + "basic", + "api" + ], + "peerDependencies": { + "@satorijs/satori": "^3.0.0-alpha.1" + } +} diff --git a/packages/server-basic/tsconfig.json b/packages/server-basic/tsconfig.json new file mode 100644 index 00000000..6f11f324 --- /dev/null +++ b/packages/server-basic/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.base", + "compilerOptions": { + "rootDir": "src", + "outDir": "lib", + "strict": true, + "noImplicitAny": false, + }, + "include": [ + "src", + ], +}