@brunwig/mup-aws-beanstalk 0.8.7 → 2.0.3

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 (56) hide show
  1. package/.babelrc +15 -4
  2. package/.eslintrc.yml +2 -2
  3. package/.yarn/install-state.gz +0 -0
  4. package/docs/getting-started.md +1 -1
  5. package/docs/index.md +22 -6
  6. package/index.js +1 -1
  7. package/lib/assets/Procfile +1 -0
  8. package/lib/assets/health-check.js +9 -1
  9. package/lib/assets/health-check.js.map +1 -1
  10. package/lib/assets/nginx-server.conf +14 -0
  11. package/lib/assets/node.sh +37 -7
  12. package/lib/assets/npm.sh +14 -0
  13. package/lib/assets/prevent-npm.sh +4 -0
  14. package/lib/assets/role-start.sh +61 -0
  15. package/lib/assets/start.sh +1 -1
  16. package/lib/assets/yarn.sh +17 -0
  17. package/lib/aws.js +43 -77
  18. package/lib/aws.js.map +1 -1
  19. package/lib/certificates.js +56 -59
  20. package/lib/certificates.js.map +1 -1
  21. package/lib/command-handlers.js +613 -637
  22. package/lib/command-handlers.js.map +1 -1
  23. package/lib/commands.js +144 -111
  24. package/lib/commands.js.map +1 -1
  25. package/lib/deployment-logs.js +127 -0
  26. package/lib/deployment-logs.js.map +1 -0
  27. package/lib/download.js +11 -18
  28. package/lib/download.js.map +1 -1
  29. package/lib/eb-config.js +246 -242
  30. package/lib/eb-config.js.map +1 -1
  31. package/lib/env-ready.js +87 -88
  32. package/lib/env-ready.js.map +1 -1
  33. package/lib/env-settings.js +13 -14
  34. package/lib/env-settings.js.map +1 -1
  35. package/lib/index.js +111 -81
  36. package/lib/index.js.map +1 -1
  37. package/lib/policies.js +130 -115
  38. package/lib/policies.js.map +1 -1
  39. package/lib/prepare-bundle.js +187 -194
  40. package/lib/prepare-bundle.js.map +1 -1
  41. package/lib/recheck.js +16 -13
  42. package/lib/recheck.js.map +1 -1
  43. package/lib/tsconfig.tsbuildinfo +1 -0
  44. package/lib/types.js +3 -0
  45. package/lib/types.js.map +1 -0
  46. package/lib/upload.js +35 -49
  47. package/lib/upload.js.map +1 -1
  48. package/lib/utils.js +556 -577
  49. package/lib/utils.js.map +1 -1
  50. package/lib/validate.js +61 -59
  51. package/lib/validate.js.map +1 -1
  52. package/lib/versions.js +74 -81
  53. package/lib/versions.js.map +1 -1
  54. package/package.json +60 -26
  55. package/readme.md +2 -1
  56. package/tsconfig.json +41 -0
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@brunwig/mup-aws-beanstalk",
3
- "version": "0.8.7",
3
+ "version": "2.0.3",
4
+ "type": "commonjs",
4
5
  "description": "Deploy apps to AWS Elastic Beanstalk using Meteor Up",
5
6
  "main": "index.js",
6
7
  "scripts": {
7
8
  "prepare": "npm run build",
8
- "build": "babel src --out-dir lib --copy-files --source-maps",
9
- "build:watch": "npm run build -s -- -w",
9
+ "build": "tsc --project tsconfig.json && copyfiles -u 2 src/assets/** lib/assets",
10
+ "build:watch": "concurrently \"tsc --project tsconfig.json -w\" \"chokidar 'src/assets/**/*' -c 'copyfiles -u 2 src/assets/** lib/assets'\"",
10
11
  "lint": "npm run lint:code && npm run lint:docs",
11
12
  "lint:docs": "node ./tests/validate-docs.js",
12
13
  "lint:code": "eslint .",
@@ -19,41 +20,74 @@
19
20
  "meteor-up"
20
21
  ],
21
22
  "devDependencies": {
22
- "@babel/cli": "^7.15.7",
23
- "@babel/core": "^7.15.5",
24
- "@babel/plugin-proposal-object-rest-spread": "^7.15.6",
25
- "@babel/plugin-transform-modules-commonjs": "^7.15.4",
26
- "babel-eslint": "^10.1.0",
27
- "babel-plugin-transform-object-rest-spread": "^6.26.0",
28
- "chai": "^4.3.4",
29
- "eslint": "^7.32.0",
30
- "eslint-config-airbnb": "^16.1.0",
31
- "eslint-plugin-import": "^2.24.2",
32
- "eslint-plugin-jsx-a11y": "^6.4.1",
33
- "eslint-plugin-react": "^7.26.0",
23
+ "@babel/cli": "^7.23.0",
24
+ "@babel/core": "^7.23.2",
25
+ "@babel/eslint-parser": "^7.22.15",
26
+ "@babel/preset-env": "^7.23.2",
27
+ "@types/archiver": "^5.3.4",
28
+ "@types/ejs": "^3.1.4",
29
+ "@types/lodash": "^4.14.200",
30
+ "@types/node": "^20.8.9",
31
+ "@types/random-seed": "^0.3.4",
32
+ "@types/shell-escape": "^0.2.2",
33
+ "@types/ssh2": "^1.11.15",
34
+ "@types/uuid": "^9.0.6",
35
+ "@typescript-eslint/eslint-plugin": "^5.59.9",
36
+ "@typescript-eslint/parser": "^5.59.9",
37
+ "chai": "^4.3.10",
38
+ "chokidar-cli": "^3.0.0",
39
+ "concurrently": "^9.1.2",
40
+ "copyfiles": "^2.4.1",
41
+ "eslint": "^8.53.0",
42
+ "eslint-config-standard": "^17.1.0",
43
+ "eslint-plugin-import": "^2.29.0",
44
+ "eslint-plugin-jsx-a11y": "^6.7.1",
45
+ "eslint-plugin-react": "^7.33.2",
46
+ "eslint-plugin-standard": "^5.0.0",
34
47
  "gfm-code-blocks": "^1.0.0",
35
- "mocha": "^8.0.1",
36
- "mup": "^1.5.8",
37
- "shelljs": "^0.8.4"
48
+ "mocha": "^10.2.0",
49
+ "shelljs": "^0.8.4",
50
+ "standard": "^17.1.0",
51
+ "typescript": "^5.2.2"
38
52
  },
39
53
  "dependencies": {
40
- "@hapi/joi": "^15.1.1",
41
- "archiver": "^4.0.2",
42
- "aws-sdk": "^2.991.0",
43
- "axios": "^0.22.0",
44
- "babel-polyfill": "^6.26.0",
45
- "chalk": "^2.3.0",
54
+ "@aws-sdk/client-acm": "3.348.0",
55
+ "@aws-sdk/client-auto-scaling": "3.350.0",
56
+ "@aws-sdk/client-cloudtrail": "3.348.0",
57
+ "@aws-sdk/client-cloudwatch-events": "3.348.0",
58
+ "@aws-sdk/client-cloudwatch-logs": "3.353.0",
59
+ "@aws-sdk/client-ec2": "3.348.0",
60
+ "@aws-sdk/client-ec2-instance-connect": "3.348.0",
61
+ "@aws-sdk/client-elastic-beanstalk": "3.348.0",
62
+ "@aws-sdk/client-iam": "3.348.0",
63
+ "@aws-sdk/client-s3": "3.348.0",
64
+ "@aws-sdk/client-ssm": "3.348.0",
65
+ "@aws-sdk/client-sts": "3.348.0",
66
+ "@aws-sdk/lib-storage": "3.348.0",
67
+ "archiver": "^6.0.1",
68
+ "axios": "^1.5.1",
69
+ "chalk": "^4.1.2",
46
70
  "ejs": "^3.1.8",
71
+ "joi": "^17.11.0",
47
72
  "lodash": "^4.17.21",
48
73
  "random-seed": "^0.3.0",
49
74
  "shell-escape": "^0.2.0",
50
- "ssh2": "^1.4.0",
51
- "uuid": "^3.1.0"
75
+ "ssh2": "^1.13.0",
76
+ "uuid": "^9.0.1"
77
+ },
78
+ "engines": {
79
+ "node": ">=14.0.0"
52
80
  },
53
81
  "directories": {
54
82
  "doc": "docs",
55
83
  "test": "tests"
56
84
  },
85
+ "standard": {
86
+ "parser": "@babel/eslint-parser",
87
+ "ignore": [
88
+ "/node_modules/*"
89
+ ]
90
+ },
57
91
  "repository": {
58
92
  "type": "git",
59
93
  "url": "git+https://github.com/Brunwig/mup-aws-beanstalk.git"
package/readme.md CHANGED
@@ -12,7 +12,8 @@ Features:
12
12
  - Meteor settings.json
13
13
  - Zero downtime deploys
14
14
  - Automatically uses the correct node version
15
-
15
+ - Worker environments
16
+ - All AWS specific functions used are documented here: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ElasticBeanstalk.html#createPlatformVersion-property
16
17
  [Getting Started Guide](./docs/getting-started.md)
17
18
 
18
19
  [Documentation](./docs/index.md)
package/tsconfig.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Basic Options */
4
+ "target": "es2018",
5
+ "module": "CommonJS",
6
+ "lib": ["esnext", "dom"],
7
+ "allowJs": true,
8
+ "checkJs": false,
9
+ "jsx": "preserve",
10
+ "incremental": true,
11
+
12
+ /* Strict Type-Checking Options */
13
+ "strict": true,
14
+ "noImplicitAny": true,
15
+ "strictNullChecks": true,
16
+
17
+ "noErrorTruncation": true,
18
+ "sourceMap": true,
19
+
20
+ /* Additional Checks */
21
+ "noUnusedLocals": true,
22
+ "noUnusedParameters": true,
23
+ "noImplicitReturns": false,
24
+ "noFallthroughCasesInSwitch": false,
25
+
26
+ /* Module Resolution Options */
27
+ "baseUrl": "./src",
28
+ "paths": {
29
+ "/*": ["*"]
30
+ },
31
+ "moduleResolution": "node",
32
+ "resolveJsonModule": true,
33
+ "esModuleInterop": true,
34
+ "preserveSymlinks": true,
35
+
36
+ /* Build Options */
37
+ "outDir": "./lib",
38
+ // "rootDir": "./src",
39
+ },
40
+ "include": ["./src/**/*"],
41
+ }