@factiii/stack 0.1.191 → 0.1.193

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +403 -403
  3. package/bin/stack +334 -334
  4. package/dist/cli/dev-sync.js +16 -16
  5. package/dist/plugins/addons/auth/index.js +7 -7
  6. package/dist/plugins/addons/vercel/index.js +9 -9
  7. package/dist/plugins/addons/vercel/scanfix/config.js +10 -10
  8. package/dist/plugins/addons/vercel/scanfix/token.js +15 -15
  9. package/dist/plugins/approved.json +13 -13
  10. package/dist/plugins/pipelines/aws/index.js +12 -12
  11. package/dist/plugins/pipelines/aws/policies/bootstrap-policy.json +135 -135
  12. package/dist/plugins/pipelines/aws/prod.js +1 -1
  13. package/dist/plugins/pipelines/factiii/index.d.ts.map +1 -1
  14. package/dist/plugins/pipelines/factiii/index.js +5 -2
  15. package/dist/plugins/pipelines/factiii/index.js.map +1 -1
  16. package/dist/plugins/pipelines/factiii/prod.js +21 -21
  17. package/dist/plugins/pipelines/factiii/scanfix/docker.d.ts +11 -0
  18. package/dist/plugins/pipelines/factiii/scanfix/docker.d.ts.map +1 -0
  19. package/dist/plugins/pipelines/factiii/scanfix/docker.js +269 -0
  20. package/dist/plugins/pipelines/factiii/scanfix/docker.js.map +1 -0
  21. package/dist/plugins/pipelines/factiii/staging.js +23 -23
  22. package/dist/plugins/pipelines/factiii/workflows/stack-ci.yml +75 -75
  23. package/dist/plugins/pipelines/factiii/workflows/stack-cicd-prod.yml +73 -73
  24. package/dist/plugins/servers/amazon-linux/index.js +16 -16
  25. package/dist/plugins/servers/mac/index.js +12 -12
  26. package/dist/plugins/servers/mac/staging.js +2 -2
  27. package/dist/plugins/servers/ubuntu/index.js +23 -23
  28. package/dist/plugins/servers/windows/index.js +15 -15
  29. package/dist/scripts/generate-all.js +73 -73
  30. package/dist/utils/deployment-report.js +2 -2
  31. package/dist/utils/secret-prompts.js +34 -34
  32. package/dist/utils/template-generator.js +74 -74
  33. package/package.json +114 -100
package/package.json CHANGED
@@ -1,100 +1,114 @@
1
- {
2
- "name": "@factiii/stack",
3
- "version": "0.1.191",
4
- "description": "Infrastructure management package for deploying services to servers",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "bin": {
8
- "stack": "./bin/stack"
9
- },
10
- "files": [
11
- "bin/",
12
- "dist/"
13
- ],
14
- "keywords": [
15
- "infrastructure",
16
- "deployment",
17
- "docker",
18
- "nginx"
19
- ],
20
- "author": "",
21
- "license": "MIT",
22
- "repository": {
23
- "type": "git",
24
- "url": "https://github.com/factiii/stack.git"
25
- },
26
- "publishConfig": {
27
- "registry": "https://registry.npmjs.org"
28
- },
29
- "dependencies": {
30
- "@aws-sdk/client-ec2": "^3.750.0",
31
- "@aws-sdk/client-ec2-instance-connect": "^3.1001.0",
32
- "@aws-sdk/client-ecr": "^3.750.0",
33
- "@aws-sdk/client-iam": "^3.750.0",
34
- "@aws-sdk/client-rds": "^3.750.0",
35
- "@aws-sdk/client-route-53": "^3.1001.0",
36
- "@aws-sdk/client-s3": "^3.750.0",
37
- "@aws-sdk/client-ses": "^3.750.0",
38
- "@aws-sdk/client-sts": "^3.750.0",
39
- "@octokit/rest": "^20.0.2",
40
- "ansible-vault": "^1.3.0",
41
- "commander": "^11.1.0",
42
- "js-yaml": "^4.1.1",
43
- "libsodium-wrappers": "^0.7.11",
44
- "@factiii/auth": "0.6.1"
45
- },
46
- "devDependencies": {
47
- "@changesets/cli": "^2.30.0",
48
- "@types/jest": "^30.0.0",
49
- "@types/js-yaml": "^4.0.9",
50
- "@types/node": "^25.0.3",
51
- "jest": "^29.7.0",
52
- "ts-jest": "^29.4.6",
53
- "ts-node": "^10.9.2",
54
- "typescript": "^5.9.3"
55
- },
56
- "jest": {
57
- "preset": "ts-jest",
58
- "testEnvironment": "node",
59
- "testMatch": [
60
- "**/test/**/*.test.ts"
61
- ],
62
- "moduleNameMapper": {
63
- "^(\\.{1,2}/.*)\\.js$": "$1"
64
- },
65
- "collectCoverageFrom": [
66
- "src/**/*.ts",
67
- "!**/node_modules/**"
68
- ],
69
- "coverageThreshold": {
70
- "global": {
71
- "branches": 70,
72
- "functions": 70,
73
- "lines": 70,
74
- "statements": 70
75
- }
76
- }
77
- },
78
- "engines": {
79
- "node": ">=18.0.0"
80
- },
81
- "scripts": {
82
- "build": "tsc && npm run copy-assets",
83
- "build:watch": "tsc --watch",
84
- "clean": "node -e \"const fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true,force:true})\"",
85
- "copy-assets": "node -e \"const fs=require('fs'),p=require('path');fs.cpSync('src/plugins/approved.json','dist/plugins/approved.json');const d='dist/plugins/pipelines/factiii/workflows';fs.mkdirSync(d,{recursive:true});for(const f of fs.readdirSync('src/plugins/pipelines/factiii/workflows').filter(f=>f.endsWith('.yml')))fs.cpSync(p.join('src/plugins/pipelines/factiii/workflows',f),p.join(d,f));const pd='dist/plugins/pipelines/aws/policies';fs.mkdirSync(pd,{recursive:true});for(const f of fs.readdirSync('src/plugins/pipelines/aws/policies').filter(f=>f.endsWith('.json')))fs.cpSync(p.join('src/plugins/pipelines/aws/policies',f),p.join(pd,f))\"",
86
- "prebuild": "npm run clean",
87
- "prepublish-check": "node -e \"const v=require('./package.json').version; if(v.includes('-d')){console.error('❌ Cannot publish dev version:',v); process.exit(1)}\"",
88
- "test": "jest",
89
- "test:watch": "jest --watch",
90
- "test:coverage": "jest --coverage",
91
- "typecheck": "tsc --noEmit",
92
- "build:auth": "pnpm --filter @factiii/auth build",
93
- "build:all": "pnpm --filter @factiii/auth build && pnpm run build",
94
- "test:auth": "pnpm --filter @factiii/auth test",
95
- "test:all": "pnpm test && pnpm --filter @factiii/auth test",
96
- "changeset": "changeset",
97
- "version-packages": "changeset version",
98
- "release": "pnpm build:all && changeset publish"
99
- }
100
- }
1
+ {
2
+ "name": "@factiii/stack",
3
+ "version": "0.1.193",
4
+ "description": "Infrastructure management package for deploying services to servers",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "bin": {
8
+ "stack": "./bin/stack"
9
+ },
10
+ "files": [
11
+ "bin/",
12
+ "dist/"
13
+ ],
14
+ "scripts": {
15
+ "build": "tsc && npm run copy-assets",
16
+ "build:watch": "tsc --watch",
17
+ "clean": "node -e \"const fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true,force:true})\"",
18
+ "copy-assets": "node -e \"const fs=require('fs'),p=require('path');fs.cpSync('src/plugins/approved.json','dist/plugins/approved.json');const d='dist/plugins/pipelines/factiii/workflows';fs.mkdirSync(d,{recursive:true});for(const f of fs.readdirSync('src/plugins/pipelines/factiii/workflows').filter(f=>f.endsWith('.yml')))fs.cpSync(p.join('src/plugins/pipelines/factiii/workflows',f),p.join(d,f));const pd='dist/plugins/pipelines/aws/policies';fs.mkdirSync(pd,{recursive:true});for(const f of fs.readdirSync('src/plugins/pipelines/aws/policies').filter(f=>f.endsWith('.json')))fs.cpSync(p.join('src/plugins/pipelines/aws/policies',f),p.join(pd,f))\"",
19
+ "prebuild": "npm run clean",
20
+ "prepublish-check": "node -e \"const v=require('./package.json').version; if(v.includes('-d')){console.error('❌ Cannot publish dev version:',v); process.exit(1)}\"",
21
+ "prepublishOnly": "npm run prepublish-check && npm run build",
22
+ "test": "jest",
23
+ "test:watch": "jest --watch",
24
+ "test:coverage": "jest --coverage",
25
+ "typecheck": "tsc --noEmit",
26
+ "build:auth": "pnpm --filter @factiii/auth build",
27
+ "build:all": "pnpm --filter @factiii/auth build && pnpm run build",
28
+ "test:auth": "pnpm --filter @factiii/auth test",
29
+ "test:all": "pnpm test && pnpm --filter @factiii/auth test",
30
+ "changeset": "changeset",
31
+ "version-packages": "changeset version",
32
+ "release": "pnpm build:all && changeset publish"
33
+ },
34
+ "keywords": [
35
+ "infrastructure",
36
+ "deployment",
37
+ "docker",
38
+ "nginx"
39
+ ],
40
+ "author": "",
41
+ "license": "MIT",
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "https://github.com/factiii/stack.git"
45
+ },
46
+ "publishConfig": {
47
+ "registry": "https://registry.npmjs.org"
48
+ },
49
+ "dependencies": {
50
+ "@aws-sdk/client-ec2": "^3.750.0",
51
+ "@aws-sdk/client-ec2-instance-connect": "^3.1001.0",
52
+ "@aws-sdk/client-ecr": "^3.750.0",
53
+ "@aws-sdk/client-iam": "^3.750.0",
54
+ "@aws-sdk/client-rds": "^3.750.0",
55
+ "@aws-sdk/client-route-53": "^3.1001.0",
56
+ "@aws-sdk/client-s3": "^3.750.0",
57
+ "@aws-sdk/client-ses": "^3.750.0",
58
+ "@aws-sdk/client-sts": "^3.750.0",
59
+ "@factiii/auth": "^0.6.1",
60
+ "@octokit/rest": "^20.0.2",
61
+ "ansible-vault": "^1.3.0",
62
+ "commander": "^11.1.0",
63
+ "js-yaml": "^4.1.1",
64
+ "libsodium-wrappers": "^0.7.11"
65
+ },
66
+ "devDependencies": {
67
+ "@changesets/cli": "^2.30.0",
68
+ "@types/jest": "^30.0.0",
69
+ "@types/js-yaml": "^4.0.9",
70
+ "@types/node": "^25.0.3",
71
+ "jest": "^29.7.0",
72
+ "ts-jest": "^29.4.6",
73
+ "ts-node": "^10.9.2",
74
+ "typescript": "^5.9.3"
75
+ },
76
+ "jest": {
77
+ "preset": "ts-jest",
78
+ "testEnvironment": "node",
79
+ "testMatch": [
80
+ "**/test/**/*.test.ts"
81
+ ],
82
+ "moduleNameMapper": {
83
+ "^(\\.{1,2}/.*)\\.js$": "$1"
84
+ },
85
+ "collectCoverageFrom": [
86
+ "src/**/*.ts",
87
+ "!**/node_modules/**"
88
+ ],
89
+ "coverageThreshold": {
90
+ "global": {
91
+ "branches": 70,
92
+ "functions": 70,
93
+ "lines": 70,
94
+ "statements": 70
95
+ }
96
+ }
97
+ },
98
+ "packageManager": "pnpm@10.32.1",
99
+ "engines": {
100
+ "node": ">=18.0.0"
101
+ },
102
+ "pnpm": {
103
+ "overrides": {
104
+ "minimatch": ">=10.2.1",
105
+ "diff": ">=4.0.4",
106
+ "hono": ">=4.12.7",
107
+ "@hono/node-server": ">=1.19.10",
108
+ "lodash": ">=4.17.23",
109
+ "flatted": ">=3.4.0",
110
+ "rollup": ">=4.59.0",
111
+ "ajv": ">=6.14.0"
112
+ }
113
+ }
114
+ }