@stechquick/symphony-cli 0.4.11 → 0.4.13

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.4.11 linux-x64 node-v16.19.0
22
+ @stechquick/symphony-cli/0.4.13 linux-x64 node-v16.19.1
23
23
  $ symphony-cli --help [COMMAND]
24
24
  USAGE
25
25
  $ symphony-cli COMMAND
@@ -37,6 +37,7 @@ USAGE
37
37
  * [`symphony-cli qui-create NAME`](#symphony-cli-qui-create-name)
38
38
  * [`symphony-cli qui-start`](#symphony-cli-qui-start)
39
39
  * [`symphony-cli quick-serve`](#symphony-cli-quick-serve)
40
+ * [`symphony-cli studio-sync`](#symphony-cli-studio-sync)
40
41
  * [`symphony-cli sym-addfunc FUNCNAME`](#symphony-cli-sym-addfunc-funcname)
41
42
  * [`symphony-cli sym-build`](#symphony-cli-sym-build)
42
43
  * [`symphony-cli sym-create NAME`](#symphony-cli-sym-create-name)
@@ -81,7 +82,7 @@ EXAMPLE
81
82
  symphony-cli mui-create myUI -d="My Micro UI project"
82
83
  ```
83
84
 
84
- _See code: [src/commands/mui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/mui-create.ts)_
85
+ _See code: [src/commands/mui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/mui-create.ts)_
85
86
 
86
87
  ## `symphony-cli nc-addcomp NAME`
87
88
 
@@ -98,7 +99,7 @@ EXAMPLE
98
99
  symphony-cli nc-addcomp my_comp_name
99
100
  ```
100
101
 
101
- _See code: [src/commands/nc-addcomp.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/nc-addcomp.ts)_
102
+ _See code: [src/commands/nc-addcomp.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/nc-addcomp.ts)_
102
103
 
103
104
  ## `symphony-cli nc-build`
104
105
 
@@ -116,7 +117,7 @@ EXAMPLES
116
117
  $ symphony-cli nc-build -w
117
118
  ```
118
119
 
119
- _See code: [src/commands/nc-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/nc-build.ts)_
120
+ _See code: [src/commands/nc-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/nc-build.ts)_
120
121
 
121
122
  ## `symphony-cli nc-create NAME`
122
123
 
@@ -136,7 +137,7 @@ EXAMPLE
136
137
  symphony-cli nc-create nc_example -d="my named component example"
137
138
  ```
138
139
 
139
- _See code: [src/commands/nc-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/nc-create.ts)_
140
+ _See code: [src/commands/nc-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/nc-create.ts)_
140
141
 
141
142
  ## `symphony-cli qui-build`
142
143
 
@@ -150,7 +151,7 @@ EXAMPLE
150
151
  $ symphony-cli qui-build -w
151
152
  ```
152
153
 
153
- _See code: [src/commands/qui-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/qui-build.ts)_
154
+ _See code: [src/commands/qui-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/qui-build.ts)_
154
155
 
155
156
  ## `symphony-cli qui-create NAME`
156
157
 
@@ -172,7 +173,7 @@ EXAMPLES
172
173
  symphony-cli qui-create myUI -t=TOKEN -d="My Quick UI project"
173
174
  ```
174
175
 
175
- _See code: [src/commands/qui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/qui-create.ts)_
176
+ _See code: [src/commands/qui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/qui-create.ts)_
176
177
 
177
178
  ## `symphony-cli qui-start`
178
179
 
@@ -189,7 +190,7 @@ EXAMPLE
189
190
  $ symphony-cli qui-start -b
190
191
  ```
191
192
 
192
- _See code: [src/commands/qui-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/qui-start.ts)_
193
+ _See code: [src/commands/qui-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/qui-start.ts)_
193
194
 
194
195
  ## `symphony-cli quick-serve`
195
196
 
@@ -212,7 +213,26 @@ EXAMPLES
212
213
  $ symphony-cli quick-serve -g -r C:/MyPathToServe
213
214
  ```
214
215
 
215
- _See code: [src/commands/quick-serve.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/quick-serve.ts)_
216
+ _See code: [src/commands/quick-serve.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/quick-serve.ts)_
217
+
218
+ ## `symphony-cli studio-sync`
219
+
220
+ Studio command for serving your path
221
+
222
+ ```
223
+ USAGE
224
+ $ symphony-cli studio-sync
225
+
226
+ OPTIONS
227
+ -g, --global Host/visible for everyone.
228
+ -p, --httpPort=httpPort HTTP port to serve
229
+ -r, --path=path Change path to serve
230
+
231
+ EXAMPLE
232
+ $ symphony-cli studio-sync
233
+ ```
234
+
235
+ _See code: [src/commands/studio-sync.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/studio-sync.ts)_
216
236
 
217
237
  ## `symphony-cli sym-addfunc FUNCNAME`
218
238
 
@@ -229,7 +249,7 @@ EXAMPLE
229
249
  symphony-cli sym-addfunc havalemenu
230
250
  ```
231
251
 
232
- _See code: [src/commands/sym-addfunc.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/sym-addfunc.ts)_
252
+ _See code: [src/commands/sym-addfunc.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/sym-addfunc.ts)_
233
253
 
234
254
  ## `symphony-cli sym-build`
235
255
 
@@ -252,7 +272,7 @@ EXAMPLES
252
272
  $ symphony-cli sym-build --swagger -i
253
273
  ```
254
274
 
255
- _See code: [src/commands/sym-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/sym-build.ts)_
275
+ _See code: [src/commands/sym-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/sym-build.ts)_
256
276
 
257
277
  ## `symphony-cli sym-create NAME`
258
278
 
@@ -273,7 +293,7 @@ EXAMPLE
273
293
  symphony-cli sym-create havale -d="Kanallardan yapılan havale işlemi"
274
294
  ```
275
295
 
276
- _See code: [src/commands/sym-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/sym-create.ts)_
296
+ _See code: [src/commands/sym-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/sym-create.ts)_
277
297
 
278
298
  ## `symphony-cli sym-create-module NAME`
279
299
 
@@ -293,7 +313,7 @@ EXAMPLE
293
313
  symphony-cli sym-create-module abm -d="abm module description"
294
314
  ```
295
315
 
296
- _See code: [src/commands/sym-create-module.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/sym-create-module.ts)_
316
+ _See code: [src/commands/sym-create-module.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/sym-create-module.ts)_
297
317
 
298
318
  ## `symphony-cli sym-fn-deploy ENVIRONMENT`
299
319
 
@@ -327,7 +347,7 @@ EXAMPLES
327
347
  --f_url="MyFnApiUrl"
328
348
  ```
329
349
 
330
- _See code: [src/commands/sym-fn-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/sym-fn-deploy.ts)_
350
+ _See code: [src/commands/sym-fn-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/sym-fn-deploy.ts)_
331
351
 
332
352
  ## `symphony-cli sym-nano-deploy`
333
353
 
@@ -345,7 +365,7 @@ EXAMPLE
345
365
  symphony-cli sym-nano-deploy
346
366
  ```
347
367
 
348
- _See code: [src/commands/sym-nano-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/sym-nano-deploy.ts)_
368
+ _See code: [src/commands/sym-nano-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/sym-nano-deploy.ts)_
349
369
 
350
370
  ## `symphony-cli sym-start`
351
371
 
@@ -367,7 +387,7 @@ EXAMPLE
367
387
  $ symphony-cli sym-start -b -d
368
388
  ```
369
389
 
370
- _See code: [src/commands/sym-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/sym-start.ts)_
390
+ _See code: [src/commands/sym-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/sym-start.ts)_
371
391
 
372
392
  ## `symphony-cli sym-test`
373
393
 
@@ -384,5 +404,5 @@ EXAMPLE
384
404
  $ symphony-cli sym-test
385
405
  ```
386
406
 
387
- _See code: [src/commands/sym-test.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.11/src/commands/sym-test.ts)_
407
+ _See code: [src/commands/sym-test.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.13/src/commands/sym-test.ts)_
388
408
  <!-- commandsstop -->
@@ -42,7 +42,7 @@ class Serve extends command_1.Command {
42
42
  async startServer(httpPort) {
43
43
  log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Server starting..."), timeFormat: "datetime" });
44
44
  Serve.server.Start({
45
- port: httpPort || 3000,
45
+ port: httpPort || 3007,
46
46
  successCb: () => {
47
47
  log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", `Http listening on: ${Serve.server.GetServerUrl()}`) });
48
48
  }
@@ -0,0 +1,17 @@
1
+ import { Command, flags } from '@oclif/command';
2
+ export default class Serve extends Command {
3
+ private static server;
4
+ private rootPath;
5
+ static description: string;
6
+ static examples: string[];
7
+ static flags: {
8
+ path: flags.IOptionFlag<string | undefined>;
9
+ httpPort: import("@oclif/parser/lib/flags").IOptionFlag<number | undefined>;
10
+ global: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
11
+ };
12
+ run(): Promise<void>;
13
+ private createServer;
14
+ private addServicesToServer;
15
+ private attachPlugins;
16
+ private startServer;
17
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const command_1 = require("@oclif/command");
5
+ const path = tslib_1.__importStar(require("path"));
6
+ const symphony_nanoserver_1 = require("@stechquick/symphony-nanoserver");
7
+ const log_1 = require("@stechquick/symphony-common/lib/log");
8
+ const styling_1 = require("@stechquick/symphony-common/lib/styling");
9
+ const socketServerHelper_1 = require("../helpers/socketServer/socketServerHelper");
10
+ class Serve extends command_1.Command {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.rootPath = "";
14
+ }
15
+ async run() {
16
+ var _a;
17
+ const { flags } = this.parse(Serve);
18
+ this.rootPath = (_a = flags.path) !== null && _a !== void 0 ? _a : path.resolve(".");
19
+ this.createServer();
20
+ this.addServicesToServer();
21
+ await this.startServer(flags.httpPort);
22
+ this.attachPlugins(); // attach plugin waits for server start
23
+ }
24
+ createServer() {
25
+ Serve.server = new symphony_nanoserver_1.NanoServer({
26
+ rootDiskPath: this.rootPath,
27
+ bindHost: global ? "0.0.0.0" : "127.0.0.1",
28
+ portSeekOffset: 1000,
29
+ manageCors: {}
30
+ });
31
+ }
32
+ addServicesToServer() {
33
+ Serve.server.AddService({
34
+ PathStart: "/ping",
35
+ Methods: new Set(["GET"]),
36
+ Execute: async (options) => options.response.writeResponse(`Hi from symphony-cli studio server.<br> Root path: ${this.rootPath}`)
37
+ });
38
+ }
39
+ attachPlugins() {
40
+ new socketServerHelper_1.SocketServerHelper(Serve.server).Start();
41
+ }
42
+ async startServer(httpPort) {
43
+ log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Server starting..."), timeFormat: "datetime" });
44
+ Serve.server.Start({
45
+ port: httpPort || 3008,
46
+ successCb: () => {
47
+ log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", `Http listening on: ${Serve.server.GetServerUrl()}`) });
48
+ }
49
+ });
50
+ // Serve.server.StartHttps({
51
+ // port: 3030,
52
+ // privateKey: fs.readFileSync('key.pem', 'utf8'),
53
+ // certificate: fs.readFileSync('cert.pem', 'utf8'),
54
+ // successCb: () => {
55
+ // //Logger.log({ message: Chalk.create("green.bold", `Https listening on: ${Serve.server.GetServerUrl()}`) });
56
+ // }
57
+ // });
58
+ }
59
+ }
60
+ exports.default = Serve;
61
+ Serve.description = 'Studio command for serving your path';
62
+ Serve.examples = [
63
+ "$ symphony-cli studio-sync"
64
+ ];
65
+ Serve.flags = {
66
+ path: command_1.flags.string({ char: 'r', description: 'Change path to serve' }),
67
+ httpPort: command_1.flags.integer({ char: 'p', description: 'HTTP port to serve' }),
68
+ global: command_1.flags.boolean({ char: 'g', description: 'Host/visible for everyone.' })
69
+ };
@@ -9,6 +9,8 @@ export declare class SocketServerHelper {
9
9
  private onSocketError;
10
10
  private listFilesExecution;
11
11
  private saveFilesExecution;
12
+ private createFolderExecution;
13
+ private deleteFolderExecution;
12
14
  private deleteFilesExecution;
13
15
  private getFilesExecution;
14
16
  }
@@ -19,6 +19,8 @@ class SocketServerHelper {
19
19
  this.messageTypeLookup = {
20
20
  "list_files": this.listFilesExecution.bind(this),
21
21
  "save_files": this.saveFilesExecution.bind(this),
22
+ "create_folder": this.createFolderExecution.bind(this),
23
+ "delete_folder": this.deleteFolderExecution.bind(this),
22
24
  "delete_files": this.deleteFilesExecution.bind(this),
23
25
  "get_files": this.getFilesExecution.bind(this),
24
26
  "file_change": this.getFilesExecution.bind(this),
@@ -82,6 +84,44 @@ class SocketServerHelper {
82
84
  return { type: "save_files_resp", result: false };
83
85
  }
84
86
  }
87
+ async createFolderExecution(msg) {
88
+ try {
89
+ if (!fs.existsSync(msg.folderName)) {
90
+ fs.mkdirSync(msg.folderName);
91
+ }
92
+ return { type: "create_folder_resp" };
93
+ }
94
+ catch (error) {
95
+ log_1.Logger.log({ message: styling_1.Chalk.create("red.bold", `Creating folder error!`), error, level: log_1.LogLevel.error });
96
+ return { type: "create_folder_resp" };
97
+ }
98
+ }
99
+ async deleteFolderExecution(msg) {
100
+ try {
101
+ var rmdir = function (dir) {
102
+ var list = fs.readdirSync(dir);
103
+ for (var i = 0; i < list.length; i++) {
104
+ var filename = path.join(dir, list[i]);
105
+ var stat = fs.statSync(filename);
106
+ if (filename == "." || filename == "..") {
107
+ }
108
+ else if (stat.isDirectory()) {
109
+ rmdir(filename);
110
+ }
111
+ else {
112
+ fs.unlinkSync(filename);
113
+ }
114
+ }
115
+ fs.rmdirSync(dir);
116
+ };
117
+ rmdir(msg.folderName);
118
+ return { type: "delete_folder_resp" };
119
+ }
120
+ catch (error) {
121
+ log_1.Logger.log({ message: styling_1.Chalk.create("red.bold", `Deleting folder error!`), error, level: log_1.LogLevel.error });
122
+ return { type: "delete_folder_resp" };
123
+ }
124
+ }
85
125
  async deleteFilesExecution(msg) {
86
126
  try {
87
127
  msg.files.forEach(file => {
@@ -1 +1 @@
1
- {"version":"0.4.11","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":[]}}}
1
+ {"version":"0.4.13","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":[]},"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"],"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.4.11",
4
+ "version": "0.4.13",
5
5
  "bin": {
6
6
  "symphony-cli": "./bin/run"
7
7
  },
@@ -22,7 +22,7 @@
22
22
  "@oclif/command": "^1.6.1",
23
23
  "@oclif/config": "^1.15.1",
24
24
  "@oclif/plugin-help": "^3.1.0",
25
- "@stechquick/symphony-common": "^0.1.16",
25
+ "@stechquick/symphony-common": "^0.1.18",
26
26
  "@stechquick/symphony-nanoserver": "^0.2.8",
27
27
  "@stechquick/symphony-nanoserver-wsplugin": "^0.2.4",
28
28
  "@stechquick/algae": "^1.0.170",
@@ -1,13 +1,13 @@
1
- csspath:
2
- default:
3
- - "/static/css/main.css"
4
- myTheme:
5
- - "/static/css/myHappyTheme1.css"
6
- - "/static/css/myHappyTheme2.css"
7
- darkTheme:
8
- - "/static/css/myDarkTheme.css"
9
- cozy:
10
- - "YOUR COZY THEME CSS PATH"
1
+ cssPath:
2
+ default:
3
+ - /static/css/main.css
4
+ compact:
5
+ - /static/css/myHappyTheme1.css
6
+ - /static/css/myHappyTheme2.css
7
+ dark:
8
+ - /static/css/myDarkTheme.css
9
+ dark-compact:
10
+ - /static/css/myDarkTheme.css
11
11
  rootqjson: "/static/qjsons/samplesFirstPage.qjson"
12
12
  rootLangCode : "tr-TR"
13
13
  alertqjson: "/settings/qjson/alert.qjson"