@swell/cli 2.0.1-alpha.13 → 2.0.1-alpha.16
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/dist/commands/app/install.d.ts +5 -2
- package/dist/commands/app/install.js +41 -38
- package/dist/commands/app/push.d.ts +3 -3
- package/dist/commands/app/push.js +46 -47
- package/dist/commands/app/version.js +3 -3
- package/dist/commands/create/app.d.ts +8 -8
- package/dist/commands/create/app.js +74 -71
- package/dist/commands/create/content.d.ts +2 -2
- package/dist/commands/create/content.js +10 -10
- package/dist/commands/create/function.d.ts +1 -1
- package/dist/commands/create/function.js +20 -20
- package/dist/commands/create/model.d.ts +2 -2
- package/dist/commands/create/model.js +11 -11
- package/dist/commands/create/notification.d.ts +2 -2
- package/dist/commands/create/notification.js +36 -38
- package/dist/commands/login.d.ts +1 -1
- package/dist/commands/login.js +7 -6
- package/dist/commands/logs.js +2 -0
- package/dist/create-collection-command.d.ts +6 -6
- package/dist/create-collection-command.js +19 -19
- package/dist/create-command.js +6 -4
- package/dist/lib/api.d.ts +3 -2
- package/dist/lib/api.js +11 -8
- package/dist/lib/app-config.d.ts +1 -0
- package/dist/lib/app-config.js +5 -3
- package/dist/lib/apps/index.d.ts +1 -1
- package/dist/lib/apps/index.js +1 -1
- package/dist/lib/apps/paths.d.ts +1 -1
- package/dist/lib/apps/paths.js +1 -1
- package/dist/lib/bundle.js +4 -5
- package/dist/lib/constants.js +2 -3
- package/dist/lib/create/content.d.ts +1 -1
- package/dist/lib/create/content.js +1 -1
- package/dist/lib/create/function.d.ts +2 -2
- package/dist/lib/create/function.js +2 -2
- package/dist/lib/create/index.d.ts +1 -1
- package/dist/lib/create/index.js +6 -6
- package/dist/lib/create/model.d.ts +2 -2
- package/dist/lib/create/notification.d.ts +2 -2
- package/dist/lib/sessions.js +2 -2
- package/dist/lib/stores.d.ts +4 -1
- package/dist/lib/stores.js +6 -3
- package/dist/lib/swell-function-wrapper.d.ts +2 -2
- package/dist/lib/swell-function-wrapper.js +2 -2
- package/dist/remote-app-command.d.ts +2 -2
- package/dist/remote-app-command.js +18 -18
- package/oclif.manifest.json +60 -57
- package/package.json +2 -1
package/oclif.manifest.json
CHANGED
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
"<%= config.bin %> <%= command.id %>"
|
|
9
9
|
],
|
|
10
10
|
"flags": {
|
|
11
|
+
"force": {
|
|
12
|
+
"char": "f",
|
|
13
|
+
"description": "show all available stores and switch the current session if needed",
|
|
14
|
+
"name": "force",
|
|
15
|
+
"allowNo": false,
|
|
16
|
+
"type": "boolean"
|
|
17
|
+
},
|
|
11
18
|
"store": {
|
|
12
19
|
"char": "s",
|
|
13
20
|
"description": "store to login to",
|
|
@@ -15,13 +22,6 @@
|
|
|
15
22
|
"hasDynamicHelp": false,
|
|
16
23
|
"multiple": false,
|
|
17
24
|
"type": "option"
|
|
18
|
-
},
|
|
19
|
-
"force": {
|
|
20
|
-
"char": "f",
|
|
21
|
-
"description": "show all available stores and switch the current session if needed",
|
|
22
|
-
"name": "force",
|
|
23
|
-
"allowNo": false,
|
|
24
|
-
"type": "boolean"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"hasDynamicHelp": false,
|
|
@@ -442,6 +442,9 @@
|
|
|
442
442
|
"strict": true,
|
|
443
443
|
"summary": "Install an existing app in another store environment.",
|
|
444
444
|
"enableJsonFlag": false,
|
|
445
|
+
"orientation": {
|
|
446
|
+
"env": "test"
|
|
447
|
+
},
|
|
445
448
|
"isESM": true,
|
|
446
449
|
"relativePath": [
|
|
447
450
|
"dist",
|
|
@@ -703,15 +706,6 @@
|
|
|
703
706
|
"multiple": false,
|
|
704
707
|
"type": "option"
|
|
705
708
|
},
|
|
706
|
-
"label": {
|
|
707
|
-
"char": "l",
|
|
708
|
-
"description": "content model label",
|
|
709
|
-
"name": "label",
|
|
710
|
-
"default": "",
|
|
711
|
-
"hasDynamicHelp": false,
|
|
712
|
-
"multiple": false,
|
|
713
|
-
"type": "option"
|
|
714
|
-
},
|
|
715
709
|
"description": {
|
|
716
710
|
"char": "d",
|
|
717
711
|
"description": "content model description",
|
|
@@ -730,10 +724,10 @@
|
|
|
730
724
|
"multiple": false,
|
|
731
725
|
"type": "option"
|
|
732
726
|
},
|
|
733
|
-
"
|
|
734
|
-
"char": "
|
|
735
|
-
"description": "
|
|
736
|
-
"name": "
|
|
727
|
+
"label": {
|
|
728
|
+
"char": "l",
|
|
729
|
+
"description": "content model label",
|
|
730
|
+
"name": "label",
|
|
737
731
|
"default": "",
|
|
738
732
|
"hasDynamicHelp": false,
|
|
739
733
|
"multiple": false,
|
|
@@ -744,6 +738,15 @@
|
|
|
744
738
|
"name": "overwrite",
|
|
745
739
|
"allowNo": false,
|
|
746
740
|
"type": "boolean"
|
|
741
|
+
},
|
|
742
|
+
"views": {
|
|
743
|
+
"char": "v",
|
|
744
|
+
"description": "list of content model views delimited by commas, i.e. list,edit,new",
|
|
745
|
+
"name": "views",
|
|
746
|
+
"default": "",
|
|
747
|
+
"hasDynamicHelp": false,
|
|
748
|
+
"multiple": false,
|
|
749
|
+
"type": "option"
|
|
747
750
|
}
|
|
748
751
|
},
|
|
749
752
|
"hasDynamicHelp": false,
|
|
@@ -823,6 +826,12 @@
|
|
|
823
826
|
"multiple": false,
|
|
824
827
|
"type": "option"
|
|
825
828
|
},
|
|
829
|
+
"overwrite": {
|
|
830
|
+
"description": "overwrite existing function file",
|
|
831
|
+
"name": "overwrite",
|
|
832
|
+
"allowNo": false,
|
|
833
|
+
"type": "boolean"
|
|
834
|
+
},
|
|
826
835
|
"route": {
|
|
827
836
|
"char": "r",
|
|
828
837
|
"description": "access type used with route trigger",
|
|
@@ -844,12 +853,6 @@
|
|
|
844
853
|
"hasDynamicHelp": false,
|
|
845
854
|
"multiple": false,
|
|
846
855
|
"type": "option"
|
|
847
|
-
},
|
|
848
|
-
"overwrite": {
|
|
849
|
-
"description": "overwrite existing function file",
|
|
850
|
-
"name": "overwrite",
|
|
851
|
-
"allowNo": false,
|
|
852
|
-
"type": "boolean"
|
|
853
856
|
}
|
|
854
857
|
},
|
|
855
858
|
"hasDynamicHelp": false,
|
|
@@ -928,15 +931,6 @@
|
|
|
928
931
|
"multiple": false,
|
|
929
932
|
"type": "option"
|
|
930
933
|
},
|
|
931
|
-
"label": {
|
|
932
|
-
"char": "l",
|
|
933
|
-
"description": "data model label, i.e. Products",
|
|
934
|
-
"name": "label",
|
|
935
|
-
"default": "",
|
|
936
|
-
"hasDynamicHelp": false,
|
|
937
|
-
"multiple": false,
|
|
938
|
-
"type": "option"
|
|
939
|
-
},
|
|
940
934
|
"description": {
|
|
941
935
|
"char": "d",
|
|
942
936
|
"description": "data model description",
|
|
@@ -946,6 +940,15 @@
|
|
|
946
940
|
"multiple": false,
|
|
947
941
|
"type": "option"
|
|
948
942
|
},
|
|
943
|
+
"events": {
|
|
944
|
+
"char": "e",
|
|
945
|
+
"description": "list of data model events delimited by commas",
|
|
946
|
+
"name": "events",
|
|
947
|
+
"default": "created,updated,deleted",
|
|
948
|
+
"hasDynamicHelp": false,
|
|
949
|
+
"multiple": false,
|
|
950
|
+
"type": "option"
|
|
951
|
+
},
|
|
949
952
|
"fields": {
|
|
950
953
|
"char": "f",
|
|
951
954
|
"description": "list of data model fields delimited by commas",
|
|
@@ -955,11 +958,11 @@
|
|
|
955
958
|
"multiple": false,
|
|
956
959
|
"type": "option"
|
|
957
960
|
},
|
|
958
|
-
"
|
|
959
|
-
"char": "
|
|
960
|
-
"description": "
|
|
961
|
-
"name": "
|
|
962
|
-
"default": "
|
|
961
|
+
"label": {
|
|
962
|
+
"char": "l",
|
|
963
|
+
"description": "data model label, i.e. Products",
|
|
964
|
+
"name": "label",
|
|
965
|
+
"default": "",
|
|
963
966
|
"hasDynamicHelp": false,
|
|
964
967
|
"multiple": false,
|
|
965
968
|
"type": "option"
|
|
@@ -1021,6 +1024,13 @@
|
|
|
1021
1024
|
"multiple": false,
|
|
1022
1025
|
"type": "option"
|
|
1023
1026
|
},
|
|
1027
|
+
"admin": {
|
|
1028
|
+
"char": "a",
|
|
1029
|
+
"description": "indicate when the notification is sent to store admins only",
|
|
1030
|
+
"name": "admin",
|
|
1031
|
+
"allowNo": false,
|
|
1032
|
+
"type": "boolean"
|
|
1033
|
+
},
|
|
1024
1034
|
"description": {
|
|
1025
1035
|
"char": "d",
|
|
1026
1036
|
"description": "notification description",
|
|
@@ -1030,15 +1040,6 @@
|
|
|
1030
1040
|
"multiple": false,
|
|
1031
1041
|
"type": "option"
|
|
1032
1042
|
},
|
|
1033
|
-
"subject": {
|
|
1034
|
-
"char": "s",
|
|
1035
|
-
"description": "notification email subject",
|
|
1036
|
-
"name": "subject",
|
|
1037
|
-
"default": "",
|
|
1038
|
-
"hasDynamicHelp": false,
|
|
1039
|
-
"multiple": false,
|
|
1040
|
-
"type": "option"
|
|
1041
|
-
},
|
|
1042
1043
|
"event": {
|
|
1043
1044
|
"char": "e",
|
|
1044
1045
|
"description": "data model event to trigger the notification event, i.e. created",
|
|
@@ -1048,13 +1049,6 @@
|
|
|
1048
1049
|
"multiple": false,
|
|
1049
1050
|
"type": "option"
|
|
1050
1051
|
},
|
|
1051
|
-
"admin": {
|
|
1052
|
-
"char": "a",
|
|
1053
|
-
"description": "indicate when the notification is sent to store admins only",
|
|
1054
|
-
"name": "admin",
|
|
1055
|
-
"allowNo": false,
|
|
1056
|
-
"type": "boolean"
|
|
1057
|
-
},
|
|
1058
1052
|
"once": {
|
|
1059
1053
|
"char": "o",
|
|
1060
1054
|
"description": "indicate the notification should be sent only once when conditions are met, instead of repeating",
|
|
@@ -1067,6 +1061,15 @@
|
|
|
1067
1061
|
"name": "overwrite",
|
|
1068
1062
|
"allowNo": false,
|
|
1069
1063
|
"type": "boolean"
|
|
1064
|
+
},
|
|
1065
|
+
"subject": {
|
|
1066
|
+
"char": "s",
|
|
1067
|
+
"description": "notification email subject",
|
|
1068
|
+
"name": "subject",
|
|
1069
|
+
"default": "",
|
|
1070
|
+
"hasDynamicHelp": false,
|
|
1071
|
+
"multiple": false,
|
|
1072
|
+
"type": "option"
|
|
1070
1073
|
}
|
|
1071
1074
|
},
|
|
1072
1075
|
"hasDynamicHelp": false,
|
|
@@ -1086,5 +1089,5 @@
|
|
|
1086
1089
|
]
|
|
1087
1090
|
}
|
|
1088
1091
|
},
|
|
1089
|
-
"version": "2.0.1-alpha.
|
|
1092
|
+
"version": "2.0.1-alpha.16"
|
|
1090
1093
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swell/cli",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Swell's command line interface/utility",
|
|
6
6
|
"keywords": [
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"scripts": {
|
|
91
|
+
"preinstall": "npm i -g ts-node",
|
|
91
92
|
"build": "shx rm -rf dist && shx rm -f tsconfig.tsbuildinfo && tsc -b",
|
|
92
93
|
"lint": "eslint . --ext .ts --config .eslintrc",
|
|
93
94
|
"postpack": "shx rm -f oclif.manifest.json",
|