rage-fw-cli init

This commit is contained in:
Danya H 2024-06-13 16:26:08 +01:00
parent 73dde02792
commit 2054bc0a75
5 changed files with 71 additions and 0 deletions

12
cli/.gitignore vendored Normal file
View File

@ -0,0 +1,12 @@
# build
bin/
# deps
node_modules/
package-lock.json
yarn.lock
pnpm-lock.yaml
# dev
.vscode/
.idea/

6
cli/.prettierrc.yaml Normal file
View File

@ -0,0 +1,6 @@
tabWidth: 4
printWidth: 80
singleQuote: true
semi: false
arrowParens: avoid
endOfLine: auto

25
cli/package.json Normal file
View File

@ -0,0 +1,25 @@
{
"name": "rage-framework-cli",
"version": "0.0.23",
"bin": {
"rage-fw": "bin/index.js"
},
"main": "bin/index.js",
"scripts": {
"watch": "tsc -w"
},
"description": "CLI to scaffold a template project for RageFW",
"keywords": [],
"author": "rilaxik",
"license": "ISC",
"dependencies": {
"chalk": "4.1.2",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/node": "^20.14.2",
"@types/yargs": "^17.0.32",
"prettier": "^3.3.2",
"typescript": "^5.4.5"
}
}

4
cli/src/index.ts Normal file
View File

@ -0,0 +1,4 @@
import yargs from 'yargs'
import { hideBin } from 'yargs/helpers'
yargs(hideBin(process.argv)).help().argv

24
cli/tsconfig.json Normal file
View File

@ -0,0 +1,24 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "bin",
"esModuleInterop": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noImplicitAny": true
},
"include": [
"src/index.ts"
],
"exclude": [
"node_modules"
]
}