@stechquick/symphony-cli 0.3.9 → 0.4.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 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.3.9 linux-x64 node-v16.18.1
22
+ @stechquick/symphony-cli/0.4.1 linux-x64 node-v16.18.1
23
23
  $ symphony-cli --help [COMMAND]
24
24
  USAGE
25
25
  $ symphony-cli COMMAND
@@ -81,7 +81,7 @@ EXAMPLE
81
81
  symphony-cli mui-create myUI -d="My Micro UI project"
82
82
  ```
83
83
 
84
- _See code: [src/commands/mui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/mui-create.ts)_
84
+ _See code: [src/commands/mui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/mui-create.ts)_
85
85
 
86
86
  ## `symphony-cli nc-addcomp NAME`
87
87
 
@@ -98,7 +98,7 @@ EXAMPLE
98
98
  symphony-cli nc-addcomp my_comp_name
99
99
  ```
100
100
 
101
- _See code: [src/commands/nc-addcomp.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/nc-addcomp.ts)_
101
+ _See code: [src/commands/nc-addcomp.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/nc-addcomp.ts)_
102
102
 
103
103
  ## `symphony-cli nc-build`
104
104
 
@@ -116,7 +116,7 @@ EXAMPLES
116
116
  $ symphony-cli nc-build -w
117
117
  ```
118
118
 
119
- _See code: [src/commands/nc-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/nc-build.ts)_
119
+ _See code: [src/commands/nc-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/nc-build.ts)_
120
120
 
121
121
  ## `symphony-cli nc-create NAME`
122
122
 
@@ -136,7 +136,7 @@ EXAMPLE
136
136
  symphony-cli nc-create nc_example -d="my named component example"
137
137
  ```
138
138
 
139
- _See code: [src/commands/nc-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/nc-create.ts)_
139
+ _See code: [src/commands/nc-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/nc-create.ts)_
140
140
 
141
141
  ## `symphony-cli qui-build`
142
142
 
@@ -150,7 +150,7 @@ EXAMPLE
150
150
  $ symphony-cli qui-build -w
151
151
  ```
152
152
 
153
- _See code: [src/commands/qui-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/qui-build.ts)_
153
+ _See code: [src/commands/qui-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/qui-build.ts)_
154
154
 
155
155
  ## `symphony-cli qui-create NAME`
156
156
 
@@ -172,7 +172,7 @@ EXAMPLES
172
172
  symphony-cli qui-create myUI -t=TOKEN -d="My Quick UI project"
173
173
  ```
174
174
 
175
- _See code: [src/commands/qui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/qui-create.ts)_
175
+ _See code: [src/commands/qui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/qui-create.ts)_
176
176
 
177
177
  ## `symphony-cli qui-start`
178
178
 
@@ -189,7 +189,7 @@ EXAMPLE
189
189
  $ symphony-cli qui-start -b
190
190
  ```
191
191
 
192
- _See code: [src/commands/qui-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/qui-start.ts)_
192
+ _See code: [src/commands/qui-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/qui-start.ts)_
193
193
 
194
194
  ## `symphony-cli quick-serve`
195
195
 
@@ -212,7 +212,7 @@ EXAMPLES
212
212
  $ symphony-cli quick-serve -g -r C:/MyPathToServe
213
213
  ```
214
214
 
215
- _See code: [src/commands/quick-serve.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/quick-serve.ts)_
215
+ _See code: [src/commands/quick-serve.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/quick-serve.ts)_
216
216
 
217
217
  ## `symphony-cli sym-addfunc FUNCNAME`
218
218
 
@@ -229,7 +229,7 @@ EXAMPLE
229
229
  symphony-cli sym-addfunc havalemenu
230
230
  ```
231
231
 
232
- _See code: [src/commands/sym-addfunc.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/sym-addfunc.ts)_
232
+ _See code: [src/commands/sym-addfunc.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/sym-addfunc.ts)_
233
233
 
234
234
  ## `symphony-cli sym-build`
235
235
 
@@ -252,7 +252,7 @@ EXAMPLES
252
252
  $ symphony-cli sym-build --swagger -i
253
253
  ```
254
254
 
255
- _See code: [src/commands/sym-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/sym-build.ts)_
255
+ _See code: [src/commands/sym-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/sym-build.ts)_
256
256
 
257
257
  ## `symphony-cli sym-create NAME`
258
258
 
@@ -266,13 +266,14 @@ ARGUMENTS
266
266
  NAME input application name
267
267
 
268
268
  OPTIONS
269
- -d, --desc=desc description to application
269
+ -d, --desc=desc description to application
270
+ -t, --token=token (required) npm token for @stechquick
270
271
 
271
272
  EXAMPLE
272
273
  symphony-cli sym-create havale -d="Kanallardan yapılan havale işlemi"
273
274
  ```
274
275
 
275
- _See code: [src/commands/sym-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/sym-create.ts)_
276
+ _See code: [src/commands/sym-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/sym-create.ts)_
276
277
 
277
278
  ## `symphony-cli sym-create-module NAME`
278
279
 
@@ -292,7 +293,7 @@ EXAMPLE
292
293
  symphony-cli sym-create-module abm -d="abm module description"
293
294
  ```
294
295
 
295
- _See code: [src/commands/sym-create-module.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/sym-create-module.ts)_
296
+ _See code: [src/commands/sym-create-module.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/sym-create-module.ts)_
296
297
 
297
298
  ## `symphony-cli sym-fn-deploy ENVIRONMENT`
298
299
 
@@ -326,7 +327,7 @@ EXAMPLES
326
327
  --f_url="MyFnApiUrl"
327
328
  ```
328
329
 
329
- _See code: [src/commands/sym-fn-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/sym-fn-deploy.ts)_
330
+ _See code: [src/commands/sym-fn-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/sym-fn-deploy.ts)_
330
331
 
331
332
  ## `symphony-cli sym-nano-deploy`
332
333
 
@@ -344,7 +345,7 @@ EXAMPLE
344
345
  symphony-cli sym-nano-deploy
345
346
  ```
346
347
 
347
- _See code: [src/commands/sym-nano-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/sym-nano-deploy.ts)_
348
+ _See code: [src/commands/sym-nano-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/sym-nano-deploy.ts)_
348
349
 
349
350
  ## `symphony-cli sym-start`
350
351
 
@@ -366,7 +367,7 @@ EXAMPLE
366
367
  $ symphony-cli sym-start -b -d
367
368
  ```
368
369
 
369
- _See code: [src/commands/sym-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/sym-start.ts)_
370
+ _See code: [src/commands/sym-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/sym-start.ts)_
370
371
 
371
372
  ## `symphony-cli sym-test`
372
373
 
@@ -383,5 +384,5 @@ EXAMPLE
383
384
  $ symphony-cli sym-test
384
385
  ```
385
386
 
386
- _See code: [src/commands/sym-test.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.9/src/commands/sym-test.ts)_
387
+ _See code: [src/commands/sym-test.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.1/src/commands/sym-test.ts)_
387
388
  <!-- commandsstop -->
@@ -59,6 +59,6 @@ Build.flags = {
59
59
  swaggerInclusive: command_1.flags.boolean({ char: 'i', description: 'to make swagger schema inclusive' }),
60
60
  };
61
61
  Build.versionCheckSetting = {
62
- packageNames: ["@stechsym\/\symphony", "@stechquick\/\symphony-cli"],
62
+ packageNames: ["@stechquick\/\symphony", "@stechquick\/\symphony-cli"],
63
63
  packageJsonFilePath: "/templates/init/{{AppName}}/{{remove}}package.json"
64
64
  };
@@ -9,6 +9,7 @@ export default class CreateApp extends Command {
9
9
  }[];
10
10
  static flags: {
11
11
  desc: flags.IOptionFlag<string>;
12
+ token: flags.IOptionFlag<string>;
12
13
  };
13
14
  run(): Promise<void>;
14
15
  }
@@ -10,7 +10,7 @@ class CreateApp extends command_1.Command {
10
10
  const { flags } = this.parse(CreateApp);
11
11
  const { args } = this.parse(CreateApp);
12
12
  log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Application " + args["name"] + " creating. Please wait...") });
13
- await new initHelper_1.InitHelper().AddApp(args["name"], `${flags.desc}`);
13
+ await new initHelper_1.InitHelper().AddApp(args["name"], `${flags.desc}`, flags.token);
14
14
  npmHelper_1.NpmHelper.install({ folderName: args["name"] });
15
15
  log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Application " + args["name"] + " created successfully.") });
16
16
  }
@@ -36,4 +36,11 @@ CreateApp.flags = {
36
36
  default: '',
37
37
  required: false,
38
38
  }),
39
+ token: command_1.flags.string({
40
+ char: "t",
41
+ description: "npm token for @stechquick",
42
+ hidden: false,
43
+ multiple: false,
44
+ required: true,
45
+ }),
39
46
  };
@@ -10,6 +10,7 @@ export declare class InitHelper {
10
10
  private moduleNameRegExp;
11
11
  private removeRegExp;
12
12
  private appDescRegExp;
13
+ private npmrcTokenRegExp;
13
14
  private moduleDescRegExp;
14
15
  private addFuncSearchPath;
15
16
  private initSearchPath;
@@ -17,6 +18,6 @@ export declare class InitHelper {
17
18
  constructor();
18
19
  static AssertInFolder(): boolean;
19
20
  AddFunc(funcName: string): Promise<void>;
20
- AddApp(appName: string, appDesc: string): Promise<void>;
21
+ AddApp(appName: string, appDesc: string, npmToken: string): Promise<void>;
21
22
  AddModule(moduleName: string, moduleDesc: string): Promise<void>;
22
23
  }
@@ -22,6 +22,7 @@ class InitHelper {
22
22
  this.moduleNameRegExp = /{{ModuleName}}/g;
23
23
  this.removeRegExp = /{{remove}}/g;
24
24
  this.appDescRegExp = /{{AppDesc}}/g;
25
+ this.npmrcTokenRegExp = /{{NpmrcStechQuickToken}}/g;
25
26
  this.moduleDescRegExp = /{{ModuleDesc}}/g;
26
27
  this.addFuncSearchPath = "/templates/addfunc";
27
28
  this.initSearchPath = "/templates/init";
@@ -51,9 +52,10 @@ class InitHelper {
51
52
  fileHelper_1.FileHelper.exportFiles({ sourcePath: addFuncTemplatePath, targetPath: "./", replaceMap: this.replaceMap });
52
53
  log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Function " + funcName + " added successfully."), timeFormat: "datetime" });
53
54
  }
54
- async AddApp(appName, appDesc) {
55
+ async AddApp(appName, appDesc, npmToken) {
55
56
  this.replaceMap.set(this.appNameRegExp, appName);
56
57
  this.replaceMap.set(this.appDescRegExp, appDesc);
58
+ this.replaceMap.set(this.npmrcTokenRegExp, npmToken);
57
59
  const existsSubPath = fs.existsSync(this.subPath + appName);
58
60
  if (existsSubPath) {
59
61
  const answer = await cli_ux_1.default.confirm("App: " + appName + " already exists. If you have any, you will lose your pending changes. Would you like to overwrite it?");
@@ -6,6 +6,7 @@ const fs = tslib_1.__importStar(require("fs"));
6
6
  const path = tslib_1.__importStar(require("path"));
7
7
  const compare_versions_1 = tslib_1.__importDefault(require("compare-versions"));
8
8
  const npmHelper_1 = require("./npmHelper");
9
+ const log_1 = require("@stechquick/symphony-common/lib/log");
9
10
  class PackageHelper {
10
11
  static getBackwardPackages(settings) {
11
12
  const list = [];
@@ -13,6 +14,7 @@ class PackageHelper {
13
14
  const cliDevDeps = this.getPackageJson(cliFilePath).devDependencies;
14
15
  const appDevDeps = npmHelper_1.NpmHelper.getCurrentPackageVersions();
15
16
  settings.packageNames.forEach(name => {
17
+ log_1.Logger.log({ message: `checking package ${name}...`, level: log_1.LogLevel.log });
16
18
  const lastVersion = this.fixChars(cliDevDeps[name]);
17
19
  const usedVersion = appDevDeps[name];
18
20
  if (compare_versions_1.default.compare(lastVersion, usedVersion, ">")) {
@@ -1 +1 @@
1
- {"version":"0.3.9","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-QUI command to create a new Quick 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 Quick 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":true}},"args":[{"name":"name","description":"input quick 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":[]},"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"],"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}},"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 -d=\"Kanallardan yapılan havale işlemi\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to application","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"],"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}},"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.4.1","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-QUI command to create a new Quick 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 Quick 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":true}},"args":[{"name":"name","description":"input quick 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":[]},"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"],"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}},"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 -d=\"Kanallardan yapılan 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":true}},"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"],"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}},"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.3.9",
4
+ "version": "0.4.1",
5
5
  "bin": {
6
6
  "symphony-cli": "./bin/run"
7
7
  },
@@ -1,6 +1,6 @@
1
1
  import { ModuleObject, IModuleObject } from "./implementation/object";
2
2
  import { ISymphonyObject } from "@stechquick/symphony-common/lib/symphony";
3
- import { symphony, ISymphonyModule } from "@stechsym/symphony";
3
+ import { symphony, ISymphonyModule } from "@stechquick/symphony";
4
4
 
5
5
  export class Module implements ISymphonyModule {
6
6
  ObjectCreation(){
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@stechquick/symphony-common": "^0.1.2",
19
- "@stechsym/symphony": "^0.0.13",
19
+ "@stechquick/symphony": "^0.0.14",
20
20
  "source-map-loader": "^0.2.4",
21
21
  "ts-loader": "^5.3.3",
22
22
  "typescript": "^3.7.3",
@@ -1,6 +1,6 @@
1
- import { ISymphonyObject, symphony } from "@stechsym/symphony";
2
- import { TReqDefault, TReqHeaderDefault } from "@stechsym/symphony/dist/src/infrastructure/managers/symphonyObject/symphonyRequest";
3
- import { TRespDefault, TRespHeaderDefault } from "@stechsym/symphony/dist/src/infrastructure/managers/symphonyObject/symphonyResponse";
1
+ import { ISymphonyObject, symphony } from "@stechquick/symphony";
2
+ import { TReqDefault, TReqHeaderDefault } from "@stechquick/symphony/dist/src/infrastructure/managers/symphonyObject/symphonyRequest";
3
+ import { TRespDefault, TRespHeaderDefault } from "@stechquick/symphony/dist/src/infrastructure/managers/symphonyObject/symphonyResponse";
4
4
 
5
5
  symphony.registerFunc({
6
6
  funcName: "{{FuncName}}",
@@ -1,4 +1,4 @@
1
- import { symphony, IRestResponse } from "@stechsym/symphony";
1
+ import { symphony, IRestResponse } from "@stechquick/symphony";
2
2
 
3
3
  let func = symphony.retrieveFunction(() => require("../functions/{{FuncName}}/{{FuncName}}"));
4
4
 
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@stechquick/qui": "^1.2.71",
14
- "@stechquick/symphony-cli": "^0.3.9"
14
+ "@stechquick/symphony-cli": "^0.4.1"
15
15
  },
16
16
  "author": "",
17
17
  "license": "ISC",
@@ -1,3 +1,3 @@
1
- import { symphony } from "@stechsym/symphony";
1
+ import { symphony } from "@stechquick/symphony";
2
2
 
3
3
  symphony.serveQJsons({ requireFunc: require });
@@ -1,6 +1,6 @@
1
- import { ISymphonyObject, symphony } from "@stechsym/symphony";
2
- import { TReqDefault, TReqHeaderDefault } from "@stechsym/symphony/dist/src/infrastructure/managers/symphonyObject/symphonyRequest";
3
- import { TRespDefault, TRespHeaderDefault } from "@stechsym/symphony/dist/src/infrastructure/managers/symphonyObject/symphonyResponse";
1
+ import { ISymphonyObject, symphony } from "@stechquick/symphony";
2
+ import { TReqDefault, TReqHeaderDefault } from "@stechquick/symphony/dist/src/infrastructure/managers/symphonyObject/symphonyRequest";
3
+ import { TRespDefault, TRespHeaderDefault } from "@stechquick/symphony/dist/src/infrastructure/managers/symphonyObject/symphonyResponse";
4
4
 
5
5
  symphony.registerFunc({
6
6
  funcName: "samplefunc",
@@ -1,4 +1,4 @@
1
- import { symphony } from "@stechsym/symphony";
1
+ import { symphony } from "@stechquick/symphony";
2
2
 
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- import { ISymPipeline, ISoapRequest } from "@stechsym/symphony";
1
+ import { ISymPipeline, ISoapRequest } from "@stechquick/symphony";
2
2
 
3
3
  export default <ISymPipeline>{
4
4
  // preFunc: async sym => {
@@ -1,4 +1,4 @@
1
- import { symphony, IRestResponse, ISoapResponse } from "@stechsym/symphony";
1
+ import { symphony, IRestResponse, ISoapResponse } from "@stechquick/symphony";
2
2
 
3
3
  let func = symphony.retrieveFunction(() => require("../functions/samplefunc/samplefunc"));
4
4
 
@@ -1 +1,2 @@
1
- @stechquick:registry=https://registry.npmjs.org/
1
+ @stechquick:registry=https://registry.npmjs.org/
2
+ //registry.npmjs.org/:_authToken={{NpmrcStechQuickToken}}
@@ -14,11 +14,11 @@
14
14
  "devDependencies": {
15
15
  "@types/node": "^12.12.39",
16
16
  "@types/jest": "^26.0.4",
17
- "@stechsym/symphony": "^0.0.13",
18
- "@stechquick/symphony-cli": "^0.3.9",
17
+ "@stechquick/symphony": "^0.0.14",
18
+ "@stechquick/symphony-cli": "^0.4.1",
19
19
  "jest": "^26.1.0",
20
20
  "ts-jest": "^26.1.1",
21
- "typescript": "^3.7.3"
21
+ "typescript": "^4.9.4"
22
22
  },
23
23
  "files": [
24
24
  "functions",
@@ -31,9 +31,6 @@
31
31
  ],
32
32
  "author": "",
33
33
  "license": "ISC",
34
- "dependencies": {
35
- "@fnproject/fdk": ">=0.0.18"
36
- },
37
34
  "directories": {
38
35
  "test": "test"
39
36
  }
@@ -10,7 +10,7 @@
10
10
  "css-loader": "^6.4.0",
11
11
  "namedcomp-build-helper": "^0.2.1",
12
12
  "source-map-loader": "^3.0.0",
13
- "@stechquick/symphony-cli": "^0.3.9",
13
+ "@stechquick/symphony-cli": "^0.4.1",
14
14
  "ts-loader": "^9.2.6",
15
15
  "typescript": "4.4.3",
16
16
  "vue": "^2.6.11",