-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
39 lines (39 loc) · 1.21 KB
/
Copy pathpackage.json
File metadata and controls
39 lines (39 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"name": "deploy-setup",
"version": "1.3.0",
"description": "通用 CI/CD 配置生成工具 - git push 即部署到 Linux VPS",
"main": "dist/cli.js",
"bin": {
"deploy-setup": "./bin/deploy-setup.js"
},
"scripts": {
"build": "tsc",
"postbuild": "node -e \"const fs=require('fs');const p=require('path');function c(s,d){fs.mkdirSync(d,{recursive:true});for(const f of fs.readdirSync(s)){const sp=p.join(s,f),dp=p.join(d,f);fs.statSync(sp).isDirectory()?c(sp,dp):fs.copyFileSync(sp,dp)}}c('src/templates','dist/templates')\"",
"test": "vitest run",
"test:watch": "vitest",
"verify": "npm run build && npm test && node dist/cli.js --version && node dist/cli.js detect --json -d .",
"verify:container": "npm run build && bash scripts/verify-container.sh",
"dev": "tsc --watch",
"start": "node dist/cli.js"
},
"keywords": [
"cicd",
"deploy",
"github-actions",
"docker",
"vps"
],
"license": "MIT",
"dependencies": {
"chalk": "^4.1.2",
"commander": "^11.1.0",
"inquirer": "^8.2.6",
"ora": "^5.4.1"
},
"devDependencies": {
"@types/inquirer": "^8.2.10",
"@types/node": "^20.11.0",
"typescript": "^5.3.3",
"vitest": "^4.0.18"
}
}