first commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
package-lock.json
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "brick-cli",
|
||||
"version": "0.0.0",
|
||||
"description": "Brick CLI — 源码级 Spring Boot 脚手架工具",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
"brick": "./dist/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"dev": "tsc --watch"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.0.0",
|
||||
"typescript": "^5.7.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const USAGE = `
|
||||
Brick CLI — 源码级 Spring Boot 脚手架
|
||||
|
||||
Usage:
|
||||
brick create <project-name> 创建新项目
|
||||
brick add <module>[:variant] 向已有项目增量添加积木
|
||||
brick list 显示可用积木列表
|
||||
|
||||
Examples:
|
||||
brick create my-app
|
||||
brick add cache:redisson
|
||||
brick list
|
||||
`;
|
||||
|
||||
console.log(USAGE);
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
Reference in New Issue
Block a user