first commit

This commit is contained in:
yangzhaohan
2026-06-22 15:48:47 +08:00
commit c6f4311360
4 changed files with 55 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
node_modules
package-lock.json
+22
View File
@@ -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"
}
+17
View File
@@ -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);
+14
View File
@@ -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"]
}