@stechquick/symphony-cli 0.6.14 → 0.6.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/README.md CHANGED
@@ -19,7 +19,7 @@ $ npm install -g @stechquick/symphony-cli
19
19
  $ symphony-cli COMMAND
20
20
  running command...
21
21
  $ symphony-cli (-v|--version|version)
22
- @stechquick/symphony-cli/0.6.14 linux-x64 node-v16.20.2
22
+ @stechquick/symphony-cli/0.6.16 linux-x64 node-v16.20.2
23
23
  $ symphony-cli --help [COMMAND]
24
24
  USAGE
25
25
  $ symphony-cli COMMAND
@@ -82,7 +82,7 @@ EXAMPLE
82
82
  symphony-cli mui-create myUI -d="My Micro UI project"
83
83
  ```
84
84
 
85
- _See code: [src/commands/mui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/mui-create.ts)_
85
+ _See code: [src/commands/mui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/mui-create.ts)_
86
86
 
87
87
  ## `symphony-cli nc-addcomp NAME`
88
88
 
@@ -99,7 +99,7 @@ EXAMPLE
99
99
  symphony-cli nc-addcomp my_comp_name
100
100
  ```
101
101
 
102
- _See code: [src/commands/nc-addcomp.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/nc-addcomp.ts)_
102
+ _See code: [src/commands/nc-addcomp.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/nc-addcomp.ts)_
103
103
 
104
104
  ## `symphony-cli nc-build`
105
105
 
@@ -117,7 +117,7 @@ EXAMPLES
117
117
  $ symphony-cli nc-build -w
118
118
  ```
119
119
 
120
- _See code: [src/commands/nc-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/nc-build.ts)_
120
+ _See code: [src/commands/nc-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/nc-build.ts)_
121
121
 
122
122
  ## `symphony-cli nc-create NAME`
123
123
 
@@ -137,7 +137,7 @@ EXAMPLE
137
137
  symphony-cli nc-create nc_example -d="my named component example"
138
138
  ```
139
139
 
140
- _See code: [src/commands/nc-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/nc-create.ts)_
140
+ _See code: [src/commands/nc-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/nc-create.ts)_
141
141
 
142
142
  ## `symphony-cli qui-build`
143
143
 
@@ -147,11 +147,15 @@ Plateau-QUI command to build your Quick ui project
147
147
  USAGE
148
148
  $ symphony-cli qui-build
149
149
 
150
+ OPTIONS
151
+ -w, --watch
152
+ --skipPackages Do not include packages folders in dist
153
+
150
154
  EXAMPLE
151
- $ symphony-cli qui-build -w
155
+ $ symphony-cli qui-build --skipPackages
152
156
  ```
153
157
 
154
- _See code: [src/commands/qui-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/qui-build.ts)_
158
+ _See code: [src/commands/qui-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/qui-build.ts)_
155
159
 
156
160
  ## `symphony-cli qui-create NAME`
157
161
 
@@ -165,18 +169,20 @@ ARGUMENTS
165
169
  NAME input Plateau UI name
166
170
 
167
171
  OPTIONS
168
- -d, --desc=desc description to project
169
- -r, --registry=registry your registery address (example: nexus address)
170
- -t, --token=token npm token for @stechquick
172
+ -d, --desc=desc description to project
173
+ -r, --registry=registry your registery address (example: nexus address)
174
+ -s, --skipPackages=skipPackages Skip packages and use the shell's WebSDK end settings
175
+ -t, --token=token npm token for @stechquick
171
176
 
172
177
  EXAMPLES
173
178
  symphony-cli qui-create myUI -t=TOKEN
174
179
  symphony-cli qui-create myUI -t=TOKEN -d="My Plateau UI project"
175
180
  symphony-cli qui-create myUI -r=REGISTERY
176
181
  symphony-cli qui-create myUI -r=REGISTERY -d="My Plateau UI project"
182
+ symphony-cli qui-create myUI -r=REGISTERY -s=SKIPPACKAGES -d="My Plateau UI project"
177
183
  ```
178
184
 
179
- _See code: [src/commands/qui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/qui-create.ts)_
185
+ _See code: [src/commands/qui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/qui-create.ts)_
180
186
 
181
187
  ## `symphony-cli qui-start`
182
188
 
@@ -193,7 +199,7 @@ EXAMPLE
193
199
  $ symphony-cli qui-start -b
194
200
  ```
195
201
 
196
- _See code: [src/commands/qui-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/qui-start.ts)_
202
+ _See code: [src/commands/qui-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/qui-start.ts)_
197
203
 
198
204
  ## `symphony-cli quick-serve`
199
205
 
@@ -216,7 +222,7 @@ EXAMPLES
216
222
  $ symphony-cli quick-serve -g -r C:/MyPathToServe
217
223
  ```
218
224
 
219
- _See code: [src/commands/quick-serve.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/quick-serve.ts)_
225
+ _See code: [src/commands/quick-serve.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/quick-serve.ts)_
220
226
 
221
227
  ## `symphony-cli studio-sync`
222
228
 
@@ -235,7 +241,7 @@ EXAMPLE
235
241
  $ symphony-cli studio-sync
236
242
  ```
237
243
 
238
- _See code: [src/commands/studio-sync.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/studio-sync.ts)_
244
+ _See code: [src/commands/studio-sync.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/studio-sync.ts)_
239
245
 
240
246
  ## `symphony-cli sym-addfunc FUNCNAME`
241
247
 
@@ -252,7 +258,7 @@ EXAMPLE
252
258
  symphony-cli sym-addfunc havalemenu
253
259
  ```
254
260
 
255
- _See code: [src/commands/sym-addfunc.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-addfunc.ts)_
261
+ _See code: [src/commands/sym-addfunc.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/sym-addfunc.ts)_
256
262
 
257
263
  ## `symphony-cli sym-build`
258
264
 
@@ -282,7 +288,7 @@ EXAMPLES
282
288
  $ symphony-cli sym-build --swagger -l ./dist/api/local.js
283
289
  ```
284
290
 
285
- _See code: [src/commands/sym-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-build.ts)_
291
+ _See code: [src/commands/sym-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/sym-build.ts)_
286
292
 
287
293
  ## `symphony-cli sym-create NAME`
288
294
 
@@ -307,7 +313,7 @@ EXAMPLES
307
313
  symphony-cli sym-create havale -r=REGISTERY -d="Havale işlemi"
308
314
  ```
309
315
 
310
- _See code: [src/commands/sym-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-create.ts)_
316
+ _See code: [src/commands/sym-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/sym-create.ts)_
311
317
 
312
318
  ## `symphony-cli sym-create-module NAME`
313
319
 
@@ -327,7 +333,7 @@ EXAMPLE
327
333
  symphony-cli sym-create-module abm -d="abm module description"
328
334
  ```
329
335
 
330
- _See code: [src/commands/sym-create-module.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-create-module.ts)_
336
+ _See code: [src/commands/sym-create-module.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/sym-create-module.ts)_
331
337
 
332
338
  ## `symphony-cli sym-fn-deploy ENVIRONMENT`
333
339
 
@@ -361,7 +367,7 @@ EXAMPLES
361
367
  --f_url="MyFnApiUrl"
362
368
  ```
363
369
 
364
- _See code: [src/commands/sym-fn-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-fn-deploy.ts)_
370
+ _See code: [src/commands/sym-fn-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/sym-fn-deploy.ts)_
365
371
 
366
372
  ## `symphony-cli sym-nano-deploy`
367
373
 
@@ -379,7 +385,7 @@ EXAMPLE
379
385
  symphony-cli sym-nano-deploy
380
386
  ```
381
387
 
382
- _See code: [src/commands/sym-nano-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-nano-deploy.ts)_
388
+ _See code: [src/commands/sym-nano-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/sym-nano-deploy.ts)_
383
389
 
384
390
  ## `symphony-cli sym-start`
385
391
 
@@ -407,7 +413,7 @@ EXAMPLES
407
413
  $ symphony-cli sym-start -l ./dist/api/local.js
408
414
  ```
409
415
 
410
- _See code: [src/commands/sym-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-start.ts)_
416
+ _See code: [src/commands/sym-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/sym-start.ts)_
411
417
 
412
418
  ## `symphony-cli sym-test`
413
419
 
@@ -424,5 +430,5 @@ EXAMPLE
424
430
  $ symphony-cli sym-test
425
431
  ```
426
432
 
427
- _See code: [src/commands/sym-test.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-test.ts)_
433
+ _See code: [src/commands/sym-test.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.16/src/commands/sym-test.ts)_
428
434
  <!-- commandsstop -->
@@ -2,5 +2,9 @@ import { Command } from '@oclif/command';
2
2
  export default class BuildUI extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
+ static flags: {
6
+ watch: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
7
+ skipPackages: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
8
+ };
5
9
  run(): Promise<void>;
6
10
  }
@@ -6,11 +6,19 @@ const log_1 = require("@stechquick/symphony-common/lib/log");
6
6
  const chalk_1 = require("../helpers/chalk");
7
7
  class BuildUI extends command_1.Command {
8
8
  async run() {
9
+ const { flags } = this.parse(BuildUI);
10
+ const skipPackages = flags.skipPackages;
9
11
  log_1.Logger.log({ message: chalk_1.Chalk.create("green.bold", "Build started..."), timeFormat: "datetime" });
10
- await new quiBuilder_1.FolderCopier().Execute();
12
+ await new quiBuilder_1.FolderCopier().Execute({ skipPackages });
11
13
  log_1.Logger.log({ message: chalk_1.Chalk.create("green.bold", "Build completed successfully."), timeFormat: "datetime" });
12
14
  }
13
15
  }
14
16
  exports.default = BuildUI;
15
17
  BuildUI.description = 'Plateau-QUI command to build your Quick ui project';
16
- BuildUI.examples = [`$ symphony-cli qui-build -w`];
18
+ BuildUI.examples = [`$ symphony-cli qui-build --skipPackages`];
19
+ BuildUI.flags = {
20
+ watch: command_1.flags.boolean({ char: 'w' }),
21
+ skipPackages: command_1.flags.boolean({
22
+ description: 'Do not include packages folders in dist',
23
+ }),
24
+ };
@@ -11,6 +11,7 @@ export default class CreateUI extends Command {
11
11
  desc: flags.IOptionFlag<string>;
12
12
  token: flags.IOptionFlag<string>;
13
13
  registry: flags.IOptionFlag<string>;
14
+ skipPackages: flags.IOptionFlag<string>;
14
15
  };
15
16
  run(): Promise<void>;
16
17
  }
@@ -10,7 +10,7 @@ class CreateUI extends command_1.Command {
10
10
  const { flags } = this.parse(CreateUI);
11
11
  const { args } = this.parse(CreateUI);
12
12
  log_1.Logger.log({ message: chalk_1.Chalk.create("green.bold", "Creating UI. Please wait..."), timeFormat: "datetime" });
13
- let createResponse = await new createuiHelper_1.CreateUIHelper().CreateUI(args["name"], `${flags.desc}`, `${flags.token}`, `${flags.registry}`);
13
+ let createResponse = await new createuiHelper_1.CreateUIHelper().CreateUI(args["name"], `${flags.desc}`, `${flags.token}`, `${flags.registry}`, `${flags.skipPackages}`);
14
14
  if (createResponse == false) {
15
15
  log_1.Logger.log({ message: chalk_1.Chalk.create("green.bold", "UI creation failed due to an error. Please review the error message for more details."), timeFormat: "datetime" });
16
16
  }
@@ -26,7 +26,8 @@ CreateUI.examples = [
26
26
  `symphony-cli qui-create myUI -t=TOKEN`,
27
27
  `symphony-cli qui-create myUI -t=TOKEN -d="My Plateau UI project"`,
28
28
  `symphony-cli qui-create myUI -r=REGISTERY`,
29
- `symphony-cli qui-create myUI -r=REGISTERY -d="My Plateau UI project"`
29
+ `symphony-cli qui-create myUI -r=REGISTERY -d="My Plateau UI project"`,
30
+ `symphony-cli qui-create myUI -r=REGISTERY -s=SKIPPACKAGES -d="My Plateau UI project"`
30
31
  ];
31
32
  CreateUI.args = [
32
33
  {
@@ -59,5 +60,13 @@ CreateUI.flags = {
59
60
  multiple: false,
60
61
  default: '',
61
62
  required: false,
63
+ }),
64
+ skipPackages: command_1.flags.string({
65
+ char: "s",
66
+ description: "Skip packages and use the shell's WebSDK end settings",
67
+ hidden: false,
68
+ multiple: false,
69
+ default: '',
70
+ required: false,
62
71
  })
63
72
  };
@@ -6,6 +6,7 @@ export declare class CreateUIHelper {
6
6
  private removeRegExp;
7
7
  private npmrcTokenRegExp;
8
8
  private createuiSearchPath;
9
+ private uiBuildScript;
9
10
  constructor();
10
- CreateUI(uiName: string, uiDesc: string, npmToken?: string, registry?: string): Promise<false | void>;
11
+ CreateUI(uiName: string, uiDesc: string, npmToken?: string, registry?: string, skipPackages?: string): Promise<false | void>;
11
12
  }
@@ -17,9 +17,10 @@ class CreateUIHelper {
17
17
  this.removeRegExp = /{{remove}}/g;
18
18
  this.npmrcTokenRegExp = /{{NpmrcStechQuickToken}}/g;
19
19
  this.createuiSearchPath = "../../../../templates/createui";
20
+ this.uiBuildScript = /{{UIBuildScript}}/g;
20
21
  this.replaceMap.set(this.removeRegExp, "");
21
22
  }
22
- async CreateUI(uiName, uiDesc, npmToken, registry) {
23
+ async CreateUI(uiName, uiDesc, npmToken, registry, skipPackages) {
23
24
  if (npmToken == "" && registry == "") {
24
25
  log_1.Logger.log({ message: chalk_1.Chalk.create("yellow.bold", "ERR! token or registry required. Let's follow the documentation step by step: https://docs.onplateau.com/Export/Uncompiled-Export/create-ui"), timeFormat: "datetime" });
25
26
  return false;
@@ -31,10 +32,15 @@ class CreateUIHelper {
31
32
  tokenInfo = "@stechquick:registry=https://registry.npmjs.org/" + "\r\n" + "//registry.npmjs.org/:_authToken=" + npmToken;
32
33
  }
33
34
  else if (registry) {
34
- //https://scorenexus.isbank/repository/npm-stechquick-registry-proxy-repo/
35
+ //registry=https://scorenexus.isbank/repository/npm-group-repo/
35
36
  tokenInfo = "registry=" + registry + "\r\n" + "strict-ssl=false";
36
37
  }
37
38
  this.replaceMap.set(this.npmrcTokenRegExp, tokenInfo);
39
+ let uiBuildScript = '"build": "symphony-cli qui-build"';
40
+ if (skipPackages) {
41
+ uiBuildScript = '"build": "symphony-cli qui-build --skipPackages",' + "\r\n\t\t" + '"build:local": "symphony-cli qui-build"';
42
+ }
43
+ this.replaceMap.set(this.uiBuildScript, uiBuildScript);
38
44
  const existsSubPath = fs.existsSync(this.subPath + uiName);
39
45
  if (existsSubPath) {
40
46
  const answer = await cli_ux_1.default.confirm("App: " + uiName + " already exists. If you have any, you will lose your pending changes. Would you like to overwrite it?");
@@ -1,4 +1,12 @@
1
+ export interface FolderCopierOptions {
2
+ skipPackages?: boolean;
3
+ }
1
4
  export declare class FolderCopier {
5
+ private getProjectVersion;
6
+ private injectBuildOptionsToIndex;
7
+ private deleteFolder;
8
+ private deleteFoldersByName;
9
+ private deleteSkippedFolders;
2
10
  private checkContainerServicesFile;
3
- Execute(): Promise<void>;
11
+ Execute(options?: FolderCopierOptions): Promise<void>;
4
12
  }
@@ -12,6 +12,69 @@ const qJsonParser_1 = require("@stechquick/algae/lib/helpers/qJsonParser");
12
12
  const quickSettingsBundler_1 = require("@stechquick/algae/lib/quick/quickSettingsBundler");
13
13
  const qjsonVersionHelper_1 = require("@stechquick/algae/lib/helpers/qjsonVersionHelper");
14
14
  class FolderCopier {
15
+ getProjectVersion() {
16
+ try {
17
+ const packageJson = JSON.parse(fs.readFileSync("./package.json", { encoding: "utf-8" }));
18
+ return typeof packageJson.devDependencies["@stechquick/qui"] === "string" ? packageJson.devDependencies["@stechquick/qui"] : "";
19
+ }
20
+ catch (error) {
21
+ return "";
22
+ }
23
+ }
24
+ injectBuildOptionsToIndex(options) {
25
+ const indexPath = "./dist/client/index.html";
26
+ if (!fs.existsSync(indexPath)) {
27
+ return;
28
+ }
29
+ const buildOptions = {
30
+ skipPackages: options.skipPackages === true,
31
+ };
32
+ let indexContent = fs.readFileSync(indexPath, { encoding: "utf-8" });
33
+ indexContent = indexContent
34
+ .replace(/<<version>>/g, this.getProjectVersion())
35
+ .replace(/<<(?:narQUI|skipPackages)>>/g, buildOptions.skipPackages ? "true" : "false");
36
+ if (!indexContent.includes("window.__quiBuildOptions")) {
37
+ const buildOptionsScript = [
38
+ " <script>",
39
+ ` window.__quiBuildOptions = ${JSON.stringify(buildOptions)};`,
40
+ " </script>"
41
+ ].join("\n");
42
+ indexContent = indexContent.replace(/<\/head>/i, `${buildOptionsScript}\n</head>`);
43
+ }
44
+ fs.writeFileSync(indexPath, indexContent, { encoding: "utf-8" });
45
+ }
46
+ deleteFolder(folderPath) {
47
+ if (!fs.existsSync(folderPath)) {
48
+ return;
49
+ }
50
+ fileHelper_1.DeleteFolder(folderPath);
51
+ if (fs.existsSync(folderPath)) {
52
+ fs.rmdirSync(folderPath);
53
+ }
54
+ }
55
+ deleteFoldersByName(folderPath, folderNames) {
56
+ if (!fs.existsSync(folderPath)) {
57
+ return;
58
+ }
59
+ fs.readdirSync(folderPath).forEach(item => {
60
+ const itemPath = path.join(folderPath, item);
61
+ if (!fs.statSync(itemPath).isDirectory()) {
62
+ return;
63
+ }
64
+ if (folderNames.includes(item)) {
65
+ this.deleteFolder(itemPath);
66
+ return;
67
+ }
68
+ this.deleteFoldersByName(itemPath, folderNames);
69
+ });
70
+ }
71
+ deleteSkippedFolders(options) {
72
+ if (options.skipPackages) {
73
+ this.deleteFoldersByName("./dist", ["packages"]);
74
+ this.deleteFolder("./dist/client/settings");
75
+ this.deleteFolder("./dist/client/library");
76
+ }
77
+ }
15
78
  checkContainerServicesFile(settings) {
16
79
  try {
17
80
  if (!settings["containerServicesPath"]) {
@@ -27,10 +90,12 @@ class FolderCopier {
27
90
  fs.writeFileSync("./settings/js/containerServices.ts", data, 'utf8');
28
91
  }
29
92
  }
30
- async Execute() {
93
+ async Execute(options = {}) {
31
94
  fileHelper_1.DeleteFolder("./dist"); //deletes dist folder of project
32
95
  log_1.Logger.log({ message: chalk_1.Chalk.create("green.bold", "Folders copying..."), timeFormat: "datetime" });
33
- fileHelper_1.CopyFolder("./node_modules/@stechquick/qui/dist", "./dist", ["build"]); // copies /node_modules/@stechquick/qui/dist folder to dist
96
+ const excludedFolders = options.skipPackages ? ["build", "packages"] : ["build"];
97
+ fileHelper_1.CopyFolder("./node_modules/@stechquick/qui/dist", "./dist", excludedFolders); // copies /node_modules/@stechquick/qui/dist folder to dist
98
+ this.injectBuildOptionsToIndex(options);
34
99
  let settingsContent = fs.readFileSync(path.resolve("./settings/settings.yaml"), { encoding: "utf-8" }); // reads settings.yaml
35
100
  let settings = js_yaml_1.default.load(settingsContent); // converts yaml file content to js
36
101
  //this.checkContainerServicesFile(settings);
@@ -48,6 +113,7 @@ class FolderCopier {
48
113
  qjsonVersionHelper_1.QjsonVersionHelper.mapDirectorytoSettingsYaml(settings, { safeDump: (jsObject) => js_yaml_1.default.safeDump(jsObject) });
49
114
  fileHelper_1.CopyFile("./worker/a9e657cbf4abb977edda.worker.js", "./dist/client", { copyIfExists: true }); // copies worker.js file to dist/client
50
115
  await new quickSettingsBundler_1.QuickSettingsBundler().bundleSettings("./dist", { yaml: { load: yamlContent => js_yaml_1.default.load(yamlContent) } });
116
+ this.deleteSkippedFolders(options);
51
117
  log_1.Logger.log({ message: chalk_1.Chalk.create("green.bold", "Folders copied successfully."), timeFormat: "datetime" });
52
118
  }
53
119
  }
@@ -1 +1 @@
1
- {"version":"0.6.14","commands":{"mui-create":{"id":"mui-create","description":"MicroUI command to create a new Micro UI project","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli mui-create myUI -d=\"My Micro UI project\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to project","hidden":false,"required":false,"default":""}},"args":[{"name":"name","description":"input microui name","required":true}]},"nc-addcomp":{"id":"nc-addcomp","description":"Command for add a named component to nc project.","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli nc-addcomp my_comp_name"],"flags":{},"args":[{"name":"name","description":"input component name","required":true}]},"nc-build":{"id":"nc-build","description":"Command for build your named component project.","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli nc-build","$ symphony-cli nc-build -w"],"flags":{"watch":{"name":"watch","type":"boolean","char":"w","description":"for watch","allowNo":false}},"args":[]},"nc-create":{"id":"nc-create","description":"Command for create a named component template project.","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli nc-create nc_example -d=\"my named component example\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to named component","hidden":false,"required":false,"default":""}},"args":[{"name":"name","description":"input project name","required":true}]},"qui-build":{"id":"qui-build","description":"Plateau-QUI command to build your Quick ui project","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli qui-build -w"],"flags":{},"args":[]},"qui-create":{"id":"qui-create","description":"Plateau-UI command to create a new Plateau UI project","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli qui-create myUI -t=TOKEN","symphony-cli qui-create myUI -t=TOKEN -d=\"My Plateau UI project\"","symphony-cli qui-create myUI -r=REGISTERY","symphony-cli qui-create myUI -r=REGISTERY -d=\"My Plateau UI project\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to project","hidden":false,"required":false,"default":""},"token":{"name":"token","type":"option","char":"t","description":"npm token for @stechquick","hidden":false,"required":false,"default":""},"registry":{"name":"registry","type":"option","char":"r","description":"your registery address (example: nexus address)","hidden":false,"required":false,"default":""}},"args":[{"name":"name","description":"input Plateau UI name","required":true}]},"qui-start":{"id":"qui-start","description":"Plateau-QUI command for start your Quick ui project with/without build","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli qui-start -b"],"flags":{"build":{"name":"build","type":"boolean","char":"b","description":"for build","allowNo":false}},"args":[]},"quick-serve":{"id":"quick-serve","description":"QUICK command for serving your path","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli quick-serve","$ symphony-cli quick-serve -p 3000","$ symphony-cli quick-serve -g","$ symphony-cli quick-serve -r C:/MyPathToServe","$ symphony-cli quick-serve -g -r C:/MyPathToServe"],"flags":{"path":{"name":"path","type":"option","char":"r","description":"Change path to serve"},"httpPort":{"name":"httpPort","type":"option","char":"p","description":"HTTP port to serve"},"global":{"name":"global","type":"boolean","char":"g","description":"Host/visible for everyone.","allowNo":false}},"args":[]},"studio-sync":{"id":"studio-sync","description":"Studio command for serving your path","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli studio-sync"],"flags":{"path":{"name":"path","type":"option","char":"r","description":"Change path to serve"},"httpPort":{"name":"httpPort","type":"option","char":"p","description":"HTTP port to serve"},"global":{"name":"global","type":"boolean","char":"g","description":"Host/visible for everyone.","allowNo":false}},"args":[]},"sym-addfunc":{"id":"sym-addfunc","description":"Plateau-Symphony command to create a new function","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli sym-addfunc havalemenu"],"flags":{},"args":[{"name":"funcname","description":"input function name","required":true,"hidden":false}]},"sym-build":{"id":"sym-build","description":"Plateau-Symphony command to build the app with/without watch","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli sym-build","$ symphony-cli sym-build -w","$ symphony-cli sym-build --swagger","$ symphony-cli sym-build --swagger -i","$ symphony-cli sym-build --swagger -l ./dist/api/local.js"],"flags":{"watch":{"name":"watch","type":"boolean","char":"w","description":"for watch","allowNo":false},"skipversion":{"name":"skipversion","type":"boolean","char":"s","description":"skip version checking. Used for Deployment","allowNo":false},"swagger":{"name":"swagger","type":"boolean","description":"for swagger generation, this parameter must be given","allowNo":false},"swaggerInclusive":{"name":"swaggerInclusive","type":"boolean","char":"i","description":"to make swagger schema inclusive","allowNo":false},"local_js_dist_path":{"name":"local_js_dist_path","type":"option","char":"l","description":"for monorepos, if local.js is not directly under dist. like: ./dist/api/local.js"}},"args":[]},"sym-create-module":{"id":"sym-create-module","description":"Plateau-Symphony command to create a Symphony Library (Module)","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli sym-create-module abm -d=\"abm module description\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to module","hidden":false,"required":false,"default":""}},"args":[{"name":"name","description":"input module name","required":true}]},"sym-create":{"id":"sym-create","description":"Plateau-Symphony command to create a Symphony App","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli sym-create havale -t=TOKEN","symphony-cli sym-create havale -t=TOKEN -d=\"Havale işlemi\"","symphony-cli sym-create havale -r=REGISTERY","symphony-cli sym-create havale -r=REGISTERY -d=\"Havale işlemi\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to application","hidden":false,"required":false,"default":""},"token":{"name":"token","type":"option","char":"t","description":"npm token for @stechquick","hidden":false,"required":false,"default":""},"registry":{"name":"registry","type":"option","char":"r","description":"your registery address (example: nexus address)","hidden":false,"required":false,"default":""}},"args":[{"name":"name","description":"input application name","required":true}]},"sym-fn-deploy":{"id":"sym-fn-deploy","description":"Plateau-Symphony fn command to deploy the all functions in your app","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli sym-fn-deploy local","symphony-cli sym-fn-deploy play","symphony-cli sym-fn-deploy remote","symphony-cli sym-fn-deploy remote -d MyDockerUrl -u MyDockerUser -p MyDockerPassword -f MyFnApiUrl","symphony-cli sym-fn-deploy remote --d_url MyDockerUrl --d_user MyDockerUser --d_pass MyDockerPassword --f_url MyFnApiUrl","symphony-cli sym-fn-deploy remote --d_url=\"MyDockerUrl\" --d_user=\"MyDockerUser\" --d_pass=\"MyDockerPassword\" --f_url=\"MyFnApiUrl\""],"flags":{"d_url":{"name":"d_url","type":"option","char":"d","description":"docker url to deploy","hidden":false,"required":false,"default":""},"d_user":{"name":"d_user","type":"option","char":"u","description":"docker username to deploy","hidden":false,"required":false,"default":""},"d_pass":{"name":"d_pass","type":"option","char":"p","description":"docker password for this username to deploy","hidden":false,"required":false,"default":""},"f_url":{"name":"f_url","type":"option","char":"f","description":"fn api url to deploy","hidden":false,"required":false,"default":""},"node_env":{"name":"node_env","type":"option","char":"e","description":"symphony environment name","hidden":false,"required":false}},"args":[{"name":"environment","description":"deploy environment: \n [local: your local] \n [play: playground environment] \n [remote: remote server]","required":true,"options":["local","play","remote"],"hidden":false}]},"sym-nano-deploy":{"id":"sym-nano-deploy","description":"Plateau-Symphony nano command to deploy the all functions in your app","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli sym-nano-deploy"],"flags":{"node_env":{"name":"node_env","type":"option","char":"e","description":"symphony environment name","hidden":false,"required":false},"imagename":{"name":"imagename","type":"option","char":"i","description":"image name for docker","hidden":false,"required":true}},"args":[]},"sym-start":{"id":"sym-start","description":"Plateau-Symphony command to start your functions with/without debug","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli sym-start -b -d","$ symphony-cli sym-start -l ./dist/api/local.js"],"flags":{"debug":{"name":"debug","type":"boolean","char":"d","description":"for debug","allowNo":false},"build":{"name":"build","type":"boolean","char":"b","description":"for build","allowNo":false},"http_port":{"name":"http_port","type":"option","char":"p","description":"port to HTTP server"},"https_port":{"name":"https_port","type":"option","char":"h","description":"port to HTTPS server"},"environment":{"name":"environment","type":"option","char":"e","description":"environment variable","hidden":false,"required":false},"hosted_path":{"name":"hosted_path","type":"option","description":"application hosted sub path","required":false},"local_js_dist_path":{"name":"local_js_dist_path","type":"option","char":"l","description":"for monorepos, if local.js is not directly under dist. like: ./dist/api/local.js"}},"args":[]},"sym-test":{"id":"sym-test","description":"Plateau-Symphony command to run your all test functions with coverage","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli sym-test"],"flags":{"func":{"name":"func","type":"option","char":"f","description":"funtion name to test particular file"}},"args":[]}}}
1
+ {"version":"0.6.16","commands":{"mui-create":{"id":"mui-create","description":"MicroUI command to create a new Micro UI project","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli mui-create myUI -d=\"My Micro UI project\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to project","hidden":false,"required":false,"default":""}},"args":[{"name":"name","description":"input microui name","required":true}]},"nc-addcomp":{"id":"nc-addcomp","description":"Command for add a named component to nc project.","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli nc-addcomp my_comp_name"],"flags":{},"args":[{"name":"name","description":"input component name","required":true}]},"nc-build":{"id":"nc-build","description":"Command for build your named component project.","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli nc-build","$ symphony-cli nc-build -w"],"flags":{"watch":{"name":"watch","type":"boolean","char":"w","description":"for watch","allowNo":false}},"args":[]},"nc-create":{"id":"nc-create","description":"Command for create a named component template project.","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli nc-create nc_example -d=\"my named component example\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to named component","hidden":false,"required":false,"default":""}},"args":[{"name":"name","description":"input project name","required":true}]},"qui-build":{"id":"qui-build","description":"Plateau-QUI command to build your Quick ui project","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli qui-build --skipPackages"],"flags":{"watch":{"name":"watch","type":"boolean","char":"w","allowNo":false},"skipPackages":{"name":"skipPackages","type":"boolean","description":"Do not include packages folders in dist","allowNo":false}},"args":[]},"qui-create":{"id":"qui-create","description":"Plateau-UI command to create a new Plateau UI project","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli qui-create myUI -t=TOKEN","symphony-cli qui-create myUI -t=TOKEN -d=\"My Plateau UI project\"","symphony-cli qui-create myUI -r=REGISTERY","symphony-cli qui-create myUI -r=REGISTERY -d=\"My Plateau UI project\"","symphony-cli qui-create myUI -r=REGISTERY -s=SKIPPACKAGES -d=\"My Plateau UI project\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to project","hidden":false,"required":false,"default":""},"token":{"name":"token","type":"option","char":"t","description":"npm token for @stechquick","hidden":false,"required":false,"default":""},"registry":{"name":"registry","type":"option","char":"r","description":"your registery address (example: nexus address)","hidden":false,"required":false,"default":""},"skipPackages":{"name":"skipPackages","type":"option","char":"s","description":"Skip packages and use the shell's WebSDK end settings","hidden":false,"required":false,"default":""}},"args":[{"name":"name","description":"input Plateau UI name","required":true}]},"qui-start":{"id":"qui-start","description":"Plateau-QUI command for start your Quick ui project with/without build","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli qui-start -b"],"flags":{"build":{"name":"build","type":"boolean","char":"b","description":"for build","allowNo":false}},"args":[]},"quick-serve":{"id":"quick-serve","description":"QUICK command for serving your path","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli quick-serve","$ symphony-cli quick-serve -p 3000","$ symphony-cli quick-serve -g","$ symphony-cli quick-serve -r C:/MyPathToServe","$ symphony-cli quick-serve -g -r C:/MyPathToServe"],"flags":{"path":{"name":"path","type":"option","char":"r","description":"Change path to serve"},"httpPort":{"name":"httpPort","type":"option","char":"p","description":"HTTP port to serve"},"global":{"name":"global","type":"boolean","char":"g","description":"Host/visible for everyone.","allowNo":false}},"args":[]},"studio-sync":{"id":"studio-sync","description":"Studio command for serving your path","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli studio-sync"],"flags":{"path":{"name":"path","type":"option","char":"r","description":"Change path to serve"},"httpPort":{"name":"httpPort","type":"option","char":"p","description":"HTTP port to serve"},"global":{"name":"global","type":"boolean","char":"g","description":"Host/visible for everyone.","allowNo":false}},"args":[]},"sym-addfunc":{"id":"sym-addfunc","description":"Plateau-Symphony command to create a new function","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli sym-addfunc havalemenu"],"flags":{},"args":[{"name":"funcname","description":"input function name","required":true,"hidden":false}]},"sym-build":{"id":"sym-build","description":"Plateau-Symphony command to build the app with/without watch","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli sym-build","$ symphony-cli sym-build -w","$ symphony-cli sym-build --swagger","$ symphony-cli sym-build --swagger -i","$ symphony-cli sym-build --swagger -l ./dist/api/local.js"],"flags":{"watch":{"name":"watch","type":"boolean","char":"w","description":"for watch","allowNo":false},"skipversion":{"name":"skipversion","type":"boolean","char":"s","description":"skip version checking. Used for Deployment","allowNo":false},"swagger":{"name":"swagger","type":"boolean","description":"for swagger generation, this parameter must be given","allowNo":false},"swaggerInclusive":{"name":"swaggerInclusive","type":"boolean","char":"i","description":"to make swagger schema inclusive","allowNo":false},"local_js_dist_path":{"name":"local_js_dist_path","type":"option","char":"l","description":"for monorepos, if local.js is not directly under dist. like: ./dist/api/local.js"}},"args":[]},"sym-create-module":{"id":"sym-create-module","description":"Plateau-Symphony command to create a Symphony Library (Module)","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli sym-create-module abm -d=\"abm module description\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to module","hidden":false,"required":false,"default":""}},"args":[{"name":"name","description":"input module name","required":true}]},"sym-create":{"id":"sym-create","description":"Plateau-Symphony command to create a Symphony App","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli sym-create havale -t=TOKEN","symphony-cli sym-create havale -t=TOKEN -d=\"Havale işlemi\"","symphony-cli sym-create havale -r=REGISTERY","symphony-cli sym-create havale -r=REGISTERY -d=\"Havale işlemi\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to application","hidden":false,"required":false,"default":""},"token":{"name":"token","type":"option","char":"t","description":"npm token for @stechquick","hidden":false,"required":false,"default":""},"registry":{"name":"registry","type":"option","char":"r","description":"your registery address (example: nexus address)","hidden":false,"required":false,"default":""}},"args":[{"name":"name","description":"input application name","required":true}]},"sym-fn-deploy":{"id":"sym-fn-deploy","description":"Plateau-Symphony fn command to deploy the all functions in your app","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli sym-fn-deploy local","symphony-cli sym-fn-deploy play","symphony-cli sym-fn-deploy remote","symphony-cli sym-fn-deploy remote -d MyDockerUrl -u MyDockerUser -p MyDockerPassword -f MyFnApiUrl","symphony-cli sym-fn-deploy remote --d_url MyDockerUrl --d_user MyDockerUser --d_pass MyDockerPassword --f_url MyFnApiUrl","symphony-cli sym-fn-deploy remote --d_url=\"MyDockerUrl\" --d_user=\"MyDockerUser\" --d_pass=\"MyDockerPassword\" --f_url=\"MyFnApiUrl\""],"flags":{"d_url":{"name":"d_url","type":"option","char":"d","description":"docker url to deploy","hidden":false,"required":false,"default":""},"d_user":{"name":"d_user","type":"option","char":"u","description":"docker username to deploy","hidden":false,"required":false,"default":""},"d_pass":{"name":"d_pass","type":"option","char":"p","description":"docker password for this username to deploy","hidden":false,"required":false,"default":""},"f_url":{"name":"f_url","type":"option","char":"f","description":"fn api url to deploy","hidden":false,"required":false,"default":""},"node_env":{"name":"node_env","type":"option","char":"e","description":"symphony environment name","hidden":false,"required":false}},"args":[{"name":"environment","description":"deploy environment: \n [local: your local] \n [play: playground environment] \n [remote: remote server]","required":true,"options":["local","play","remote"],"hidden":false}]},"sym-nano-deploy":{"id":"sym-nano-deploy","description":"Plateau-Symphony nano command to deploy the all functions in your app","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["symphony-cli sym-nano-deploy"],"flags":{"node_env":{"name":"node_env","type":"option","char":"e","description":"symphony environment name","hidden":false,"required":false},"imagename":{"name":"imagename","type":"option","char":"i","description":"image name for docker","hidden":false,"required":true}},"args":[]},"sym-start":{"id":"sym-start","description":"Plateau-Symphony command to start your functions with/without debug","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli sym-start -b -d","$ symphony-cli sym-start -l ./dist/api/local.js"],"flags":{"debug":{"name":"debug","type":"boolean","char":"d","description":"for debug","allowNo":false},"build":{"name":"build","type":"boolean","char":"b","description":"for build","allowNo":false},"http_port":{"name":"http_port","type":"option","char":"p","description":"port to HTTP server"},"https_port":{"name":"https_port","type":"option","char":"h","description":"port to HTTPS server"},"environment":{"name":"environment","type":"option","char":"e","description":"environment variable","hidden":false,"required":false},"hosted_path":{"name":"hosted_path","type":"option","description":"application hosted sub path","required":false},"local_js_dist_path":{"name":"local_js_dist_path","type":"option","char":"l","description":"for monorepos, if local.js is not directly under dist. like: ./dist/api/local.js"}},"args":[]},"sym-test":{"id":"sym-test","description":"Plateau-Symphony command to run your all test functions with coverage","pluginName":"@stechquick/symphony-cli","pluginType":"core","aliases":[],"examples":["$ symphony-cli sym-test"],"flags":{"func":{"name":"func","type":"option","char":"f","description":"funtion name to test particular file"}},"args":[]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stechquick/symphony-cli",
3
3
  "description": "quick symphony server cli tools",
4
- "version": "0.6.14",
4
+ "version": "0.6.16",
5
5
  "bin": {
6
6
  "symphony-cli": "./bin/run"
7
7
  },
@@ -4,14 +4,14 @@
4
4
  "description": "{{UIDesc}}",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "build": "symphony-cli qui-build",
7
+ {{UIBuildScript}},
8
8
  "link": "npm link @stechquick/quick_qui",
9
9
  "start": "symphony-cli qui-start",
10
10
  "quick:serve": "symphony-cli quick-serve"
11
11
  },
12
12
  "devDependencies": {
13
- "@stechquick/qui": "3.2.0-1",
14
- "@stechquick/symphony-cli": "0.6.14"
13
+ "@stechquick/qui": "4.0.1-0",
14
+ "@stechquick/symphony-cli": "0.6.16"
15
15
  },
16
16
  "author": "",
17
17
  "license": "ISC",