@adobe/aio-cli-plugin-app 12.0.1 → 12.1.0
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 +32 -29
- package/oclif.manifest.json +13 -1
- package/package.json +1 -1
- package/src/commands/app/init.js +10 -4
- package/src/commands/app/pack.js +8 -5
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ DESCRIPTION
|
|
|
72
72
|
Create, run, test, and deploy Adobe I/O Apps
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
_See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
75
|
+
_See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/index.js)_
|
|
76
76
|
|
|
77
77
|
## `aio app add`
|
|
78
78
|
|
|
@@ -90,7 +90,7 @@ DESCRIPTION
|
|
|
90
90
|
Add a new component to an existing Adobe I/O App
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
_See code: [src/commands/app/add/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
93
|
+
_See code: [src/commands/app/add/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/add/index.js)_
|
|
94
94
|
|
|
95
95
|
## `aio app add action`
|
|
96
96
|
|
|
@@ -115,7 +115,7 @@ ALIASES
|
|
|
115
115
|
$ aio app add actions
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
_See code: [src/commands/app/add/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
118
|
+
_See code: [src/commands/app/add/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/add/action.js)_
|
|
119
119
|
|
|
120
120
|
## `aio app add ci`
|
|
121
121
|
|
|
@@ -133,7 +133,7 @@ DESCRIPTION
|
|
|
133
133
|
Add CI files
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
-
_See code: [src/commands/app/add/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
136
|
+
_See code: [src/commands/app/add/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/add/ci.js)_
|
|
137
137
|
|
|
138
138
|
## `aio app add event`
|
|
139
139
|
|
|
@@ -158,7 +158,7 @@ ALIASES
|
|
|
158
158
|
$ aio app add events
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
-
_See code: [src/commands/app/add/event.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
161
|
+
_See code: [src/commands/app/add/event.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/add/event.js)_
|
|
162
162
|
|
|
163
163
|
## `aio app add extension`
|
|
164
164
|
|
|
@@ -184,7 +184,7 @@ ALIASES
|
|
|
184
184
|
$ aio app add extensions
|
|
185
185
|
```
|
|
186
186
|
|
|
187
|
-
_See code: [src/commands/app/add/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
187
|
+
_See code: [src/commands/app/add/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/add/extension.js)_
|
|
188
188
|
|
|
189
189
|
## `aio app add service`
|
|
190
190
|
|
|
@@ -208,7 +208,7 @@ ALIASES
|
|
|
208
208
|
$ aio app add services
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
_See code: [src/commands/app/add/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
211
|
+
_See code: [src/commands/app/add/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/add/service.js)_
|
|
212
212
|
|
|
213
213
|
## `aio app add web-assets`
|
|
214
214
|
|
|
@@ -229,7 +229,7 @@ DESCRIPTION
|
|
|
229
229
|
Add web assets support
|
|
230
230
|
```
|
|
231
231
|
|
|
232
|
-
_See code: [src/commands/app/add/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
232
|
+
_See code: [src/commands/app/add/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/add/web-assets.js)_
|
|
233
233
|
|
|
234
234
|
## `aio app build`
|
|
235
235
|
|
|
@@ -258,7 +258,7 @@ DESCRIPTION
|
|
|
258
258
|
This will always force a rebuild unless --no-force-build is set.
|
|
259
259
|
```
|
|
260
260
|
|
|
261
|
-
_See code: [src/commands/app/build.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
261
|
+
_See code: [src/commands/app/build.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/build.js)_
|
|
262
262
|
|
|
263
263
|
## `aio app create [PATH]`
|
|
264
264
|
|
|
@@ -280,7 +280,7 @@ DESCRIPTION
|
|
|
280
280
|
Create a new Adobe I/O App with default parameters
|
|
281
281
|
```
|
|
282
282
|
|
|
283
|
-
_See code: [src/commands/app/create.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
283
|
+
_See code: [src/commands/app/create.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/create.js)_
|
|
284
284
|
|
|
285
285
|
## `aio app delete`
|
|
286
286
|
|
|
@@ -298,7 +298,7 @@ DESCRIPTION
|
|
|
298
298
|
Delete a component from an existing Adobe I/O App
|
|
299
299
|
```
|
|
300
300
|
|
|
301
|
-
_See code: [src/commands/app/delete/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
301
|
+
_See code: [src/commands/app/delete/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/delete/index.js)_
|
|
302
302
|
|
|
303
303
|
## `aio app delete action [ACTION-NAME]`
|
|
304
304
|
|
|
@@ -324,7 +324,7 @@ ALIASES
|
|
|
324
324
|
$ aio app delete actions
|
|
325
325
|
```
|
|
326
326
|
|
|
327
|
-
_See code: [src/commands/app/delete/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
327
|
+
_See code: [src/commands/app/delete/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/delete/action.js)_
|
|
328
328
|
|
|
329
329
|
## `aio app delete ci`
|
|
330
330
|
|
|
@@ -343,7 +343,7 @@ DESCRIPTION
|
|
|
343
343
|
Delete existing CI files
|
|
344
344
|
```
|
|
345
345
|
|
|
346
|
-
_See code: [src/commands/app/delete/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
346
|
+
_See code: [src/commands/app/delete/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/delete/ci.js)_
|
|
347
347
|
|
|
348
348
|
## `aio app delete extension`
|
|
349
349
|
|
|
@@ -369,7 +369,7 @@ ALIASES
|
|
|
369
369
|
$ aio app delete extensions
|
|
370
370
|
```
|
|
371
371
|
|
|
372
|
-
_See code: [src/commands/app/delete/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
372
|
+
_See code: [src/commands/app/delete/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/delete/extension.js)_
|
|
373
373
|
|
|
374
374
|
## `aio app delete service`
|
|
375
375
|
|
|
@@ -393,7 +393,7 @@ ALIASES
|
|
|
393
393
|
$ aio app delete services
|
|
394
394
|
```
|
|
395
395
|
|
|
396
|
-
_See code: [src/commands/app/delete/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
396
|
+
_See code: [src/commands/app/delete/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/delete/service.js)_
|
|
397
397
|
|
|
398
398
|
## `aio app delete web-assets`
|
|
399
399
|
|
|
@@ -412,7 +412,7 @@ DESCRIPTION
|
|
|
412
412
|
Delete existing web assets
|
|
413
413
|
```
|
|
414
414
|
|
|
415
|
-
_See code: [src/commands/app/delete/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
415
|
+
_See code: [src/commands/app/delete/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/delete/web-assets.js)_
|
|
416
416
|
|
|
417
417
|
## `aio app deploy`
|
|
418
418
|
|
|
@@ -453,7 +453,7 @@ DESCRIPTION
|
|
|
453
453
|
This will always force a rebuild unless --no-force-build is set.
|
|
454
454
|
```
|
|
455
455
|
|
|
456
|
-
_See code: [src/commands/app/deploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
456
|
+
_See code: [src/commands/app/deploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/deploy.js)_
|
|
457
457
|
|
|
458
458
|
## `aio app get-url [ACTION]`
|
|
459
459
|
|
|
@@ -476,7 +476,7 @@ DESCRIPTION
|
|
|
476
476
|
Get action URLs
|
|
477
477
|
```
|
|
478
478
|
|
|
479
|
-
_See code: [src/commands/app/get-url.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
479
|
+
_See code: [src/commands/app/get-url.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/get-url.js)_
|
|
480
480
|
|
|
481
481
|
## `aio app info`
|
|
482
482
|
|
|
@@ -498,7 +498,7 @@ DESCRIPTION
|
|
|
498
498
|
Display settings/configuration in use by an Adobe I/O App
|
|
499
499
|
```
|
|
500
500
|
|
|
501
|
-
_See code: [src/commands/app/info.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
501
|
+
_See code: [src/commands/app/info.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/info.js)_
|
|
502
502
|
|
|
503
503
|
## `aio app init [PATH]`
|
|
504
504
|
|
|
@@ -508,6 +508,7 @@ Create a new Adobe I/O App
|
|
|
508
508
|
USAGE
|
|
509
509
|
$ aio app init [PATH] [-v] [--version] [--install] [-y] [--login] [-e <value> | -t <value> | --repo <value>]
|
|
510
510
|
[--standalone-app | | ] [-w <value> | -i <value>] [--confirm-new-workspace] [--use-jwt] [--github-pat <value> ]
|
|
511
|
+
[--linter none|basic|adobe-recommended]
|
|
511
512
|
|
|
512
513
|
ARGUMENTS
|
|
513
514
|
PATH [default: .] Path to the app directory
|
|
@@ -523,6 +524,8 @@ FLAGS
|
|
|
523
524
|
--[no-]confirm-new-workspace Prompt to confirm before creating a new workspace
|
|
524
525
|
--github-pat=<value> github personal access token to use for downloading private quickstart repos
|
|
525
526
|
--[no-]install [default: true] Run npm installation after files are created
|
|
527
|
+
--linter=<option> [default: basic] Specify the linter to use for the project
|
|
528
|
+
<options: none|basic|adobe-recommended>
|
|
526
529
|
--[no-]login Login using your Adobe ID for interacting with Adobe I/O Developer Console
|
|
527
530
|
--repo=<value> Init from gh quick-start repo. Expected to be of the form <owner>/<repo>/<path>
|
|
528
531
|
--standalone-app Create a stand-alone application
|
|
@@ -534,7 +537,7 @@ DESCRIPTION
|
|
|
534
537
|
Create a new Adobe I/O App
|
|
535
538
|
```
|
|
536
539
|
|
|
537
|
-
_See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
540
|
+
_See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/init.js)_
|
|
538
541
|
|
|
539
542
|
## `aio app install PATH`
|
|
540
543
|
|
|
@@ -557,7 +560,7 @@ DESCRIPTION
|
|
|
557
560
|
This command will support installing apps packaged by 'aio app pack'.
|
|
558
561
|
```
|
|
559
562
|
|
|
560
|
-
_See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
563
|
+
_See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/install.js)_
|
|
561
564
|
|
|
562
565
|
## `aio app list`
|
|
563
566
|
|
|
@@ -575,7 +578,7 @@ DESCRIPTION
|
|
|
575
578
|
List components for Adobe I/O App
|
|
576
579
|
```
|
|
577
580
|
|
|
578
|
-
_See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
581
|
+
_See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/list/index.js)_
|
|
579
582
|
|
|
580
583
|
## `aio app list extension`
|
|
581
584
|
|
|
@@ -600,7 +603,7 @@ ALIASES
|
|
|
600
603
|
$ aio app list extensions
|
|
601
604
|
```
|
|
602
605
|
|
|
603
|
-
_See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
606
|
+
_See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/list/extension.js)_
|
|
604
607
|
|
|
605
608
|
## `aio app logs`
|
|
606
609
|
|
|
@@ -624,7 +627,7 @@ DESCRIPTION
|
|
|
624
627
|
Fetch logs for an Adobe I/O App
|
|
625
628
|
```
|
|
626
629
|
|
|
627
|
-
_See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
630
|
+
_See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/logs.js)_
|
|
628
631
|
|
|
629
632
|
## `aio app pack [PATH]`
|
|
630
633
|
|
|
@@ -646,7 +649,7 @@ DESCRIPTION
|
|
|
646
649
|
This command will support packaging apps for redistribution.
|
|
647
650
|
```
|
|
648
651
|
|
|
649
|
-
_See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
652
|
+
_See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/pack.js)_
|
|
650
653
|
|
|
651
654
|
## `aio app run`
|
|
652
655
|
|
|
@@ -669,7 +672,7 @@ DESCRIPTION
|
|
|
669
672
|
Run an Adobe I/O App
|
|
670
673
|
```
|
|
671
674
|
|
|
672
|
-
_See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
675
|
+
_See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/run.js)_
|
|
673
676
|
|
|
674
677
|
## `aio app test`
|
|
675
678
|
|
|
@@ -697,7 +700,7 @@ DESCRIPTION
|
|
|
697
700
|
If the extension has a hook called 'test' in its 'ext.config.yaml', the script specified will be run instead.
|
|
698
701
|
```
|
|
699
702
|
|
|
700
|
-
_See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
703
|
+
_See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/test.js)_
|
|
701
704
|
|
|
702
705
|
## `aio app undeploy`
|
|
703
706
|
|
|
@@ -722,7 +725,7 @@ DESCRIPTION
|
|
|
722
725
|
Undeploys an Adobe I/O App
|
|
723
726
|
```
|
|
724
727
|
|
|
725
|
-
_See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
728
|
+
_See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/undeploy.js)_
|
|
726
729
|
|
|
727
730
|
## `aio app use [CONFIG_FILE_PATH]`
|
|
728
731
|
|
|
@@ -769,5 +772,5 @@ DESCRIPTION
|
|
|
769
772
|
page in https://developer.adobe.com/console/
|
|
770
773
|
```
|
|
771
774
|
|
|
772
|
-
_See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0
|
|
775
|
+
_See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1.0/src/commands/app/use.js)_
|
|
773
776
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "12.0
|
|
2
|
+
"version": "12.1.0",
|
|
3
3
|
"commands": {
|
|
4
4
|
"app:build": {
|
|
5
5
|
"id": "app:build",
|
|
@@ -544,6 +544,18 @@
|
|
|
544
544
|
"dependsOn": [
|
|
545
545
|
"repo"
|
|
546
546
|
]
|
|
547
|
+
},
|
|
548
|
+
"linter": {
|
|
549
|
+
"name": "linter",
|
|
550
|
+
"type": "option",
|
|
551
|
+
"description": "Specify the linter to use for the project",
|
|
552
|
+
"multiple": false,
|
|
553
|
+
"options": [
|
|
554
|
+
"none",
|
|
555
|
+
"basic",
|
|
556
|
+
"adobe-recommended"
|
|
557
|
+
],
|
|
558
|
+
"default": "basic"
|
|
547
559
|
}
|
|
548
560
|
},
|
|
549
561
|
"args": {
|
package/package.json
CHANGED
package/src/commands/app/init.js
CHANGED
|
@@ -115,7 +115,7 @@ class InitCommand extends TemplatesCommand {
|
|
|
115
115
|
|
|
116
116
|
// 3. run base code generators
|
|
117
117
|
const projectName = (consoleConfig && consoleConfig.project.name) || path.basename(process.cwd())
|
|
118
|
-
await this.runCodeGenerators(this.getInitialGenerators(flags), flags.yes, projectName)
|
|
118
|
+
await this.runCodeGenerators(this.getInitialGenerators(flags), flags.yes, projectName, flags.linter)
|
|
119
119
|
|
|
120
120
|
// 4. install templates
|
|
121
121
|
await this.installTemplates({
|
|
@@ -163,7 +163,7 @@ class InitCommand extends TemplatesCommand {
|
|
|
163
163
|
|
|
164
164
|
// 7. run base code generators
|
|
165
165
|
if (!flags.repo) {
|
|
166
|
-
await this.runCodeGenerators(this.getInitialGenerators(flags), flags.yes, consoleConfig.project.name)
|
|
166
|
+
await this.runCodeGenerators(this.getInitialGenerators(flags), flags.yes, consoleConfig.project.name, flags.linter)
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
// 8. import config
|
|
@@ -337,7 +337,7 @@ class InitCommand extends TemplatesCommand {
|
|
|
337
337
|
return workspace
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
async runCodeGenerators (generatorNames, skipPrompt, projectName) {
|
|
340
|
+
async runCodeGenerators (generatorNames, skipPrompt, projectName, linter) {
|
|
341
341
|
const env = yeoman.createEnv()
|
|
342
342
|
env.options = { skipInstall: true }
|
|
343
343
|
|
|
@@ -347,7 +347,8 @@ class InitCommand extends TemplatesCommand {
|
|
|
347
347
|
options: {
|
|
348
348
|
'skip-prompt': skipPrompt,
|
|
349
349
|
'project-name': projectName,
|
|
350
|
-
force: true
|
|
350
|
+
force: true,
|
|
351
|
+
linter
|
|
351
352
|
}
|
|
352
353
|
})
|
|
353
354
|
await env.runGenerator(appGen)
|
|
@@ -484,6 +485,11 @@ InitCommand.flags = {
|
|
|
484
485
|
'github-pat': Flags.string({
|
|
485
486
|
description: 'github personal access token to use for downloading private quickstart repos',
|
|
486
487
|
dependsOn: ['repo']
|
|
488
|
+
}),
|
|
489
|
+
linter: Flags.string({
|
|
490
|
+
description: 'Specify the linter to use for the project',
|
|
491
|
+
options: ['none', 'basic', 'adobe-recommended'],
|
|
492
|
+
default: 'basic'
|
|
487
493
|
})
|
|
488
494
|
}
|
|
489
495
|
|
package/src/commands/app/pack.js
CHANGED
|
@@ -166,15 +166,18 @@ class Pack extends BaseCommand {
|
|
|
166
166
|
if (command) {
|
|
167
167
|
try {
|
|
168
168
|
this.spinner.start('Getting api-mesh config...')
|
|
169
|
-
const { stdout } = await execa('aio', ['api-mesh', 'get'], { cwd: process.cwd() })
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
const { stdout, stderr } = await execa('aio', ['api-mesh', 'get', '--json'], { cwd: process.cwd() })
|
|
170
|
+
|
|
171
|
+
if (stderr) {
|
|
172
|
+
throw new Error(stderr)
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
meshConfig = JSON.parse(stdout).meshConfig
|
|
173
176
|
aioLogger.debug(`api-mesh:get - ${JSON.stringify(meshConfig, null, 2)}`)
|
|
174
177
|
this.spinner.succeed('Got api-mesh config')
|
|
175
178
|
} catch (err) {
|
|
176
179
|
// Ignore error if no mesh found, otherwise throw
|
|
177
|
-
if (err?.
|
|
180
|
+
if (err?.message.includes('Error: Unable to get mesh config. No mesh found for Org')) {
|
|
178
181
|
aioLogger.debug('No api-mesh config found')
|
|
179
182
|
} else {
|
|
180
183
|
console.error(err)
|