@stechquick/symphony-cli 0.2.301 → 0.3.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.2.301 linux-x64 node-v16.18.0
22
+ @stechquick/symphony-cli/0.3.1 linux-x64 node-v16.18.0
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.2.301/src/commands/mui-create.ts)_
84
+ _See code: [src/commands/mui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.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.2.301/src/commands/nc-addcomp.ts)_
101
+ _See code: [src/commands/nc-addcomp.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.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.2.301/src/commands/nc-build.ts)_
119
+ _See code: [src/commands/nc-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.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.2.301/src/commands/nc-create.ts)_
139
+ _See code: [src/commands/nc-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.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.2.301/src/commands/qui-build.ts)_
153
+ _See code: [src/commands/qui-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.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.2.301/src/commands/qui-create.ts)_
175
+ _See code: [src/commands/qui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.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.2.301/src/commands/qui-start.ts)_
192
+ _See code: [src/commands/qui-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.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.2.301/src/commands/quick-serve.ts)_
215
+ _See code: [src/commands/quick-serve.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.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.2.301/src/commands/sym-addfunc.ts)_
232
+ _See code: [src/commands/sym-addfunc.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.1/src/commands/sym-addfunc.ts)_
233
233
 
234
234
  ## `symphony-cli sym-build`
235
235
 
@@ -249,7 +249,7 @@ EXAMPLES
249
249
  $ symphony-cli sym-build -w
250
250
  ```
251
251
 
252
- _See code: [src/commands/sym-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.2.301/src/commands/sym-build.ts)_
252
+ _See code: [src/commands/sym-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.1/src/commands/sym-build.ts)_
253
253
 
254
254
  ## `symphony-cli sym-create NAME`
255
255
 
@@ -269,7 +269,7 @@ EXAMPLE
269
269
  symphony-cli sym-create havale -d="Kanallardan yapılan havale işlemi"
270
270
  ```
271
271
 
272
- _See code: [src/commands/sym-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.2.301/src/commands/sym-create.ts)_
272
+ _See code: [src/commands/sym-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.1/src/commands/sym-create.ts)_
273
273
 
274
274
  ## `symphony-cli sym-create-module NAME`
275
275
 
@@ -289,7 +289,7 @@ EXAMPLE
289
289
  symphony-cli sym-create-module abm -d="abm module description"
290
290
  ```
291
291
 
292
- _See code: [src/commands/sym-create-module.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.2.301/src/commands/sym-create-module.ts)_
292
+ _See code: [src/commands/sym-create-module.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.1/src/commands/sym-create-module.ts)_
293
293
 
294
294
  ## `symphony-cli sym-fn-deploy ENVIRONMENT`
295
295
 
@@ -323,7 +323,7 @@ EXAMPLES
323
323
  --f_url="MyFnApiUrl"
324
324
  ```
325
325
 
326
- _See code: [src/commands/sym-fn-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.2.301/src/commands/sym-fn-deploy.ts)_
326
+ _See code: [src/commands/sym-fn-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.1/src/commands/sym-fn-deploy.ts)_
327
327
 
328
328
  ## `symphony-cli sym-nano-deploy`
329
329
 
@@ -341,7 +341,7 @@ EXAMPLE
341
341
  symphony-cli sym-nano-deploy
342
342
  ```
343
343
 
344
- _See code: [src/commands/sym-nano-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.2.301/src/commands/sym-nano-deploy.ts)_
344
+ _See code: [src/commands/sym-nano-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.1/src/commands/sym-nano-deploy.ts)_
345
345
 
346
346
  ## `symphony-cli sym-start`
347
347
 
@@ -363,7 +363,7 @@ EXAMPLE
363
363
  $ symphony-cli sym-start -b -d
364
364
  ```
365
365
 
366
- _See code: [src/commands/sym-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.2.301/src/commands/sym-start.ts)_
366
+ _See code: [src/commands/sym-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.1/src/commands/sym-start.ts)_
367
367
 
368
368
  ## `symphony-cli sym-test`
369
369
 
@@ -380,5 +380,5 @@ EXAMPLE
380
380
  $ symphony-cli sym-test
381
381
  ```
382
382
 
383
- _See code: [src/commands/sym-test.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.2.301/src/commands/sym-test.ts)_
383
+ _See code: [src/commands/sym-test.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.3.1/src/commands/sym-test.ts)_
384
384
  <!-- commandsstop -->
@@ -33,7 +33,20 @@ class SwaggerHelper {
33
33
  "200": {
34
34
  "description": "successful operation",
35
35
  "schema": {
36
- "$ref": `swaggerAPI/${fileName}Schema.json#/definitions/IResponse`
36
+ "allOf": [
37
+ {
38
+ "$ref": `swaggerAPI/${fileName}Schema.json#/definitions/IRequest`,
39
+ },
40
+ {
41
+ "$ref": `swaggerAPI/${fileName}Schema.json#/definitions/IResponse`
42
+ },
43
+ {
44
+ "$ref": `swaggerAPI/${fileName}Schema.json#/definitions/IRequestHeader`
45
+ },
46
+ {
47
+ "$ref": `swaggerAPI/${fileName}Schema.json#/definitions/IResponseHeader`
48
+ }
49
+ ]
37
50
  }
38
51
  }
39
52
  }
@@ -47,7 +60,20 @@ class SwaggerHelper {
47
60
  "200": {
48
61
  "description": "successful operation",
49
62
  "schema": {
50
- "$ref": `swaggerAPI/${fileName}Schema.json#/definitions/IResponse`
63
+ "allOf": [
64
+ {
65
+ "$ref": `swaggerAPI/${fileName}Schema.json#/definitions/IRequest`,
66
+ },
67
+ {
68
+ "$ref": `swaggerAPI/${fileName}Schema.json#/definitions/IResponse`
69
+ },
70
+ {
71
+ "$ref": `swaggerAPI/${fileName}Schema.json#/definitions/IRequestHeader`
72
+ },
73
+ {
74
+ "$ref": `swaggerAPI/${fileName}Schema.json#/definitions/IResponseHeader`
75
+ }
76
+ ]
51
77
  }
52
78
  }
53
79
  }
@@ -96,30 +122,48 @@ class SwaggerHelper {
96
122
  if (!swaggerTemplate) {
97
123
  let functions = fs_1.default.readdirSync(path);
98
124
  SwaggerHelper.existedSwaggerJson = JSON.parse(fs_1.default.readFileSync(SwaggerDict.symSwaggerJsonPath, 'utf8'));
99
- //Case for added function
100
- if (functions.length > Object.keys(SwaggerHelper.existedSwaggerJson.paths).length) {
101
- functions.forEach(func => {
102
- if (!SwaggerHelper.existedSwaggerJson.paths.hasOwnProperty("/" + func)) {
103
- this.appendtoTemplatePaths(func, SwaggerHelper.existedSwaggerJson);
104
- fs_1.default.writeFile(SwaggerDict.symSwaggerJsonPath, JSON.stringify(SwaggerHelper.existedSwaggerJson), (err) => { if (err)
105
- throw err; });
125
+ functions.forEach(func => {
126
+ let currFile = func;
127
+ let notIncluded = true;
128
+ Object.keys(SwaggerHelper.existedSwaggerJson.paths).forEach(key => {
129
+ let flag = false;
130
+ if (key.includes(currFile)) {
131
+ notIncluded = false;
132
+ flag = true;
106
133
  }
134
+ if (flag)
135
+ return;
107
136
  });
108
- //Case for deleted function
109
- }
110
- else {
111
- Object.keys(SwaggerHelper.existedSwaggerJson.paths).forEach(key => {
112
- key = key.replace("/", "");
113
- if (!functions.includes(key)) {
114
- delete SwaggerHelper.existedSwaggerJson.paths["/" + key];
115
- fs_1.default.unlinkSync('./sym-engine/swagger/' + key + 'Schema.json');
116
- fs_1.default.writeFile(SwaggerDict.symSwaggerJsonPath, JSON.stringify(SwaggerHelper.existedSwaggerJson), (err) => { if (err)
117
- throw err; });
137
+ if (notIncluded) {
138
+ this.appendtoTemplatePaths(func, SwaggerHelper.existedSwaggerJson);
139
+ }
140
+ });
141
+ Object.keys(SwaggerHelper.existedSwaggerJson.paths).forEach(key => {
142
+ let currKey = key;
143
+ let notIncluded = true;
144
+ functions.forEach(file => {
145
+ let flag = false;
146
+ if (currKey.includes(file)) {
147
+ notIncluded = false;
148
+ flag = true;
118
149
  }
150
+ if (flag)
151
+ return;
119
152
  });
120
- }
121
- //TODO: If a user decides to delete and add a function at the same time (array length === obj length nested for loops compare one by one :/ )
122
- //TODO: Functionalize function cases
153
+ if (notIncluded) {
154
+ delete SwaggerHelper.existedSwaggerJson.paths[key];
155
+ let schemas = fs_1.default.readdirSync(SwaggerDict.symSwaggerFolderPath);
156
+ schemas.forEach(schema => {
157
+ if (schema !== "swagger.json")
158
+ schema = schema.replace("Schema.json", "");
159
+ if (schema !== "swagger.json" && key.includes(schema)) {
160
+ fs_1.default.unlinkSync(SwaggerDict.symSwaggerFolderPath + "/" + schema + 'Schema.json');
161
+ }
162
+ });
163
+ }
164
+ });
165
+ fs_1.default.writeFile(SwaggerDict.symSwaggerJsonPath, JSON.stringify(SwaggerHelper.existedSwaggerJson), (err) => { if (err)
166
+ throw err; });
123
167
  }
124
168
  else
125
169
  fs_1.default.writeFile(SwaggerDict.symSwaggerJsonPath, JSON.stringify(swaggerTemplate), (err) => { if (err)
@@ -188,7 +188,7 @@ class FolderCopier {
188
188
  });
189
189
  let concattedYamlString = "const yamlObject = "
190
190
  + JSON.stringify(arrangedJSON, null, '\t')
191
- + "\nif (typeof exports === 'object' && typeof module === 'object'){\n \tmodule.exports = yamlObject;\n}else{ \n\twindow['QEditorSettingsProxy'] = yamlObject;\n}";
191
+ + "\nif (typeof exports === 'object' && typeof module === 'object'){\n \tmodule.exports = yamlObject;\n}else{ \n\twindow['plateauUISettings'] = yamlObject;\n}";
192
192
  fs.writeFileSync(resolvedPath.replace(fileName, "settings-proxy.js"), concattedYamlString, { encoding: "utf-8" });
193
193
  }
194
194
  Execute() {
@@ -1 +1 @@
1
- {"version":"0.2.301","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"],"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","allowNo":false}},"args":[]},"sym-create-module":{"id":"sym-create-module","description":"Plateau-Symphony command to create a Symphony App","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.3.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"],"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","allowNo":false}},"args":[]},"sym-create-module":{"id":"sym-create-module","description":"Plateau-Symphony command to create a Symphony App","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":[]}}}
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@stechquick/symphony-cli",
3
3
  "description": "quick symphony server cli tools",
4
- "version": "0.2.301",
5
- "author": "alper-batioglu @alper-batioglu",
4
+ "version": "0.3.1",
6
5
  "bin": {
7
6
  "symphony-cli": "./bin/run"
8
7
  },
@@ -8,10 +8,11 @@ const yamlObject = {
8
8
  "YOUR COZY THEME CSS PATH"
9
9
  ]
10
10
  },
11
- "rootqjson": "/static/qjsons/first",
11
+ "rootqjson": "/static/qjsons/first.qjson",
12
12
  "alertqjson": "/settings/qjson/alert.qjson",
13
13
  "pipelineqjson": "/settings/qjson/pipeline.qjson",
14
14
  "loadingqjson": "/settings/qjson/loading.qjson",
15
+ "globalLocalizationqjson": "/settings/qjson/globalLocalization.qjson",
15
16
  "logHandlerqjson": "/settings/qjson/logHandler.qjson",
16
17
  "RegionalDefinition": [
17
18
  {
@@ -116,5 +117,5 @@ const yamlObject = {
116
117
  if (typeof exports === 'object' && typeof module === 'object'){
117
118
  module.exports = yamlObject;
118
119
  }else{
119
- window['QEditorSettingsProxy'] = yamlObject;
120
+ window['plateauUISettings'] = yamlObject;
120
121
  }
@@ -8,11 +8,12 @@ csspath:
8
8
  - "/static/css/myDarkTheme.css"
9
9
  cozy:
10
10
  - "YOUR COZY THEME CSS PATH"
11
- rootqjson: "/static/qjsons/samplesFirstPage"
11
+ rootqjson: "/static/qjsons/samplesFirstPage.qjson"
12
12
  rootLangCode : "tr-TR"
13
13
  alertqjson: "/settings/qjson/alert.qjson"
14
14
  pipelineqjson: "/settings/qjson/pipeline.qjson"
15
15
  loadingqjson: "/settings/qjson/loading.qjson"
16
+ globalLocalizationqjson: "/settings/qjson/globalLocalization.qjson"
16
17
  # Qjsons in QUI -> /static/qjsons/first.qjson
17
18
  # Qjsons in MicroUI -> /microui/<<microUI name>>/qjson/first.js
18
19
  # Qjsons in Symphony -> /<<Symphony service name>>/qjsonfunc?qjsonpath=first.qjson
@@ -4447,6 +4447,6 @@ nextIcon = 'mdi-plus'}`
4447
4447
  if (typeof exports === 'object' && typeof module === 'object'){
4448
4448
  module.exports = componentOptions;
4449
4449
  }else{
4450
- window["QEditorComponentOptions"] = componentOptions;
4450
+ window["plateauUIComponentOptions"] = componentOptions;
4451
4451
  }
4452
4452
  //#region JS Section