@stechquick/symphony-cli 0.6.14 → 0.6.15

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.15 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.15/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.15/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.15/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.15/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.15/src/commands/qui-build.ts)_
155
159
 
156
160
  ## `symphony-cli qui-create NAME`
157
161
 
@@ -176,7 +180,7 @@ EXAMPLES
176
180
  symphony-cli qui-create myUI -r=REGISTERY -d="My Plateau UI project"
177
181
  ```
178
182
 
179
- _See code: [src/commands/qui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/qui-create.ts)_
183
+ _See code: [src/commands/qui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/qui-create.ts)_
180
184
 
181
185
  ## `symphony-cli qui-start`
182
186
 
@@ -193,7 +197,7 @@ EXAMPLE
193
197
  $ symphony-cli qui-start -b
194
198
  ```
195
199
 
196
- _See code: [src/commands/qui-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/qui-start.ts)_
200
+ _See code: [src/commands/qui-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/qui-start.ts)_
197
201
 
198
202
  ## `symphony-cli quick-serve`
199
203
 
@@ -216,7 +220,7 @@ EXAMPLES
216
220
  $ symphony-cli quick-serve -g -r C:/MyPathToServe
217
221
  ```
218
222
 
219
- _See code: [src/commands/quick-serve.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/quick-serve.ts)_
223
+ _See code: [src/commands/quick-serve.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/quick-serve.ts)_
220
224
 
221
225
  ## `symphony-cli studio-sync`
222
226
 
@@ -235,7 +239,7 @@ EXAMPLE
235
239
  $ symphony-cli studio-sync
236
240
  ```
237
241
 
238
- _See code: [src/commands/studio-sync.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/studio-sync.ts)_
242
+ _See code: [src/commands/studio-sync.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/studio-sync.ts)_
239
243
 
240
244
  ## `symphony-cli sym-addfunc FUNCNAME`
241
245
 
@@ -252,7 +256,7 @@ EXAMPLE
252
256
  symphony-cli sym-addfunc havalemenu
253
257
  ```
254
258
 
255
- _See code: [src/commands/sym-addfunc.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-addfunc.ts)_
259
+ _See code: [src/commands/sym-addfunc.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/sym-addfunc.ts)_
256
260
 
257
261
  ## `symphony-cli sym-build`
258
262
 
@@ -282,7 +286,7 @@ EXAMPLES
282
286
  $ symphony-cli sym-build --swagger -l ./dist/api/local.js
283
287
  ```
284
288
 
285
- _See code: [src/commands/sym-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-build.ts)_
289
+ _See code: [src/commands/sym-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/sym-build.ts)_
286
290
 
287
291
  ## `symphony-cli sym-create NAME`
288
292
 
@@ -307,7 +311,7 @@ EXAMPLES
307
311
  symphony-cli sym-create havale -r=REGISTERY -d="Havale işlemi"
308
312
  ```
309
313
 
310
- _See code: [src/commands/sym-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-create.ts)_
314
+ _See code: [src/commands/sym-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/sym-create.ts)_
311
315
 
312
316
  ## `symphony-cli sym-create-module NAME`
313
317
 
@@ -327,7 +331,7 @@ EXAMPLE
327
331
  symphony-cli sym-create-module abm -d="abm module description"
328
332
  ```
329
333
 
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)_
334
+ _See code: [src/commands/sym-create-module.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/sym-create-module.ts)_
331
335
 
332
336
  ## `symphony-cli sym-fn-deploy ENVIRONMENT`
333
337
 
@@ -361,7 +365,7 @@ EXAMPLES
361
365
  --f_url="MyFnApiUrl"
362
366
  ```
363
367
 
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)_
368
+ _See code: [src/commands/sym-fn-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/sym-fn-deploy.ts)_
365
369
 
366
370
  ## `symphony-cli sym-nano-deploy`
367
371
 
@@ -379,7 +383,7 @@ EXAMPLE
379
383
  symphony-cli sym-nano-deploy
380
384
  ```
381
385
 
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)_
386
+ _See code: [src/commands/sym-nano-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/sym-nano-deploy.ts)_
383
387
 
384
388
  ## `symphony-cli sym-start`
385
389
 
@@ -407,7 +411,7 @@ EXAMPLES
407
411
  $ symphony-cli sym-start -l ./dist/api/local.js
408
412
  ```
409
413
 
410
- _See code: [src/commands/sym-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-start.ts)_
414
+ _See code: [src/commands/sym-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/sym-start.ts)_
411
415
 
412
416
  ## `symphony-cli sym-test`
413
417
 
@@ -424,5 +428,5 @@ EXAMPLE
424
428
  $ symphony-cli sym-test
425
429
  ```
426
430
 
427
- _See code: [src/commands/sym-test.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.14/src/commands/sym-test.ts)_
431
+ _See code: [src/commands/sym-test.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.6.15/src/commands/sym-test.ts)_
428
432
  <!-- 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
+ };
@@ -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.15","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\""],"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":[]}}}
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.15",
5
5
  "bin": {
6
6
  "symphony-cli": "./bin/run"
7
7
  },