diff --git a/package.json b/package.json index cbc1964a..487794c4 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "eslint": "^8.57.0", "shx": "^0.3.4", "typescript": "^5.4.3", - "yakumo": "^1.0.0-beta.14", + "yakumo": "^1.0.0-beta.15", "yakumo-esbuild": "^1.0.0-beta.5", "yakumo-tsc": "^1.0.0-beta.3" } diff --git a/packages/create/package.json b/packages/create/package.json new file mode 100644 index 00000000..841cbf9d --- /dev/null +++ b/packages/create/package.json @@ -0,0 +1,32 @@ +{ + "name": "create-satori", + "description": "Setup a Satori application", + "version": "0.1.1", + "type": "module", + "bin": "lib/bin.js", + "files": [ + "lib" + ], + "author": "Shigma ", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/satorijs/satori.git", + "directory": "packages/create" + }, + "bugs": { + "url": "https://github.com/satorijs/satori/issues" + }, + "keywords": [ + "satori", + "application", + "create", + "scaffold", + "template", + "generator", + "boilerplate" + ], + "dependencies": { + "create-cordis": "^0.1.4" + } +} diff --git a/packages/create/src/bin.ts b/packages/create/src/bin.ts new file mode 100644 index 00000000..e0812f00 --- /dev/null +++ b/packages/create/src/bin.ts @@ -0,0 +1,11 @@ +import { createRequire } from 'node:module' +import scaffold from 'create-cordis' + +const require = createRequire(import.meta.url) +const { version } = require('../package.json') + +scaffold({ + name: 'satori', + version, + template: '@satorijs/boilerplate', +}) diff --git a/packages/create/tsconfig.json b/packages/create/tsconfig.json new file mode 100644 index 00000000..4a6f2bbe --- /dev/null +++ b/packages/create/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.base", + "compilerOptions": { + "rootDir": "src", + "outDir": "lib", + "module": "esnext", + "moduleResolution": "bundler", + }, + "include": [ + "src", + ], +}