@adobe/aio-cli-plugin-app 13.3.0 → 14.0.1
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 +61 -37
- package/oclif.manifest.json +35 -16
- package/package.json +3 -7
- package/src/TemplatesCommand.js +1 -1
- package/src/commands/app/build.js +1 -1
- package/src/commands/app/clean.js +110 -0
- package/src/commands/app/deploy.js +1 -2
- package/src/commands/app/get-url.js +4 -14
- package/src/commands/app/init.js +1 -1
- package/src/commands/app/run.js +1 -17
- package/src/lib/actions-watcher.js +1 -3
- package/src/lib/app-helper.js +0 -117
- package/src/lib/audit-logger.js +0 -1
- package/src/lib/defaults.js +4 -1
- package/src/lib/run-dev.js +6 -23
- package/bin/openwhisk-standalone-config/get-runtimes.js +0 -55
- package/bin/openwhisk-standalone-config/runtimes.json +0 -55
- package/src/lib/owlocal.js +0 -86
- package/src/lib/run-local-runtime.js +0 -154
- package/src/lib/vscode.js +0 -85
package/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
aio-cli-plugin-app
|
|
2
|
-
==================
|
|
1
|
+
# aio-cli-plugin-app
|
|
3
2
|
|
|
4
3
|
Create, Build and Deploy Adobe I/O Apps
|
|
5
4
|
|
|
@@ -10,13 +9,14 @@ Create, Build and Deploy Adobe I/O Apps
|
|
|
10
9
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
11
10
|
[](https://codecov.io/gh/adobe/aio-cli-plugin-app/)
|
|
12
11
|
|
|
13
|
-
|
|
14
12
|
<!-- toc -->
|
|
13
|
+
* [aio-cli-plugin-app](#aio-cli-plugin-app)
|
|
15
14
|
* [Usage](#usage)
|
|
16
15
|
* [Commands](#commands)
|
|
17
16
|
<!-- tocstop -->
|
|
18
17
|
|
|
19
18
|
# Usage
|
|
19
|
+
|
|
20
20
|
```sh-session
|
|
21
21
|
$ aio plugins:install -g @adobe/aio-cli-plugin-app
|
|
22
22
|
$ # OR
|
|
@@ -25,6 +25,7 @@ $ aio app --help
|
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
# Commands
|
|
28
|
+
|
|
28
29
|
<!-- commands -->
|
|
29
30
|
* [`aio app`](#aio-app)
|
|
30
31
|
* [`aio app add`](#aio-app-add)
|
|
@@ -35,6 +36,7 @@ $ aio app --help
|
|
|
35
36
|
* [`aio app add service`](#aio-app-add-service)
|
|
36
37
|
* [`aio app add web-assets`](#aio-app-add-web-assets)
|
|
37
38
|
* [`aio app build`](#aio-app-build)
|
|
39
|
+
* [`aio app clean`](#aio-app-clean)
|
|
38
40
|
* [`aio app create [PATH]`](#aio-app-create-path)
|
|
39
41
|
* [`aio app delete`](#aio-app-delete)
|
|
40
42
|
* [`aio app delete action [ACTION-NAME]`](#aio-app-delete-action-action-name)
|
|
@@ -72,7 +74,7 @@ DESCRIPTION
|
|
|
72
74
|
Create, run, test, and deploy Adobe I/O Apps
|
|
73
75
|
```
|
|
74
76
|
|
|
75
|
-
_See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
77
|
+
_See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/index.js)_
|
|
76
78
|
|
|
77
79
|
## `aio app add`
|
|
78
80
|
|
|
@@ -90,7 +92,7 @@ DESCRIPTION
|
|
|
90
92
|
Add a new component to an existing Adobe I/O App
|
|
91
93
|
```
|
|
92
94
|
|
|
93
|
-
_See code: [src/commands/app/add/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
95
|
+
_See code: [src/commands/app/add/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/add/index.js)_
|
|
94
96
|
|
|
95
97
|
## `aio app add action`
|
|
96
98
|
|
|
@@ -115,7 +117,7 @@ ALIASES
|
|
|
115
117
|
$ aio app add actions
|
|
116
118
|
```
|
|
117
119
|
|
|
118
|
-
_See code: [src/commands/app/add/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
120
|
+
_See code: [src/commands/app/add/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/add/action.js)_
|
|
119
121
|
|
|
120
122
|
## `aio app add ci`
|
|
121
123
|
|
|
@@ -133,7 +135,7 @@ DESCRIPTION
|
|
|
133
135
|
Add CI files
|
|
134
136
|
```
|
|
135
137
|
|
|
136
|
-
_See code: [src/commands/app/add/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
138
|
+
_See code: [src/commands/app/add/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/add/ci.js)_
|
|
137
139
|
|
|
138
140
|
## `aio app add event`
|
|
139
141
|
|
|
@@ -158,7 +160,7 @@ ALIASES
|
|
|
158
160
|
$ aio app add events
|
|
159
161
|
```
|
|
160
162
|
|
|
161
|
-
_See code: [src/commands/app/add/event.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
163
|
+
_See code: [src/commands/app/add/event.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/add/event.js)_
|
|
162
164
|
|
|
163
165
|
## `aio app add extension`
|
|
164
166
|
|
|
@@ -184,7 +186,7 @@ ALIASES
|
|
|
184
186
|
$ aio app add extensions
|
|
185
187
|
```
|
|
186
188
|
|
|
187
|
-
_See code: [src/commands/app/add/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
189
|
+
_See code: [src/commands/app/add/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/add/extension.js)_
|
|
188
190
|
|
|
189
191
|
## `aio app add service`
|
|
190
192
|
|
|
@@ -208,7 +210,7 @@ ALIASES
|
|
|
208
210
|
$ aio app add services
|
|
209
211
|
```
|
|
210
212
|
|
|
211
|
-
_See code: [src/commands/app/add/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
213
|
+
_See code: [src/commands/app/add/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/add/service.js)_
|
|
212
214
|
|
|
213
215
|
## `aio app add web-assets`
|
|
214
216
|
|
|
@@ -229,7 +231,7 @@ DESCRIPTION
|
|
|
229
231
|
Add web assets support
|
|
230
232
|
```
|
|
231
233
|
|
|
232
|
-
_See code: [src/commands/app/add/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
234
|
+
_See code: [src/commands/app/add/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/add/web-assets.js)_
|
|
233
235
|
|
|
234
236
|
## `aio app build`
|
|
235
237
|
|
|
@@ -259,7 +261,32 @@ DESCRIPTION
|
|
|
259
261
|
Use the --force-build flag to force a build even if one already exists.
|
|
260
262
|
```
|
|
261
263
|
|
|
262
|
-
_See code: [src/commands/app/build.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
264
|
+
_See code: [src/commands/app/build.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/build.js)_
|
|
265
|
+
|
|
266
|
+
## `aio app clean`
|
|
267
|
+
|
|
268
|
+
Remove all build artifacts from the local machine
|
|
269
|
+
|
|
270
|
+
```
|
|
271
|
+
USAGE
|
|
272
|
+
$ aio app clean [-v] [--version]
|
|
273
|
+
|
|
274
|
+
FLAGS
|
|
275
|
+
-v, --verbose Verbose output
|
|
276
|
+
--version Show version
|
|
277
|
+
|
|
278
|
+
DESCRIPTION
|
|
279
|
+
Remove all build artifacts from the local machine
|
|
280
|
+
This command completely cleans all build artifacts from the dist directory including:
|
|
281
|
+
- Action build files
|
|
282
|
+
- Web assets (both production and development)
|
|
283
|
+
- Build tracking files
|
|
284
|
+
- Deployment tracking files
|
|
285
|
+
|
|
286
|
+
Note that this will require a full rebuild on your next build command.
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
_See code: [src/commands/app/clean.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/clean.js)_
|
|
263
290
|
|
|
264
291
|
## `aio app create [PATH]`
|
|
265
292
|
|
|
@@ -281,7 +308,7 @@ DESCRIPTION
|
|
|
281
308
|
Create a new Adobe I/O App with default parameters
|
|
282
309
|
```
|
|
283
310
|
|
|
284
|
-
_See code: [src/commands/app/create.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
311
|
+
_See code: [src/commands/app/create.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/create.js)_
|
|
285
312
|
|
|
286
313
|
## `aio app delete`
|
|
287
314
|
|
|
@@ -299,7 +326,7 @@ DESCRIPTION
|
|
|
299
326
|
Delete a component from an existing Adobe I/O App
|
|
300
327
|
```
|
|
301
328
|
|
|
302
|
-
_See code: [src/commands/app/delete/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
329
|
+
_See code: [src/commands/app/delete/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/delete/index.js)_
|
|
303
330
|
|
|
304
331
|
## `aio app delete action [ACTION-NAME]`
|
|
305
332
|
|
|
@@ -325,7 +352,7 @@ ALIASES
|
|
|
325
352
|
$ aio app delete actions
|
|
326
353
|
```
|
|
327
354
|
|
|
328
|
-
_See code: [src/commands/app/delete/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
355
|
+
_See code: [src/commands/app/delete/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/delete/action.js)_
|
|
329
356
|
|
|
330
357
|
## `aio app delete ci`
|
|
331
358
|
|
|
@@ -344,7 +371,7 @@ DESCRIPTION
|
|
|
344
371
|
Delete existing CI files
|
|
345
372
|
```
|
|
346
373
|
|
|
347
|
-
_See code: [src/commands/app/delete/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
374
|
+
_See code: [src/commands/app/delete/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/delete/ci.js)_
|
|
348
375
|
|
|
349
376
|
## `aio app delete extension`
|
|
350
377
|
|
|
@@ -370,7 +397,7 @@ ALIASES
|
|
|
370
397
|
$ aio app delete extensions
|
|
371
398
|
```
|
|
372
399
|
|
|
373
|
-
_See code: [src/commands/app/delete/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
400
|
+
_See code: [src/commands/app/delete/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/delete/extension.js)_
|
|
374
401
|
|
|
375
402
|
## `aio app delete service`
|
|
376
403
|
|
|
@@ -394,7 +421,7 @@ ALIASES
|
|
|
394
421
|
$ aio app delete services
|
|
395
422
|
```
|
|
396
423
|
|
|
397
|
-
_See code: [src/commands/app/delete/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
424
|
+
_See code: [src/commands/app/delete/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/delete/service.js)_
|
|
398
425
|
|
|
399
426
|
## `aio app delete web-assets`
|
|
400
427
|
|
|
@@ -413,7 +440,7 @@ DESCRIPTION
|
|
|
413
440
|
Delete existing web assets
|
|
414
441
|
```
|
|
415
442
|
|
|
416
|
-
_See code: [src/commands/app/delete/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
443
|
+
_See code: [src/commands/app/delete/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/delete/web-assets.js)_
|
|
417
444
|
|
|
418
445
|
## `aio app deploy`
|
|
419
446
|
|
|
@@ -459,7 +486,7 @@ DESCRIPTION
|
|
|
459
486
|
Use the --force-deploy flag to force deploy changes, regardless of production Workspace being published in Exchange.
|
|
460
487
|
```
|
|
461
488
|
|
|
462
|
-
_See code: [src/commands/app/deploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
489
|
+
_See code: [src/commands/app/deploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/deploy.js)_
|
|
463
490
|
|
|
464
491
|
## `aio app get-url [ACTION]`
|
|
465
492
|
|
|
@@ -467,7 +494,7 @@ Get action URLs
|
|
|
467
494
|
|
|
468
495
|
```
|
|
469
496
|
USAGE
|
|
470
|
-
$ aio app get-url [ACTION] [-v] [--version] [--cdn] [-j] [-h] [-y]
|
|
497
|
+
$ aio app get-url [ACTION] [-v] [--version] [--cdn] [-j] [-h] [-y]
|
|
471
498
|
|
|
472
499
|
FLAGS
|
|
473
500
|
-h, --hson Output human readable json
|
|
@@ -475,14 +502,13 @@ FLAGS
|
|
|
475
502
|
-v, --verbose Verbose output
|
|
476
503
|
-y, --yml Output yml
|
|
477
504
|
--cdn Display CDN based action URLs
|
|
478
|
-
--local Display locally based action URLs
|
|
479
505
|
--version Show version
|
|
480
506
|
|
|
481
507
|
DESCRIPTION
|
|
482
508
|
Get action URLs
|
|
483
509
|
```
|
|
484
510
|
|
|
485
|
-
_See code: [src/commands/app/get-url.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
511
|
+
_See code: [src/commands/app/get-url.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/get-url.js)_
|
|
486
512
|
|
|
487
513
|
## `aio app info`
|
|
488
514
|
|
|
@@ -504,7 +530,7 @@ DESCRIPTION
|
|
|
504
530
|
Display settings/configuration in use by an Adobe I/O App
|
|
505
531
|
```
|
|
506
532
|
|
|
507
|
-
_See code: [src/commands/app/info.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
533
|
+
_See code: [src/commands/app/info.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/info.js)_
|
|
508
534
|
|
|
509
535
|
## `aio app init [PATH]`
|
|
510
536
|
|
|
@@ -543,7 +569,7 @@ DESCRIPTION
|
|
|
543
569
|
Create a new Adobe I/O App
|
|
544
570
|
```
|
|
545
571
|
|
|
546
|
-
_See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
572
|
+
_See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/init.js)_
|
|
547
573
|
|
|
548
574
|
## `aio app install PATH`
|
|
549
575
|
|
|
@@ -566,7 +592,7 @@ DESCRIPTION
|
|
|
566
592
|
This command will support installing apps packaged by 'aio app pack'.
|
|
567
593
|
```
|
|
568
594
|
|
|
569
|
-
_See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
595
|
+
_See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/install.js)_
|
|
570
596
|
|
|
571
597
|
## `aio app list`
|
|
572
598
|
|
|
@@ -584,7 +610,7 @@ DESCRIPTION
|
|
|
584
610
|
List components for Adobe I/O App
|
|
585
611
|
```
|
|
586
612
|
|
|
587
|
-
_See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
613
|
+
_See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/list/index.js)_
|
|
588
614
|
|
|
589
615
|
## `aio app list extension`
|
|
590
616
|
|
|
@@ -609,7 +635,7 @@ ALIASES
|
|
|
609
635
|
$ aio app list extensions
|
|
610
636
|
```
|
|
611
637
|
|
|
612
|
-
_See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
638
|
+
_See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/list/extension.js)_
|
|
613
639
|
|
|
614
640
|
## `aio app logs`
|
|
615
641
|
|
|
@@ -633,7 +659,7 @@ DESCRIPTION
|
|
|
633
659
|
Fetch logs for an Adobe I/O App
|
|
634
660
|
```
|
|
635
661
|
|
|
636
|
-
_See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
662
|
+
_See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/logs.js)_
|
|
637
663
|
|
|
638
664
|
## `aio app pack [PATH]`
|
|
639
665
|
|
|
@@ -655,7 +681,7 @@ DESCRIPTION
|
|
|
655
681
|
This command will support packaging apps for redistribution.
|
|
656
682
|
```
|
|
657
683
|
|
|
658
|
-
_See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
684
|
+
_See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/pack.js)_
|
|
659
685
|
|
|
660
686
|
## `aio app run`
|
|
661
687
|
|
|
@@ -663,14 +689,12 @@ Run an Adobe I/O App
|
|
|
663
689
|
|
|
664
690
|
```
|
|
665
691
|
USAGE
|
|
666
|
-
$ aio app run [-v] [--version] [--
|
|
692
|
+
$ aio app run [-v] [--version] [--serve] [--actions] [--open] [-e <value>]
|
|
667
693
|
|
|
668
694
|
FLAGS
|
|
669
695
|
-e, --extension=<value> Run only a specific extension, this flag can only be specified once
|
|
670
696
|
-v, --verbose Verbose output
|
|
671
697
|
--[no-]actions [default: true] Run actions, defaults to true, to skip actions use --no-actions
|
|
672
|
-
--local [deprecated] Run/debug actions locally (requires Docker running, not available on Apple
|
|
673
|
-
Silicon Macs)
|
|
674
698
|
--open Open the default web browser after a successful run, only valid if your app has a front-end
|
|
675
699
|
--[no-]serve [default: true] Start frontend server (experimental)
|
|
676
700
|
--version Show version
|
|
@@ -679,7 +703,7 @@ DESCRIPTION
|
|
|
679
703
|
Run an Adobe I/O App
|
|
680
704
|
```
|
|
681
705
|
|
|
682
|
-
_See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
706
|
+
_See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/run.js)_
|
|
683
707
|
|
|
684
708
|
## `aio app test`
|
|
685
709
|
|
|
@@ -707,7 +731,7 @@ DESCRIPTION
|
|
|
707
731
|
If the extension has a hook called 'test' in its 'ext.config.yaml', the script specified will be run instead.
|
|
708
732
|
```
|
|
709
733
|
|
|
710
|
-
_See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
734
|
+
_See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/test.js)_
|
|
711
735
|
|
|
712
736
|
## `aio app undeploy`
|
|
713
737
|
|
|
@@ -732,7 +756,7 @@ DESCRIPTION
|
|
|
732
756
|
Undeploys an Adobe I/O App
|
|
733
757
|
```
|
|
734
758
|
|
|
735
|
-
_See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
759
|
+
_See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/undeploy.js)_
|
|
736
760
|
|
|
737
761
|
## `aio app use [CONFIG_FILE_PATH]`
|
|
738
762
|
|
|
@@ -779,5 +803,5 @@ DESCRIPTION
|
|
|
779
803
|
page in https://developer.adobe.com/console/
|
|
780
804
|
```
|
|
781
805
|
|
|
782
|
-
_See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/
|
|
806
|
+
_See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.0.1/src/commands/app/use.js)_
|
|
783
807
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
|
@@ -89,6 +89,40 @@
|
|
|
89
89
|
"build.js"
|
|
90
90
|
]
|
|
91
91
|
},
|
|
92
|
+
"app:clean": {
|
|
93
|
+
"aliases": [],
|
|
94
|
+
"args": {},
|
|
95
|
+
"description": "Remove all build artifacts from the local machine\nThis command completely cleans all build artifacts from the dist directory including:\n- Action build files\n- Web assets (both production and development)\n- Build tracking files\n- Deployment tracking files\n\nNote that this will require a full rebuild on your next build command.",
|
|
96
|
+
"flags": {
|
|
97
|
+
"verbose": {
|
|
98
|
+
"char": "v",
|
|
99
|
+
"description": "Verbose output",
|
|
100
|
+
"name": "verbose",
|
|
101
|
+
"allowNo": false,
|
|
102
|
+
"type": "boolean"
|
|
103
|
+
},
|
|
104
|
+
"version": {
|
|
105
|
+
"description": "Show version",
|
|
106
|
+
"name": "version",
|
|
107
|
+
"allowNo": false,
|
|
108
|
+
"type": "boolean"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"hasDynamicHelp": false,
|
|
112
|
+
"hiddenAliases": [],
|
|
113
|
+
"id": "app:clean",
|
|
114
|
+
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
115
|
+
"pluginName": "@adobe/aio-cli-plugin-app",
|
|
116
|
+
"pluginType": "core",
|
|
117
|
+
"strict": true,
|
|
118
|
+
"isESM": false,
|
|
119
|
+
"relativePath": [
|
|
120
|
+
"src",
|
|
121
|
+
"commands",
|
|
122
|
+
"app",
|
|
123
|
+
"clean.js"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
92
126
|
"app:create": {
|
|
93
127
|
"aliases": [],
|
|
94
128
|
"args": {
|
|
@@ -334,12 +368,6 @@
|
|
|
334
368
|
"name": "yml",
|
|
335
369
|
"allowNo": false,
|
|
336
370
|
"type": "boolean"
|
|
337
|
-
},
|
|
338
|
-
"local": {
|
|
339
|
-
"description": "Display locally based action URLs",
|
|
340
|
-
"name": "local",
|
|
341
|
-
"allowNo": false,
|
|
342
|
-
"type": "boolean"
|
|
343
371
|
}
|
|
344
372
|
},
|
|
345
373
|
"hasDynamicHelp": false,
|
|
@@ -855,15 +883,6 @@
|
|
|
855
883
|
"allowNo": false,
|
|
856
884
|
"type": "boolean"
|
|
857
885
|
},
|
|
858
|
-
"local": {
|
|
859
|
-
"description": "[deprecated] Run/debug actions locally (requires Docker running, not available on Apple Silicon Macs)",
|
|
860
|
-
"exclusive": [
|
|
861
|
-
"no-actions"
|
|
862
|
-
],
|
|
863
|
-
"name": "local",
|
|
864
|
-
"allowNo": false,
|
|
865
|
-
"type": "boolean"
|
|
866
|
-
},
|
|
867
886
|
"serve": {
|
|
868
887
|
"description": "[default: true] Start frontend server (experimental)",
|
|
869
888
|
"name": "serve",
|
|
@@ -2171,5 +2190,5 @@
|
|
|
2171
2190
|
]
|
|
2172
2191
|
}
|
|
2173
2192
|
},
|
|
2174
|
-
"version": "
|
|
2193
|
+
"version": "14.0.1"
|
|
2175
2194
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aio-cli-plugin-app",
|
|
3
3
|
"description": "Create, Build and Deploy Adobe I/O Applications",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "14.0.1",
|
|
5
5
|
"author": "Adobe Inc.",
|
|
6
6
|
"bugs": "https://github.com/adobe/aio-cli-plugin-app/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"@adobe/aio-lib-runtime": "^7.1.0",
|
|
16
16
|
"@adobe/aio-lib-templates": "^3",
|
|
17
17
|
"@adobe/aio-lib-web": "^7",
|
|
18
|
-
"@adobe/generator-aio-app": "^
|
|
19
|
-
"@adobe/generator-app-common-lib": "^
|
|
18
|
+
"@adobe/generator-aio-app": "^9",
|
|
19
|
+
"@adobe/generator-app-common-lib": "^3",
|
|
20
20
|
"@adobe/inquirer-table-checkbox": "^2",
|
|
21
21
|
"@oclif/core": "^2.11.6",
|
|
22
22
|
"@octokit/rest": "^19.0.11",
|
|
@@ -27,9 +27,6 @@
|
|
|
27
27
|
"archiver": "^5.3.1",
|
|
28
28
|
"chalk": "^4",
|
|
29
29
|
"chokidar": "^3.5.2",
|
|
30
|
-
"debug": "^4.1.1",
|
|
31
|
-
"dedent-js": "^1.0.1",
|
|
32
|
-
"dotenv": "^16",
|
|
33
30
|
"execa": "^5.0.0",
|
|
34
31
|
"fs-extra": "^11.1.1",
|
|
35
32
|
"get-port": "^5",
|
|
@@ -41,7 +38,6 @@
|
|
|
41
38
|
"junk": "^3.1.0",
|
|
42
39
|
"lodash.clonedeep": "^4.5.0",
|
|
43
40
|
"node-abort-controller": "^3.1.1",
|
|
44
|
-
"node-fetch": "^2.6.7",
|
|
45
41
|
"open": "^8.4.2",
|
|
46
42
|
"ora": "^5",
|
|
47
43
|
"pure-http": "^3",
|
package/src/TemplatesCommand.js
CHANGED
|
@@ -113,7 +113,7 @@ class TemplatesCommand extends AddCommand {
|
|
|
113
113
|
type: 'table',
|
|
114
114
|
name: promptName,
|
|
115
115
|
bottomContent: `* = recommended by Adobe; to learn more about the templates, go to ${hyperlinker('https://adobe.ly/templates', 'https://adobe.ly/templates')}`,
|
|
116
|
-
message: '
|
|
116
|
+
message: 'Press spacebar to choose the template(s) to install:\n Pressing <enter> without selection will skip templates and install a standalone application.\n',
|
|
117
117
|
style: { head: [], border: [] },
|
|
118
118
|
wordWrap: true,
|
|
119
119
|
wrapOnWordBoundary: false,
|
|
@@ -79,7 +79,7 @@ class Build extends BaseCommand {
|
|
|
79
79
|
aioLogger.debug(`run hook for 'build-actions' for actions in '${name}' returned ${script}`)
|
|
80
80
|
spinner.start(`Building actions for '${name}'`)
|
|
81
81
|
if (!script) {
|
|
82
|
-
builtList = await RuntimeLib.buildActions(config, filterActions, flags['force-build'])
|
|
82
|
+
builtList = await RuntimeLib.buildActions(config, filterActions, flags['force-build'])
|
|
83
83
|
}
|
|
84
84
|
if (builtList.length > 0) {
|
|
85
85
|
spinner.succeed(chalk.green(`Built ${builtList.length} action(s) for '${name}'`))
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2025 Adobe. All rights reserved.
|
|
3
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const ora = require('ora')
|
|
14
|
+
const chalk = require('chalk')
|
|
15
|
+
const fs = require('fs-extra')
|
|
16
|
+
const path = require('path')
|
|
17
|
+
|
|
18
|
+
const BaseCommand = require('../../BaseCommand')
|
|
19
|
+
const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:clean', { provider: 'debug' })
|
|
20
|
+
const { LAST_BUILT_ACTIONS_FILENAME, LAST_DEPLOYED_ACTIONS_FILENAME } = require('../../lib/defaults')
|
|
21
|
+
|
|
22
|
+
class Clean extends BaseCommand {
|
|
23
|
+
async run () {
|
|
24
|
+
const { flags } = await this.parse(Clean)
|
|
25
|
+
const configs = await this.getAppExtConfigs(flags)
|
|
26
|
+
|
|
27
|
+
const spinner = ora()
|
|
28
|
+
|
|
29
|
+
try {
|
|
30
|
+
for (const [name, config] of Object.entries(configs)) {
|
|
31
|
+
await this.cleanAllBuildArtifacts(name, config, spinner)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
this.log(chalk.green(chalk.bold('Build artifacts cleaned up successfully!')))
|
|
35
|
+
} catch (error) {
|
|
36
|
+
spinner.stop()
|
|
37
|
+
throw error
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async cleanAllBuildArtifacts (name, config, spinner) {
|
|
42
|
+
try {
|
|
43
|
+
spinner.start(`Cleaning build artifacts for '${name}'`)
|
|
44
|
+
|
|
45
|
+
if (!config || !config.root) {
|
|
46
|
+
spinner.info(`No root directory found for extension '${name}'`)
|
|
47
|
+
return
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const locations = []
|
|
51
|
+
|
|
52
|
+
if (config.app && config.app.dist && fs.existsSync(config.app.dist)) {
|
|
53
|
+
locations.push(config.app.dist)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (config.dist && fs.existsSync(config.dist)) {
|
|
57
|
+
locations.push(config.dist)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const rootDist = path.join(config.root, 'dist')
|
|
61
|
+
if (fs.existsSync(rootDist)) {
|
|
62
|
+
locations.push(rootDist)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
aioLogger.debug(`Cleaning locations for ${name}: ${locations.join(', ')}`)
|
|
66
|
+
|
|
67
|
+
// Clean all possible locations
|
|
68
|
+
for (const location of locations) {
|
|
69
|
+
// First try to remove tracking files explicitly
|
|
70
|
+
const builtPath = path.join(location, LAST_BUILT_ACTIONS_FILENAME)
|
|
71
|
+
const deployedPath = path.join(location, LAST_DEPLOYED_ACTIONS_FILENAME)
|
|
72
|
+
|
|
73
|
+
if (fs.existsSync(builtPath)) {
|
|
74
|
+
await fs.remove(builtPath)
|
|
75
|
+
aioLogger.debug(`Removed tracking file: ${builtPath}`)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (fs.existsSync(deployedPath)) {
|
|
79
|
+
await fs.remove(deployedPath)
|
|
80
|
+
aioLogger.debug(`Removed tracking file: ${deployedPath}`)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Then empty the directory
|
|
84
|
+
await fs.emptyDir(location)
|
|
85
|
+
aioLogger.debug(`Emptied directory: ${location}`)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
spinner.succeed(chalk.green(`Cleaned build artifacts for '${name}'`))
|
|
89
|
+
} catch (err) {
|
|
90
|
+
aioLogger.debug(`Error cleaning artifacts for ${name}: ${err.message}`)
|
|
91
|
+
spinner.fail(chalk.red(`Failed to clean build artifacts for '${name}': ${err.message}`))
|
|
92
|
+
throw err
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
Clean.description = `Remove all build artifacts from the local machine
|
|
98
|
+
This command completely cleans all build artifacts from the dist directory including:
|
|
99
|
+
- Action build files
|
|
100
|
+
- Web assets (both production and development)
|
|
101
|
+
- Build tracking files
|
|
102
|
+
- Deployment tracking files
|
|
103
|
+
|
|
104
|
+
Note that this will require a full rebuild on your next build command.`
|
|
105
|
+
|
|
106
|
+
Clean.flags = {
|
|
107
|
+
...BaseCommand.flags
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
module.exports = Clean
|
|
@@ -185,8 +185,7 @@ class Deploy extends BuildCommand {
|
|
|
185
185
|
if (!script) {
|
|
186
186
|
const hookResults = await this.config.runHook('deploy-actions', {
|
|
187
187
|
appConfig: config,
|
|
188
|
-
filterEntities: filterActions || []
|
|
189
|
-
isLocalDev: false
|
|
188
|
+
filterEntities: filterActions || []
|
|
190
189
|
})
|
|
191
190
|
if (hookResults?.failures?.length > 0) {
|
|
192
191
|
// output should be "Error : <plugin-name> : <error-message>\n" for each failure
|
|
@@ -18,7 +18,6 @@ const BaseCommand = require('../../BaseCommand')
|
|
|
18
18
|
const { wrapError } = require('../../lib/app-helper')
|
|
19
19
|
const { getActionUrls } = require('@adobe/aio-lib-runtime').utils
|
|
20
20
|
const yaml = require('js-yaml')
|
|
21
|
-
const { loadLocalDevConfig } = require('../../lib/run-local-runtime')
|
|
22
21
|
|
|
23
22
|
class GetUrlCommand extends BaseCommand {
|
|
24
23
|
async run () {
|
|
@@ -46,16 +45,10 @@ class GetUrlCommand extends BaseCommand {
|
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
const actionUrls = {}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
})
|
|
54
|
-
} else {
|
|
55
|
-
Object.values(fullConfig.all).forEach(config => {
|
|
56
|
-
Object.assign(actionUrls, getActionUrls(config, true))
|
|
57
|
-
})
|
|
58
|
-
}
|
|
48
|
+
|
|
49
|
+
Object.values(fullConfig.all).forEach(config => {
|
|
50
|
+
Object.assign(actionUrls, getActionUrls(config, true))
|
|
51
|
+
})
|
|
59
52
|
urls.runtime = actionUrls
|
|
60
53
|
const cdnUrls = {}
|
|
61
54
|
if (options.cdn) {
|
|
@@ -110,9 +103,6 @@ GetUrlCommand.flags = {
|
|
|
110
103
|
yml: Flags.boolean({
|
|
111
104
|
description: 'Output yml',
|
|
112
105
|
char: 'y'
|
|
113
|
-
}),
|
|
114
|
-
local: Flags.boolean({
|
|
115
|
-
description: 'Display locally based action URLs'
|
|
116
106
|
})
|
|
117
107
|
}
|
|
118
108
|
|
package/src/commands/app/init.js
CHANGED
|
@@ -75,7 +75,7 @@ class InitCommand extends TemplatesCommand {
|
|
|
75
75
|
|
|
76
76
|
getInitialGenerators (flags) {
|
|
77
77
|
// TODO read from config to override
|
|
78
|
-
const initialGenerators = ['base-app', 'add-ci']
|
|
78
|
+
const initialGenerators = ['base-app', 'add-ci', 'add-vscode-config']
|
|
79
79
|
|
|
80
80
|
if (flags['standalone-app']) {
|
|
81
81
|
initialGenerators.push('application')
|