@pwrdrvr/microapps-publish 0.4.0-alpha.2 → 0.4.0-alpha.4
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.
- package/README.md +62 -61
- package/dist/commands/delete.d.ts +3 -0
- package/dist/commands/delete.d.ts.map +1 -1
- package/dist/commands/delete.js +27 -10
- package/dist/commands/delete.js.map +1 -1
- package/dist/commands/nextjs-version.d.ts +2 -0
- package/dist/commands/nextjs-version.d.ts.map +1 -1
- package/dist/commands/nextjs-version.js +20 -5
- package/dist/commands/nextjs-version.js.map +1 -1
- package/dist/commands/preflight.d.ts +3 -0
- package/dist/commands/preflight.d.ts.map +1 -1
- package/dist/commands/preflight.js +27 -10
- package/dist/commands/preflight.js.map +1 -1
- package/dist/commands/publish-static.d.ts +6 -1
- package/dist/commands/publish-static.d.ts.map +1 -1
- package/dist/commands/publish-static.js +64 -21
- package/dist/commands/publish-static.js.map +1 -1
- package/dist/commands/publish.d.ts +7 -0
- package/dist/commands/publish.d.ts.map +1 -1
- package/dist/commands/publish.js +58 -15
- package/dist/commands/publish.js.map +1 -1
- package/dist/lib/DeployClient.d.ts +1 -1
- package/dist/lib/DeployClient.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/commands/delete.ts +29 -9
- package/src/commands/nextjs-version.ts +19 -5
- package/src/commands/preflight.ts +29 -9
- package/src/commands/publish-static.ts +72 -23
- package/src/commands/publish.ts +68 -16
- package/src/lib/DeployClient.ts +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
Publish tool for deploying apps and updates
|
|
35
35
|
|
|
36
36
|
VERSION
|
|
37
|
-
@pwrdrvr/microapps-publish/0.0.0 darwin-
|
|
37
|
+
@pwrdrvr/microapps-publish/0.0.0 darwin-arm64 node-v18.12.1
|
|
38
38
|
|
|
39
39
|
USAGE
|
|
40
40
|
$ microapps-publish [COMMAND]
|
|
@@ -42,15 +42,12 @@ USAGE
|
|
|
42
42
|
COMMANDS
|
|
43
43
|
delete Delete app/version
|
|
44
44
|
help display help for microapps-publish
|
|
45
|
-
nextjs-version Apply version to next.config.js overtop of 0.0.0
|
|
46
|
-
placeholder
|
|
45
|
+
nextjs-version Apply version to next.config.js overtop of 0.0.0 placeholder
|
|
47
46
|
nextjs-version-restore Restore next.config.js
|
|
48
47
|
preflight Check if app/version are available
|
|
49
|
-
publish Publish arbitrary framework app - deploy static
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
publish-static Publish arbitrary framework static app - deploy
|
|
53
|
-
static assets to S3 only.
|
|
48
|
+
publish Publish arbitrary framework app - deploy static assets to S3, alias the $LATEST Lambda
|
|
49
|
+
function, and add integration/route to API Gateway.
|
|
50
|
+
publish-static Publish arbitrary framework static app - deploy static assets to S3 only.
|
|
54
51
|
```
|
|
55
52
|
|
|
56
53
|
## Command - preflight
|
|
@@ -64,17 +61,17 @@ USAGE
|
|
|
64
61
|
$ microapps-publish preflight
|
|
65
62
|
|
|
66
63
|
OPTIONS
|
|
67
|
-
-a, --
|
|
68
|
-
-d, --
|
|
69
|
-
-n, --
|
|
64
|
+
-a, --app-name=app-name MicroApps app name (this becomes the path the app is rooted at)
|
|
65
|
+
-d, --deployer-lambda-name=deployer-lambda-name Name of the deployer lambda function
|
|
66
|
+
-n, --new-version=new-version New semantic version to apply
|
|
70
67
|
|
|
71
|
-
-o, --overwrite
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
-o, --overwrite Allow overwrite - Warn but do not fail if version exists.
|
|
69
|
+
Discouraged outside of test envs if cacheable static files have
|
|
70
|
+
changed.
|
|
74
71
|
|
|
75
|
-
-v, --version
|
|
72
|
+
-v, --version show CLI version
|
|
76
73
|
|
|
77
|
-
--help
|
|
74
|
+
--help show CLI help
|
|
78
75
|
|
|
79
76
|
EXAMPLE
|
|
80
77
|
$ microapps-publish preflight -d microapps-deployer-dev -a release -n 0.0.13
|
|
@@ -92,30 +89,37 @@ USAGE
|
|
|
92
89
|
$ microapps-publish publish
|
|
93
90
|
|
|
94
91
|
OPTIONS
|
|
95
|
-
-a, --
|
|
96
|
-
-d, --
|
|
92
|
+
-a, --app-name=app-name MicroApps app name (this becomes the path the app is rooted at)
|
|
93
|
+
-d, --deployer-lambda-name=deployer-lambda-name Name of the deployer lambda function
|
|
97
94
|
|
|
98
|
-
-i, --
|
|
99
|
-
|
|
95
|
+
-i, --default-file=default-file Default file to return when the app is loaded via the router
|
|
96
|
+
without a version (e.g. when app/ is requested).
|
|
100
97
|
|
|
101
|
-
-l, --
|
|
98
|
+
-l, --app-lambda-name=app-lambda-name ARN of lambda version, alias, or function (name or ARN) to deploy
|
|
102
99
|
|
|
103
|
-
-n, --
|
|
100
|
+
-n, --new-version=new-version New semantic version to apply
|
|
104
101
|
|
|
105
|
-
-o, --overwrite
|
|
106
|
-
|
|
107
|
-
|
|
102
|
+
-o, --overwrite Allow overwrite - Warn but do not fail if version exists.
|
|
103
|
+
Discouraged outside of test envs if cacheable static files have
|
|
104
|
+
changed.
|
|
108
105
|
|
|
109
|
-
-s, --
|
|
110
|
-
|
|
111
|
-
|
|
106
|
+
-s, --static-assets-path=static-assets-path Path to files to be uploaded to S3 static bucket at app/version/
|
|
107
|
+
path. Do include app/version/ in path if files are already
|
|
108
|
+
"rooted" under that path locally.
|
|
112
109
|
|
|
113
|
-
-
|
|
110
|
+
-t, --type=(apigwy|lambda-url|url|static) [default: lambda-url] Type of the application and how its
|
|
111
|
+
requests are routed
|
|
114
112
|
|
|
115
|
-
--
|
|
113
|
+
-u, --url=url URL for `url` type applications
|
|
114
|
+
|
|
115
|
+
-v, --version show CLI version
|
|
116
|
+
|
|
117
|
+
--help show CLI help
|
|
116
118
|
|
|
117
|
-
--
|
|
118
|
-
|
|
119
|
+
--no-cache Force revalidation of CloudFront and browser caching of static
|
|
120
|
+
assets
|
|
121
|
+
|
|
122
|
+
--startup-type=(iframe|direct) [default: iframe] How the app should be loaded
|
|
119
123
|
|
|
120
124
|
EXAMPLE
|
|
121
125
|
$ microapps-publish publish -d microapps-deployer-dev -l microapps-app-release-dev -a release -n 0.0.21
|
|
@@ -140,32 +144,31 @@ USAGE
|
|
|
140
144
|
$ microapps-publish publish-static
|
|
141
145
|
|
|
142
146
|
OPTIONS
|
|
143
|
-
-a, --
|
|
144
|
-
-d, --
|
|
147
|
+
-a, --app-name=app-name MicroApps app name (this becomes the path the app is rooted at)
|
|
148
|
+
-d, --deployer-lambda-name=deployer-lambda-name Name of the deployer lambda function
|
|
145
149
|
|
|
146
|
-
-i, --
|
|
147
|
-
|
|
150
|
+
-i, --default-file=default-file Default file to return when the app is loaded via the router
|
|
151
|
+
without a version (e.g. when app/ is requested).
|
|
148
152
|
|
|
149
|
-
-n, --
|
|
153
|
+
-n, --new-version=new-version New semantic version to apply
|
|
150
154
|
|
|
151
|
-
-o, --overwrite
|
|
152
|
-
|
|
153
|
-
|
|
155
|
+
-o, --overwrite Allow overwrite - Warn but do not fail if version exists.
|
|
156
|
+
Discouraged outside of test envs if cacheable static files have
|
|
157
|
+
changed.
|
|
154
158
|
|
|
155
|
-
-s, --
|
|
156
|
-
|
|
157
|
-
|
|
159
|
+
-s, --static-assets-path=static-assets-path Path to files to be uploaded to S3 static bucket at app/version/
|
|
160
|
+
path. Do include app/version/ in path if files are already
|
|
161
|
+
"rooted" under that path locally.
|
|
158
162
|
|
|
159
|
-
-v, --version
|
|
163
|
+
-v, --version show CLI version
|
|
160
164
|
|
|
161
|
-
--help
|
|
165
|
+
--help show CLI help
|
|
162
166
|
|
|
163
|
-
--
|
|
164
|
-
|
|
167
|
+
--no-cache Force revalidation of CloudFront and browser caching of static
|
|
168
|
+
assets
|
|
165
169
|
|
|
166
170
|
EXAMPLE
|
|
167
|
-
$ microapps-publish publish-static -d microapps-deployer-dev -l microapps-app-release-dev -a release -n
|
|
168
|
-
0.0.21
|
|
171
|
+
$ microapps-publish publish-static -d microapps-deployer-dev -l microapps-app-release-dev -a release -n 0.0.21
|
|
169
172
|
✔ Get S3 Temp Credentials [1s]
|
|
170
173
|
✔ Confirm Static Assets Folder Exists [0.0s]
|
|
171
174
|
✔ Copy Static Files to Local Upload Dir [0.0s]
|
|
@@ -186,10 +189,10 @@ USAGE
|
|
|
186
189
|
$ microapps-publish nextjs-version
|
|
187
190
|
|
|
188
191
|
OPTIONS
|
|
189
|
-
-l, --
|
|
190
|
-
-n, --
|
|
191
|
-
-v, --version
|
|
192
|
-
--help
|
|
192
|
+
-l, --leave-copy Leave a copy of the modifed files as .modified
|
|
193
|
+
-n, --new-version=new-version New semantic version to apply
|
|
194
|
+
-v, --version show CLI version
|
|
195
|
+
--help show CLI help
|
|
193
196
|
|
|
194
197
|
EXAMPLE
|
|
195
198
|
$ microapps-publish nextjs-version -n 0.0.13
|
|
@@ -201,20 +204,18 @@ EXAMPLE
|
|
|
201
204
|
`npx microapps-publish nextjs-version-restore help`
|
|
202
205
|
|
|
203
206
|
```
|
|
204
|
-
|
|
207
|
+
Restore next.config.js
|
|
205
208
|
|
|
206
209
|
USAGE
|
|
207
|
-
$ microapps-publish nextjs-version
|
|
210
|
+
$ microapps-publish nextjs-version-restore
|
|
208
211
|
|
|
209
212
|
OPTIONS
|
|
210
|
-
-
|
|
211
|
-
|
|
212
|
-
-v, --version show CLI version
|
|
213
|
-
--help show CLI help
|
|
213
|
+
-v, --version show CLI version
|
|
214
|
+
--help show CLI help
|
|
214
215
|
|
|
215
216
|
EXAMPLE
|
|
216
|
-
$ microapps-publish nextjs-version
|
|
217
|
-
✔
|
|
217
|
+
$ microapps-publish nextjs-version-restore
|
|
218
|
+
✔ Restoring Modified Config Files [0.0s]
|
|
218
219
|
```
|
|
219
220
|
|
|
220
221
|
## Command - delete
|
|
@@ -7,8 +7,11 @@ export declare class DeleteCommand extends Command {
|
|
|
7
7
|
version: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
|
8
8
|
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
|
9
9
|
appName: flagsParser.IOptionFlag<string>;
|
|
10
|
+
'app-name': flagsParser.IOptionFlag<string>;
|
|
10
11
|
newVersion: flagsParser.IOptionFlag<string>;
|
|
12
|
+
'new-version': flagsParser.IOptionFlag<string>;
|
|
11
13
|
deployerLambdaName: flagsParser.IOptionFlag<string>;
|
|
14
|
+
'deployer-lambda-name': flagsParser.IOptionFlag<string>;
|
|
12
15
|
};
|
|
13
16
|
run(): Promise<void>;
|
|
14
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../src/commands/delete.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK/D,qBAAa,aAAc,SAAQ,OAAO;IACxC,MAAM,CAAC,WAAW,SAAwB;IAE1C,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK
|
|
1
|
+
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../src/commands/delete.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK/D,qBAAa,aAAc,SAAQ,OAAO;IACxC,MAAM,CAAC,WAAW,SAAwB;IAE1C,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;MAyCV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA2E3B"}
|
package/dist/commands/delete.js
CHANGED
|
@@ -10,16 +10,15 @@ const Config_1 = require("../config/Config");
|
|
|
10
10
|
const DeployClient_1 = tslib_1.__importDefault(require("../lib/DeployClient"));
|
|
11
11
|
class DeleteCommand extends command_1.Command {
|
|
12
12
|
async run() {
|
|
13
|
-
var _a, _b, _c;
|
|
13
|
+
var _a, _b, _c, _d, _e, _f;
|
|
14
14
|
const config = Config_1.Config.instance;
|
|
15
15
|
// const RUNNING_TEXT = ' RUNS ';
|
|
16
16
|
// const RUNNING = chalk.reset.inverse.yellow.bold(RUNNING_TEXT) + ' ';
|
|
17
17
|
const RUNNING = ''; //chalk.reset.inverse.yellow.bold(RUNNING_TEXT) + ' ';
|
|
18
18
|
const { flags: parsedFlags } = this.parse(DeleteCommand);
|
|
19
|
-
const
|
|
20
|
-
const appName = (
|
|
21
|
-
const deployerLambdaName = (
|
|
22
|
-
const semVer = (_c = parsedFlags.newVersion) !== null && _c !== void 0 ? _c : config.app.semVer;
|
|
19
|
+
const semVer = (_b = (_a = parsedFlags.newVersion) !== null && _a !== void 0 ? _a : parsedFlags['new-version']) !== null && _b !== void 0 ? _b : config.app.semVer;
|
|
20
|
+
const appName = (_d = (_c = parsedFlags.appName) !== null && _c !== void 0 ? _c : parsedFlags['app-name']) !== null && _d !== void 0 ? _d : config.app.name;
|
|
21
|
+
const deployerLambdaName = (_f = (_e = parsedFlags.deployerLambdaName) !== null && _e !== void 0 ? _e : parsedFlags['deployer-lambda-name']) !== null && _f !== void 0 ? _f : config.deployer.lambdaName;
|
|
23
22
|
// Override the config value
|
|
24
23
|
config.deployer.lambdaName = deployerLambdaName;
|
|
25
24
|
config.app.name = appName;
|
|
@@ -49,7 +48,7 @@ class DeleteCommand extends command_1.Command {
|
|
|
49
48
|
const origTitle = task.title;
|
|
50
49
|
task.title = RUNNING + origTitle;
|
|
51
50
|
// Confirm the Version Does Not Exist in Published State
|
|
52
|
-
task.output = `Deleting app/version ${config.app.name}/${
|
|
51
|
+
task.output = `Deleting app/version ${config.app.name}/${semVer}`;
|
|
53
52
|
const result = await DeployClient_1.default.DeleteVersion({
|
|
54
53
|
config,
|
|
55
54
|
output: (message) => (task.output = message),
|
|
@@ -86,22 +85,40 @@ DeleteCommand.flags = {
|
|
|
86
85
|
char: 'v',
|
|
87
86
|
}),
|
|
88
87
|
help: command_1.flags.help(),
|
|
88
|
+
// Deprecated
|
|
89
89
|
appName: command_1.flags.string({
|
|
90
|
-
char: 'a',
|
|
91
90
|
multiple: false,
|
|
92
91
|
required: false,
|
|
93
|
-
|
|
92
|
+
hidden: true,
|
|
94
93
|
}),
|
|
94
|
+
'app-name': command_1.flags.string({
|
|
95
|
+
char: 'a',
|
|
96
|
+
multiple: false,
|
|
97
|
+
exactlyOne: ['app-name', 'appName'],
|
|
98
|
+
description: 'MicroApps app name (this becomes the path the app is rooted at)',
|
|
99
|
+
}),
|
|
100
|
+
// Deprecated
|
|
95
101
|
newVersion: command_1.flags.string({
|
|
102
|
+
multiple: false,
|
|
103
|
+
required: false,
|
|
104
|
+
hidden: true,
|
|
105
|
+
}),
|
|
106
|
+
'new-version': command_1.flags.string({
|
|
96
107
|
char: 'n',
|
|
97
108
|
multiple: false,
|
|
98
|
-
|
|
109
|
+
exactlyOne: ['new-version', 'newVersion'],
|
|
99
110
|
description: 'New semantic version to apply',
|
|
100
111
|
}),
|
|
112
|
+
// Deprecated
|
|
101
113
|
deployerLambdaName: command_1.flags.string({
|
|
114
|
+
multiple: false,
|
|
115
|
+
required: false,
|
|
116
|
+
hidden: true,
|
|
117
|
+
}),
|
|
118
|
+
'deployer-lambda-name': command_1.flags.string({
|
|
102
119
|
char: 'd',
|
|
103
120
|
multiple: false,
|
|
104
|
-
|
|
121
|
+
exactlyOne: ['deployer-lambda-name', 'deployerLambdaName'],
|
|
105
122
|
description: 'Name of the deployer lambda function',
|
|
106
123
|
}),
|
|
107
124
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../src/commands/delete.ts"],"names":[],"mappings":";;;;AAAA,4BAA0B;AAC1B,iEAA2C;AAC3C,4CAA+D;AAC/D,mCAA+B;AAC/B,6CAA0C;AAC1C,+EAA+C;AAE/C,MAAa,aAAc,SAAQ,iBAAO;
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../src/commands/delete.ts"],"names":[],"mappings":";;;;AAAA,4BAA0B;AAC1B,iEAA2C;AAC3C,4CA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QACzC,WAAW,EAAE,+BAA+B;KAC7C,CAAC;IACF,aAAa;IACb,kBAAkB,EAAE,eAAW,CAAC,MAAM,CAAC;QACrC,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;KACb,CAAC;IACF,sBAAsB,EAAE,eAAW,CAAC,MAAM,CAAC;QACzC,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,CAAC,sBAAsB,EAAE,oBAAoB,CAAC;QAC1D,WAAW,EAAE,sCAAsC;KACpD,CAAC;CACH,CAAC"}
|
|
@@ -7,7 +7,9 @@ export declare class NextJSVersionCommand extends Command {
|
|
|
7
7
|
version: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
|
8
8
|
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
|
9
9
|
newVersion: flagsParser.IOptionFlag<string>;
|
|
10
|
+
'new-version': flagsParser.IOptionFlag<string>;
|
|
10
11
|
leaveCopy: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
12
|
+
'leave-copy': import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
11
13
|
};
|
|
12
14
|
private VersionAndAlias;
|
|
13
15
|
private FILES_TO_MODIFY;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextjs-version.d.ts","sourceRoot":"","sources":["../../src/commands/nextjs-version.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK/D,qBAAa,oBAAqB,SAAQ,OAAO;IAC/C,MAAM,CAAC,WAAW,SAAkE;IAEpF,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK
|
|
1
|
+
{"version":3,"file":"nextjs-version.d.ts","sourceRoot":"","sources":["../../src/commands/nextjs-version.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK/D,qBAAa,oBAAqB,SAAQ,OAAO;IAC/C,MAAM,CAAC,WAAW,SAAkE;IAEpF,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;;;;MA+BV;IAEF,OAAO,CAAC,eAAe,CAAY;IACnC,OAAO,CAAC,eAAe,CAGnB;IAEE,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAoE3B"}
|
|
@@ -8,16 +8,17 @@ const Versions_1 = require("../lib/Versions");
|
|
|
8
8
|
const Config_1 = require("../config/Config");
|
|
9
9
|
class NextJSVersionCommand extends command_1.Command {
|
|
10
10
|
async run() {
|
|
11
|
+
var _a, _b;
|
|
11
12
|
// const RUNNING_TEXT = ' RUNS ';
|
|
12
13
|
// const RUNNING = chalk.reset.inverse.yellow.bold(RUNNING_TEXT) + ' ';
|
|
13
14
|
const RUNNING = ''; //chalk.reset.inverse.yellow.bold(RUNNING_TEXT) + ' ';
|
|
14
15
|
const { flags: parsedFlags } = this.parse(NextJSVersionCommand);
|
|
15
|
-
const
|
|
16
|
-
const leaveFiles = parsedFlags.leaveCopy;
|
|
16
|
+
const semVer = (_a = parsedFlags.newVersion) !== null && _a !== void 0 ? _a : parsedFlags['new-version'];
|
|
17
|
+
const leaveFiles = (_b = parsedFlags.leaveCopy) !== null && _b !== void 0 ? _b : parsedFlags['leave-copy'];
|
|
17
18
|
// Override the config value
|
|
18
19
|
const config = Config_1.Config.instance;
|
|
19
|
-
config.app.semVer =
|
|
20
|
-
this.VersionAndAlias = (0, Versions_1.createVersions)(
|
|
20
|
+
config.app.semVer = semVer;
|
|
21
|
+
this.VersionAndAlias = (0, Versions_1.createVersions)(semVer);
|
|
21
22
|
const versionOnly = { version: this.VersionAndAlias.version };
|
|
22
23
|
this.FILES_TO_MODIFY = [{ path: 'next.config.js', versions: versionOnly }];
|
|
23
24
|
// TODO: Pick and validate the appname/semver from the config and flags
|
|
@@ -72,13 +73,27 @@ NextJSVersionCommand.flags = {
|
|
|
72
73
|
char: 'v',
|
|
73
74
|
}),
|
|
74
75
|
help: command_1.flags.help(),
|
|
76
|
+
// Deprecated
|
|
75
77
|
newVersion: command_1.flags.string({
|
|
78
|
+
multiple: false,
|
|
79
|
+
required: false,
|
|
80
|
+
hidden: true,
|
|
81
|
+
}),
|
|
82
|
+
'new-version': command_1.flags.string({
|
|
76
83
|
char: 'n',
|
|
77
84
|
multiple: false,
|
|
78
|
-
|
|
85
|
+
exactlyOne: ['new-version', 'newVersion'],
|
|
79
86
|
description: 'New semantic version to apply',
|
|
80
87
|
}),
|
|
88
|
+
// Deprecated
|
|
81
89
|
leaveCopy: command_1.flags.boolean({
|
|
90
|
+
char: 'l',
|
|
91
|
+
default: false,
|
|
92
|
+
required: false,
|
|
93
|
+
hidden: true,
|
|
94
|
+
exclusive: ['leave-copy'],
|
|
95
|
+
}),
|
|
96
|
+
'leave-copy': command_1.flags.boolean({
|
|
82
97
|
char: 'l',
|
|
83
98
|
default: false,
|
|
84
99
|
required: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextjs-version.js","sourceRoot":"","sources":["../../src/commands/nextjs-version.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAC1B,4CAA+D;AAC/D,mCAA+B;AAC/B,8CAA4F;AAC5F,6CAA0C;AAE1C,MAAa,oBAAqB,SAAQ,iBAAO;
|
|
1
|
+
{"version":3,"file":"nextjs-version.js","sourceRoot":"","sources":["../../src/commands/nextjs-version.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAC1B,4CAA+D;AAC/D,mCAA+B;AAC/B,8CAA4F;AAC5F,6CAA0C;AAE1C,MAAa,oBAAqB,SAAQ,iBAAO;IAgD/C,KAAK,CAAC,GAAG;;QACP,iCAAiC;QACjC,uEAAuE;QACvE,MAAM,OAAO,GAAG,EAAE,CAAC,CAAC,sDAAsD;QAE1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KAC7C,CAAC;IACF,aAAa;IACb,SAAS,EAAE,eAAW,CAAC,OAAO,CAAC;QAC7B,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,CAAC,YAAY,CAAC;KAC1B,CAAC;IACF,YAAY,EAAE,eAAW,CAAC,OAAO,CAAC;QAChC,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,gDAAgD;KAC9D,CAAC;CACH,CAAC"}
|
|
@@ -7,8 +7,11 @@ export declare class PreflightCommand extends Command {
|
|
|
7
7
|
version: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
|
8
8
|
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
|
9
9
|
appName: flagsParser.IOptionFlag<string>;
|
|
10
|
+
'app-name': flagsParser.IOptionFlag<string>;
|
|
10
11
|
newVersion: flagsParser.IOptionFlag<string>;
|
|
12
|
+
'new-version': flagsParser.IOptionFlag<string>;
|
|
11
13
|
deployerLambdaName: flagsParser.IOptionFlag<string>;
|
|
14
|
+
'deployer-lambda-name': flagsParser.IOptionFlag<string>;
|
|
12
15
|
overwrite: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
13
16
|
};
|
|
14
17
|
run(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preflight.d.ts","sourceRoot":"","sources":["../../src/commands/preflight.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK/D,qBAAa,gBAAiB,SAAQ,OAAO;IAC3C,MAAM,CAAC,WAAW,SAAwC;IAE1D,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK
|
|
1
|
+
{"version":3,"file":"preflight.d.ts","sourceRoot":"","sources":["../../src/commands/preflight.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK/D,qBAAa,gBAAiB,SAAQ,OAAO;IAC3C,MAAM,CAAC,WAAW,SAAwC;IAE1D,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;MAgDV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAiF3B"}
|
|
@@ -10,16 +10,15 @@ const Config_1 = require("../config/Config");
|
|
|
10
10
|
const DeployClient_1 = tslib_1.__importDefault(require("../lib/DeployClient"));
|
|
11
11
|
class PreflightCommand extends command_1.Command {
|
|
12
12
|
async run() {
|
|
13
|
-
var _a, _b, _c;
|
|
13
|
+
var _a, _b, _c, _d, _e, _f;
|
|
14
14
|
const config = Config_1.Config.instance;
|
|
15
15
|
// const RUNNING_TEXT = ' RUNS ';
|
|
16
16
|
// const RUNNING = chalk.reset.inverse.yellow.bold(RUNNING_TEXT) + ' ';
|
|
17
17
|
const RUNNING = ''; //chalk.reset.inverse.yellow.bold(RUNNING_TEXT) + ' ';
|
|
18
18
|
const { flags: parsedFlags } = this.parse(PreflightCommand);
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const semVer = (_c = parsedFlags.newVersion) !== null && _c !== void 0 ? _c : config.app.semVer;
|
|
19
|
+
const appName = (_b = (_a = parsedFlags.appName) !== null && _a !== void 0 ? _a : parsedFlags['app-name']) !== null && _b !== void 0 ? _b : config.app.name;
|
|
20
|
+
const deployerLambdaName = (_d = (_c = parsedFlags.deployerLambdaName) !== null && _c !== void 0 ? _c : parsedFlags['deployer-lambda-name']) !== null && _d !== void 0 ? _d : config.deployer.lambdaName;
|
|
21
|
+
const semVer = (_f = (_e = parsedFlags.newVersion) !== null && _e !== void 0 ? _e : parsedFlags['new-version']) !== null && _f !== void 0 ? _f : config.app.semVer;
|
|
23
22
|
const overwrite = parsedFlags.overwrite;
|
|
24
23
|
// Override the config value
|
|
25
24
|
config.deployer.lambdaName = deployerLambdaName;
|
|
@@ -50,7 +49,7 @@ class PreflightCommand extends command_1.Command {
|
|
|
50
49
|
const origTitle = task.title;
|
|
51
50
|
task.title = RUNNING + origTitle;
|
|
52
51
|
// Confirm the Version Does Not Exist in Published State
|
|
53
|
-
task.output = `Checking if deployed app/version already exists for ${config.app.name}/${
|
|
52
|
+
task.output = `Checking if deployed app/version already exists for ${config.app.name}/${semVer}`;
|
|
54
53
|
const preflightResult = await DeployClient_1.default.DeployVersionPreflight({
|
|
55
54
|
config,
|
|
56
55
|
needS3Creds: false,
|
|
@@ -90,22 +89,40 @@ PreflightCommand.flags = {
|
|
|
90
89
|
char: 'v',
|
|
91
90
|
}),
|
|
92
91
|
help: command_1.flags.help(),
|
|
92
|
+
// Deprecated
|
|
93
93
|
appName: command_1.flags.string({
|
|
94
|
-
char: 'a',
|
|
95
94
|
multiple: false,
|
|
96
95
|
required: false,
|
|
97
|
-
|
|
96
|
+
hidden: true,
|
|
98
97
|
}),
|
|
98
|
+
'app-name': command_1.flags.string({
|
|
99
|
+
char: 'a',
|
|
100
|
+
multiple: false,
|
|
101
|
+
exactlyOne: ['app-name', 'appName'],
|
|
102
|
+
description: 'MicroApps app name (this becomes the path the app is rooted at)',
|
|
103
|
+
}),
|
|
104
|
+
// Deprecated
|
|
99
105
|
newVersion: command_1.flags.string({
|
|
106
|
+
multiple: false,
|
|
107
|
+
required: false,
|
|
108
|
+
hidden: true,
|
|
109
|
+
}),
|
|
110
|
+
'new-version': command_1.flags.string({
|
|
100
111
|
char: 'n',
|
|
101
112
|
multiple: false,
|
|
102
|
-
|
|
113
|
+
exactlyOne: ['new-version', 'newVersion'],
|
|
103
114
|
description: 'New semantic version to apply',
|
|
104
115
|
}),
|
|
116
|
+
// Deprecated
|
|
105
117
|
deployerLambdaName: command_1.flags.string({
|
|
118
|
+
multiple: false,
|
|
119
|
+
required: false,
|
|
120
|
+
hidden: true,
|
|
121
|
+
}),
|
|
122
|
+
'deployer-lambda-name': command_1.flags.string({
|
|
106
123
|
char: 'd',
|
|
107
124
|
multiple: false,
|
|
108
|
-
|
|
125
|
+
exactlyOne: ['deployer-lambda-name', 'deployerLambdaName'],
|
|
109
126
|
description: 'Name of the deployer lambda function',
|
|
110
127
|
}),
|
|
111
128
|
overwrite: command_1.flags.boolean({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preflight.js","sourceRoot":"","sources":["../../src/commands/preflight.ts"],"names":[],"mappings":";;;;AAAA,4BAA0B;AAC1B,iEAA2C;AAC3C,4CAA+D;AAC/D,mCAA+B;AAC/B,6CAA0C;AAC1C,+EAA+C;AAE/C,MAAa,gBAAiB,SAAQ,iBAAO;
|
|
1
|
+
{"version":3,"file":"preflight.js","sourceRoot":"","sources":["../../src/commands/preflight.ts"],"names":[],"mappings":";;;;AAAA,4BAA0B;AAC1B,iEAA2C;AAC3C,4CAA+D;AAC/D,mCAA+B;AAC/B,6CAA0C;AAC1C,+EAA+C;AAE/C,MAAa,gBAAiB,SAAQ,iBAAO;IA2D3C,KAAK,CAAC,GAAG;;QACP,MAAM,MAAM,GAAG,eAAM,CAAC,QAAQ,CAAC;QAE/B,iCAAiC;QACjC,uEAAuE;QACvE,MAAM,OAAO,GAAG,EAAE,CAAC,CAAC,sDAAsD;QAE1E,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAC5D,MAAM,OAAO,GAAG,MAAA,MAAA,WAAW,CAAC,OAAO,mCAAI,WAAW,CAAC,UAAU,CAAC,mCAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;QAClF,MAAM,kBAAkB,GACtB,MAAA,MAAA,WAAW,CAAC,kBAAkB,mCAC9B,WAAW,CAAC,sBAAsB,CAAC,mCACnC,MAAM,CAAC,QAAQ,C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AI,EAAE;IACxB,aAAa;IACb,OAAO,EAAE,eAAW,CAAC,MAAM,CAAC;QAC1B,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;KACb,CAAC;IACF,UAAU,EAAE,eAAW,CAAC,MAAM,CAAC;QAC7B,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;QACnC,WAAW,EAAE,iEAAiE;KAC/E,CAAC;IACF,aAAa;IACb,UAAU,EAAE,eAAW,CAAC,MAAM,CAAC;QAC7B,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;KACb,CAAC;IACF,aAAa,EAAE,eAAW,CAAC,MAAM,CAAC;QAChC,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;QACzC,WAAW,EAAE,+BAA+B;KAC7C,CAAC;IACF,aAAa;IACb,kBAAkB,EAAE,eAAW,CAAC,MAAM,CAAC;QACrC,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;KACb,CAAC;IACF,sBAAsB,EAAE,eAAW,CAAC,MAAM,CAAC;QACzC,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,CAAC,sBAAsB,EAAE,oBAAoB,CAAC;QAC1D,WAAW,EAAE,sCAAsC;KACpD,CAAC;IACF,SAAS,EAAE,eAAW,CAAC,OAAO,CAAC;QAC7B,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;QACd,WAAW,EACT,oIAAoI;KACvI,CAAC;CACH,CAAC"}
|
|
@@ -7,14 +7,19 @@ export declare class PublishCommand extends Command {
|
|
|
7
7
|
version: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
|
8
8
|
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
|
9
9
|
deployerLambdaName: flagsParser.IOptionFlag<string>;
|
|
10
|
+
'deployer-lambda-name': flagsParser.IOptionFlag<string>;
|
|
10
11
|
newVersion: flagsParser.IOptionFlag<string>;
|
|
12
|
+
'new-version': flagsParser.IOptionFlag<string>;
|
|
11
13
|
appName: flagsParser.IOptionFlag<string>;
|
|
14
|
+
'app-name': flagsParser.IOptionFlag<string>;
|
|
12
15
|
staticAssetsPath: flagsParser.IOptionFlag<string>;
|
|
16
|
+
'static-assets-path': flagsParser.IOptionFlag<string>;
|
|
13
17
|
defaultFile: flagsParser.IOptionFlag<string>;
|
|
18
|
+
'default-file': flagsParser.IOptionFlag<string>;
|
|
14
19
|
overwrite: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
15
20
|
noCache: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
21
|
+
'no-cache': import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
16
22
|
};
|
|
17
|
-
private VersionAndAlias;
|
|
18
23
|
run(): Promise<void>;
|
|
19
24
|
}
|
|
20
25
|
//# sourceMappingURL=publish-static.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-static.d.ts","sourceRoot":"","sources":["../../src/commands/publish-static.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"publish-static.d.ts","sourceRoot":"","sources":["../../src/commands/publish-static.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAI1B,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAoB/D,qBAAa,cAAe,SAAQ,OAAO;IACzC,MAAM,CAAC,WAAW,SAA+E;IAEjG,MAAM,CAAC,QAAQ,WAUb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;;;MAuFV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA+R3B"}
|