@stechquick/symphony-cli 0.4.1 → 0.4.3

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.1 linux-x64 node-v16.18.1
22
+ @stechquick/symphony-cli/0.4.3 linux-x64 node-v16.19.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.4.1/src/commands/mui-create.ts)_
84
+ _See code: [src/commands/mui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/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.4.1/src/commands/nc-addcomp.ts)_
101
+ _See code: [src/commands/nc-addcomp.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/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.4.1/src/commands/nc-build.ts)_
119
+ _See code: [src/commands/nc-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/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.4.1/src/commands/nc-create.ts)_
139
+ _See code: [src/commands/nc-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/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.4.1/src/commands/qui-build.ts)_
153
+ _See code: [src/commands/qui-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/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.4.1/src/commands/qui-create.ts)_
175
+ _See code: [src/commands/qui-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/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.4.1/src/commands/qui-start.ts)_
192
+ _See code: [src/commands/qui-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/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.4.1/src/commands/quick-serve.ts)_
215
+ _See code: [src/commands/quick-serve.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/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.4.1/src/commands/sym-addfunc.ts)_
232
+ _See code: [src/commands/sym-addfunc.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/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.4.1/src/commands/sym-build.ts)_
255
+ _See code: [src/commands/sym-build.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/src/commands/sym-build.ts)_
256
256
 
257
257
  ## `symphony-cli sym-create NAME`
258
258
 
@@ -273,7 +273,7 @@ EXAMPLE
273
273
  symphony-cli sym-create havale -d="Kanallardan yapılan havale işlemi"
274
274
  ```
275
275
 
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
+ _See code: [src/commands/sym-create.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/src/commands/sym-create.ts)_
277
277
 
278
278
  ## `symphony-cli sym-create-module NAME`
279
279
 
@@ -293,7 +293,7 @@ EXAMPLE
293
293
  symphony-cli sym-create-module abm -d="abm module description"
294
294
  ```
295
295
 
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
+ _See code: [src/commands/sym-create-module.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/src/commands/sym-create-module.ts)_
297
297
 
298
298
  ## `symphony-cli sym-fn-deploy ENVIRONMENT`
299
299
 
@@ -327,7 +327,7 @@ EXAMPLES
327
327
  --f_url="MyFnApiUrl"
328
328
  ```
329
329
 
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
+ _See code: [src/commands/sym-fn-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/src/commands/sym-fn-deploy.ts)_
331
331
 
332
332
  ## `symphony-cli sym-nano-deploy`
333
333
 
@@ -345,7 +345,7 @@ EXAMPLE
345
345
  symphony-cli sym-nano-deploy
346
346
  ```
347
347
 
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
+ _See code: [src/commands/sym-nano-deploy.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/src/commands/sym-nano-deploy.ts)_
349
349
 
350
350
  ## `symphony-cli sym-start`
351
351
 
@@ -367,7 +367,7 @@ EXAMPLE
367
367
  $ symphony-cli sym-start -b -d
368
368
  ```
369
369
 
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
+ _See code: [src/commands/sym-start.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/src/commands/sym-start.ts)_
371
371
 
372
372
  ## `symphony-cli sym-test`
373
373
 
@@ -384,5 +384,5 @@ EXAMPLE
384
384
  $ symphony-cli sym-test
385
385
  ```
386
386
 
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
+ _See code: [src/commands/sym-test.ts](https://github.com/alper-batioglu/symphony-cli/blob/v0.4.3/src/commands/sym-test.ts)_
388
388
  <!-- commandsstop -->
@@ -1,16 +1,12 @@
1
1
  export declare class FolderCopier {
2
- ForEachItemInFolder(folder: string, iterator: (folder: string, item: string, relativeFolder: string, isDirectory: boolean) => void, willIterateFolder?: (folder: string, item: string, relativeFolder: string) => boolean): void;
3
- CopyFolder(source: string, destination: string, except?: Array<string>): void;
4
- CopyFile(source: string, destination: string, options?: {
5
- copyIfExists?: boolean;
6
- }): void;
7
- DeleteFolder(target: string): void;
2
+ settingsContent: any;
3
+ localProxyContent: any;
4
+ private getReplaceFiles;
8
5
  private qJsonMediumDecider;
9
6
  private ParseQJsonContent;
7
+ private minifyQjson;
10
8
  private deleteSourceMapping;
11
- private ReplaceFile;
12
- private substringBetween;
13
- private getReplaceFiles;
14
- private convertYamlstoJS;
9
+ private loadSettingsQjsons;
10
+ private createSettingsFiles;
15
11
  Execute(): void;
16
12
  }
@@ -7,102 +7,36 @@ const path = tslib_1.__importStar(require("path"));
7
7
  const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
8
8
  const log_1 = require("@stechquick/symphony-common/lib/log");
9
9
  const styling_1 = require("@stechquick/symphony-common/lib/styling");
10
- ;
10
+ const fileHelper_1 = require("@stechquick/algae/lib/helpers/fileHelper");
11
11
  class FolderCopier {
12
- ForEachItemInFolder(folder, iterator, willIterateFolder) {
13
- function forEachItemInFoderInternal(folder, curRelative) {
14
- fs.readdirSync(folder).forEach(item => {
15
- const curItemPath = path.join(folder, item);
16
- const isDirectory = fs.statSync(curItemPath).isDirectory();
17
- if (isDirectory) {
18
- if (!willIterateFolder || (willIterateFolder === null || willIterateFolder === void 0 ? void 0 : willIterateFolder(folder, item, curRelative))) {
19
- forEachItemInFoderInternal(curItemPath, curRelative + "/" + item);
20
- iterator(folder, item, curRelative, true);
12
+ getReplaceFiles(paths) {
13
+ return {
14
+ "componentList": {
15
+ fileName: (paths === null || paths === void 0 ? void 0 : paths.componentListPath) ? ("./dist/client" + (paths === null || paths === void 0 ? void 0 : paths.componentListPath)) : ("./dist/client/static/js/componentList.ts"),
16
+ fileReplacer: (fileData) => {
17
+ const retVal = { fileName: fileData.fileName.replace(".ts", ".js"), fileBody: "" };
18
+ let fileBody = fileHelper_1.SubstringBetween(fileData.fileBody, "//#region JS Section");
19
+ if (!fileBody) {
20
+ return retVal;
21
21
  }
22
+ retVal.fileBody = fileBody.replace(": ComponentOptions =", " =");
23
+ retVal.fileBody = retVal.fileBody.replace('window["QEditorComponentOptions"]', 'window["plateauUIComponentOptions"]'); // for old versions of qui
24
+ return retVal;
22
25
  }
23
- else {
24
- iterator(folder, item, curRelative, false);
25
- }
26
- });
27
- }
28
- forEachItemInFoderInternal(folder, "");
29
- }
30
- ;
31
- CopyFolder(source, destination, except) {
32
- const exceptDict = (except === null || except === void 0 ? void 0 : except.length) ? except.reduce((prev, current) => { prev[current] = true; return prev; }, {}) : undefined;
33
- this.ForEachItemInFolder(source, (folder, item, relativeFolder, isDirectory) => {
34
- if (isDirectory) {
35
- return;
36
- }
37
- if (exceptDict) {
38
- const relativeItemPath = path.join(relativeFolder, item);
39
- if (exceptDict[relativeItemPath]) {
40
- console.log("Skip: " + relativeItemPath);
41
- return;
42
- }
43
- }
44
- const srcPath = path.resolve(path.join(folder, item));
45
- const destPath = path.resolve(path.join(destination, relativeFolder));
46
- if (!fs.existsSync(destPath)) {
47
- fs.mkdirSync(destPath, { recursive: true });
48
- }
49
- //console.log(`Dir: ${srcPath}-->${destPath}`);
50
- if (path.extname(item) === '.qjson') {
51
- let loadQjson = fs.readFileSync(srcPath, { encoding: 'utf8' });
52
- let jsonString = this.qJsonMediumDecider(loadQjson);
53
- let settingsPath = './settings/settings.yaml';
54
- if (fs.existsSync(settingsPath)) {
55
- let buildYml = fs.readFileSync(settingsPath, 'utf8');
56
- let loadYaml = js_yaml_1.default.load(buildYml);
57
- if (!(loadYaml && loadYaml.environment && loadYaml.environment.keepSourceMappingURL)) {
58
- jsonString = this.deleteSourceMapping(jsonString);
26
+ },
27
+ "containerServices": {
28
+ fileName: (paths === null || paths === void 0 ? void 0 : paths.containerServicesPath) ? ("./dist/client" + (paths === null || paths === void 0 ? void 0 : paths.containerServicesPath)) : ("./dist/client/static/js/containerServices.ts"),
29
+ fileReplacer: (fileData) => {
30
+ const retVal = { fileName: fileData.fileName.replace(".ts", ".js"), fileBody: "" };
31
+ let fileBody = fileHelper_1.SubstringBetween(fileData.fileBody, "//#region JS Section");
32
+ if (!fileBody) {
33
+ return retVal;
59
34
  }
35
+ retVal.fileBody = fileBody;
36
+ return retVal;
60
37
  }
61
- let qjson = this.ParseQJsonContent(jsonString);
62
- qjson === null || qjson === void 0 ? true : delete qjson.pJson;
63
- qjson === null || qjson === void 0 ? true : delete qjson.lrids;
64
- fs.writeFileSync(path.join(destPath, item), "let pjson = " + JSON.stringify(qjson) + ";\nexport default pjson");
65
- }
66
- else {
67
- fs.copyFileSync(srcPath, path.join(destPath, item));
68
- }
69
- }, (folder, item, relativeFolder) => {
70
- const relativeItemPath = path.join(relativeFolder, item);
71
- if (exceptDict === null || exceptDict === void 0 ? void 0 : exceptDict[relativeItemPath]) {
72
- console.log("Skip: " + relativeItemPath);
73
- return false;
74
38
  }
75
- return true;
76
- });
77
- }
78
- CopyFile(source, destination, options = {}) {
79
- const pathParsed = path.parse(source);
80
- const srcFile = path.resolve(source);
81
- if (options.copyIfExists && !fs.existsSync(srcFile)) {
82
- log_1.Logger.log({ message: "Skipping copy: " + srcFile });
83
- return;
84
- }
85
- const destPath = path.resolve(destination);
86
- if (!fs.existsSync(destPath)) {
87
- fs.mkdirSync(destPath, { recursive: true });
88
- }
89
- const destFile = path.join(destPath, pathParsed.base);
90
- console.log(`File: ${srcFile}-->${destFile}`);
91
- fs.copyFileSync(srcFile, destFile);
92
- }
93
- DeleteFolder(target) {
94
- if (!fs.existsSync(target)) {
95
- return;
96
- }
97
- this.ForEachItemInFolder(target, (folder, item, relativeFolder, isDirectory) => {
98
- const curPath = path.join(folder, item);
99
- if (isDirectory) {
100
- fs.rmdirSync(curPath);
101
- }
102
- else {
103
- fs.unlinkSync(path.join(folder, item));
104
- }
105
- });
39
+ };
106
40
  }
107
41
  qJsonMediumDecider(qjsonData) {
108
42
  if (typeof qjsonData == "string") {
@@ -127,6 +61,21 @@ class FolderCopier {
127
61
  }
128
62
  return JSON.parse(json);
129
63
  }
64
+ minifyQjson(srcPath) {
65
+ srcPath = srcPath.endsWith(".qjson") ? srcPath : srcPath + ".qjson";
66
+ let jsonBody = fileHelper_1.ReadFile(srcPath);
67
+ if (!jsonBody.success) {
68
+ return jsonBody;
69
+ }
70
+ let jsonString = this.qJsonMediumDecider(jsonBody.value);
71
+ if (!this.settingsContent.keepSourceMappingURL) {
72
+ jsonString = this.deleteSourceMapping(jsonString);
73
+ }
74
+ let qjson = this.ParseQJsonContent(jsonString);
75
+ qjson === null || qjson === void 0 ? true : delete qjson.pJson;
76
+ qjson === null || qjson === void 0 ? true : delete qjson.lrids;
77
+ return { value: ("let pjson = " + JSON.stringify(qjson) + ";\nexport default pjson"), success: true };
78
+ }
130
79
  deleteSourceMapping(jsonString) {
131
80
  let searchValue = '//# sourceMappingURL=data:application/json;base64';
132
81
  let regex = new RegExp(`(${searchValue}+)`, 'gi');
@@ -138,81 +87,101 @@ class FolderCopier {
138
87
  });
139
88
  return jsonString;
140
89
  }
141
- ReplaceFile(source, skipIfNone, cb) {
142
- const srcFile = path.resolve(source);
143
- if (!fs.existsSync(srcFile)) {
144
- console.log(`${srcFile} does not exists skip: ${skipIfNone}`);
145
- if (skipIfNone) {
146
- return;
147
- }
148
- }
149
- const fileBody = fs.readFileSync(srcFile, { encoding: "utf-8" });
150
- const fileName = path.parse(srcFile).base;
151
- const newFileData = cb({ fileBody, fileName });
152
- fs.unlinkSync(srcFile);
153
- fs.writeFileSync(srcFile.replace(fileName, newFileData.fileName), newFileData.fileBody, { encoding: "utf-8" });
90
+ loadSettingsQjsons() {
91
+ let pipeline = this.minifyQjson(path.resolve('.' + this.settingsContent.pipelineqjson));
92
+ let alert = this.minifyQjson(path.resolve('.' + this.settingsContent.alertqjson));
93
+ let loading = this.minifyQjson(path.resolve('.' + this.settingsContent.loadingqjson));
94
+ let globalLocalization = this.minifyQjson(path.resolve('.' + this.settingsContent.globalLocalizationqjson));
95
+ let rootqjson = this.minifyQjson(path.resolve('.' + this.settingsContent.rootqjson));
96
+ return {
97
+ "pipeline": { value: pipeline.value, format: "qjson", type: (pipeline.success ? "js" : "path") },
98
+ "alert": { value: alert.value, format: "qjson", type: (alert.success ? "js" : "path") },
99
+ "loading": { value: loading.value, format: "qjson", type: (loading.success ? "js" : "path") },
100
+ "globalLocalization": { value: globalLocalization.value, format: "qjson", type: (globalLocalization.success ? "js" : "path") },
101
+ "rootqjson": { value: rootqjson.value, format: "qjson", type: (rootqjson.success ? "js" : "path") },
102
+ };
154
103
  }
155
- substringBetween(sourceString, start, end) {
156
- let startIndex = sourceString.indexOf(start);
157
- if (startIndex < 0) {
158
- return null;
104
+ createSettingsFiles(replaceFiles) {
105
+ var _a, _b, _c;
106
+ let componentListBody = (_a = replaceFiles.componentList.fileData) === null || _a === void 0 ? void 0 : _a.fileBody;
107
+ let componentListContent;
108
+ if (componentListBody === undefined) {
109
+ componentListContent = { value: replaceFiles.componentList.fileName, type: "path" };
159
110
  }
160
- startIndex = startIndex + start.length;
161
- let endIndex = sourceString.length;
162
- if (end) {
163
- endIndex = sourceString.indexOf(end, startIndex);
164
- if (endIndex < 0) {
165
- return null;
166
- }
111
+ else {
112
+ var module = {};
113
+ var exports = {};
114
+ (new Function("module", "exports", componentListBody)(module, exports));
115
+ componentListContent = { value: module === null || module === void 0 ? void 0 : module.exports, type: "object" };
167
116
  }
168
- return sourceString.substring(startIndex, endIndex);
169
- }
170
- getReplaceFiles() {
171
- return [{
172
- fileName: "./dist/client/static/js/componentList.ts",
173
- fileReplacer: (fileData) => {
174
- const retVal = { fileName: fileData.fileName.replace(".ts", ".js"), fileBody: "" };
175
- let fileBody = this.substringBetween(fileData.fileBody, "//#region JS Section");
176
- if (!fileBody) {
177
- return retVal;
178
- }
179
- retVal.fileBody = fileBody.replace(": ComponentOptions =", " =");
180
- retVal.fileBody = retVal.fileBody.replace('window["QEditorComponentOptions"]', 'window["plateauUIComponentOptions"]'); // for old versions of qui
181
- return retVal;
182
- }
183
- }];
184
- }
185
- convertYamlstoJS() {
186
- const yamlPaths = ["settings", "localProxy"];
187
- let arrangedJSON = Object.create({ settings: {}, proxy: {} });
188
- let resolvedPath = "";
189
- let fileName = "";
190
- yamlPaths.forEach(item => {
191
- let tempPath = `./settings/${item}.yaml`;
192
- resolvedPath = path.resolve(tempPath);
193
- fileName = path.parse(resolvedPath).base;
194
- let fileContent = fs.readFileSync(tempPath, "utf8");
195
- arrangedJSON[item] = js_yaml_1.default.safeLoad(fileContent);
196
- });
197
- let concattedYamlString = "const yamlObject = "
198
- + JSON.stringify(arrangedJSON, null, '\t')
199
- + "\nif (typeof exports === 'object' && typeof module === 'object'){\n \tmodule.exports = yamlObject;\n}else{ \n\twindow['plateauUISettings'] = yamlObject;\n}";
200
- fs.writeFileSync(resolvedPath.replace(fileName, "settings-proxy.js"), concattedYamlString, { encoding: "utf-8" });
117
+ let containerServicesBody = (_b = replaceFiles.containerServices.fileData) === null || _b === void 0 ? void 0 : _b.fileBody;
118
+ let containerServicesContent;
119
+ if (containerServicesBody === undefined) {
120
+ containerServicesContent = { value: replaceFiles.containerServices.fileName, type: "path" };
121
+ }
122
+ else {
123
+ containerServicesContent = { value: containerServicesBody, type: "js" };
124
+ }
125
+ var settingsQjsons = this.loadSettingsQjsons();
126
+ var settingsWeb = {
127
+ ["settings"]: { value: this.settingsContent, type: "object" },
128
+ ["localProxy"]: { value: this.localProxyContent, type: "object" },
129
+ ["componentList"]: componentListContent.value ? componentListContent : undefined,
130
+ ["containerServices"]: containerServicesContent.value ? containerServicesContent : undefined,
131
+ ["pipeline"]: settingsQjsons.pipeline.value ? settingsQjsons.pipeline : undefined,
132
+ ["alert"]: settingsQjsons.alert.value ? settingsQjsons.alert : undefined,
133
+ ["loading"]: settingsQjsons.loading.value ? settingsQjsons.loading : undefined,
134
+ ["globalLocalization"]: settingsQjsons.globalLocalization.value ? settingsQjsons.globalLocalization : undefined,
135
+ ["rootqjson"]: settingsQjsons.rootqjson.value ? settingsQjsons.rootqjson : undefined
136
+ };
137
+ let concattedYamlStringWeb = "var settings = "
138
+ + JSON.stringify(settingsWeb, null, '\t')
139
+ + "\nif (typeof exports === 'object' && typeof module === 'object'){\n \tmodule.exports = settings;\n}else{ \n\twindow['plateauUISettings'] = settings;\n}";
140
+ fs.writeFileSync(path.resolve("./settings/settings_web.js"), concattedYamlStringWeb);
141
+ var settingsIAM = {
142
+ ["iam"]: (_c = this.settingsContent.backendInf) === null || _c === void 0 ? void 0 : _c.iam
143
+ };
144
+ let concattedYamlStringIAM = "const plateauUIIAMOptions = "
145
+ + JSON.stringify(settingsIAM, null, '\t')
146
+ + "\nif (typeof exports === 'object' && typeof module === 'object'){\n \tmodule.exports = plateauUIIAMOptions;\n}else{ \n\twindow['plateauUIIAMOptions'] = plateauUIIAMOptions;\n}";
147
+ fs.writeFileSync(path.resolve("./settings/settings_iam.js"), concattedYamlStringIAM);
148
+ var settingsMobile = {
149
+ ["settings"]: { value: this.settingsContent, type: "object" },
150
+ ["componentList"]: componentListContent.value ? componentListContent : undefined,
151
+ ["pipeline"]: settingsQjsons.pipeline.value ? settingsQjsons.pipeline : undefined,
152
+ ["alert"]: settingsQjsons.alert.value ? settingsQjsons.alert : undefined,
153
+ ["loading"]: settingsQjsons.loading.value ? settingsQjsons.loading : undefined,
154
+ ["globalLocalization"]: settingsQjsons.globalLocalization.value ? settingsQjsons.globalLocalization : undefined,
155
+ ["rootqjson"]: settingsQjsons.rootqjson.value ? settingsQjsons.rootqjson : undefined
156
+ };
157
+ let concattedYamlStringMobile = JSON.stringify(settingsMobile, null, '\t');
158
+ fs.writeFileSync(path.resolve("./settings/settings_mobile.json"), concattedYamlStringMobile);
201
159
  }
202
160
  Execute() {
203
- this.DeleteFolder("./dist");
161
+ fileHelper_1.DeleteFolder("./dist"); //deletes dist folder of project
204
162
  log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Folders copying..."), timeFormat: "datetime" });
205
- const newPath = "./node_modules/@stechquick/qui/dist", oldPath = "./node_modules/quick_qui/dist";
206
- let copySource = fs.existsSync(newPath) ? newPath : oldPath;
207
- this.CopyFolder(copySource, "./dist", ["build"]); // build'klasörünü hariç tut
208
- this.convertYamlstoJS();
209
- this.CopyFolder("./settings", "./dist/client/settings", ["localProxy.yaml", "server"]);
210
- this.CopyFolder("./settings", "./dist/server/settings");
211
- //this.CopyFolder("./certificates", "./dist/server/certificates");
212
- this.CopyFolder("./static", "./dist/client/static");
213
- this.CopyFile("./worker/a9e657cbf4abb977edda.worker.js", "./dist/client", { copyIfExists: true });
163
+ fileHelper_1.CopyFolder("./node_modules/@stechquick/qui/dist", "./dist", ["build"]); // copies /node_modules/@stechquick/qui/dist folder to dist
164
+ let settingsContent = fileHelper_1.ReadFile(path.resolve("./settings/settings.yaml")); // reads settings.yaml
165
+ let localProxyContent = fileHelper_1.ReadFile(path.resolve("./settings/localProxy.yaml")); // reads localProxy.yaml
166
+ if (!settingsContent.success || !localProxyContent.success) { // if either of them not exist or not accessible throws an error
167
+ throw new Error("localProxy.yaml or settings.yaml cannot read");
168
+ }
169
+ this.settingsContent = js_yaml_1.default.load(settingsContent.value); // converts yaml file content to js
170
+ this.localProxyContent = js_yaml_1.default.load(localProxyContent.value); // converts yaml file content to js
171
+ fileHelper_1.CopyFolder("./static", "./dist/client/static", undefined, { distinctFileExtensions: [".qjson"], distinctFilesCb: this.minifyQjson, context: this }); // copies static folder. if encountered any file with ".qjson" extension, calls minifyQjson
172
+ let replaceFiles = this.getReplaceFiles({
173
+ "componentListPath": this.settingsContent.componentListPath,
174
+ "containerServicesPath": this.settingsContent.containerServicesPath
175
+ });
176
+ Object.keys(replaceFiles).forEach(key => {
177
+ let newFileData = fileHelper_1.ReplaceFile(replaceFiles[key].fileName, true, replaceFiles[key].fileReplacer);
178
+ replaceFiles[key].fileData = newFileData;
179
+ });
180
+ this.createSettingsFiles(replaceFiles); // generates settings files.
181
+ fileHelper_1.CopyFolder("./settings", "./dist/client/settings", ["localProxy.yaml", "settings.yaml", "server"]); // copies settings folder to dist/client/settings
182
+ fileHelper_1.CopyFolder("./settings", "./dist/server/settings", ["localProxy.yaml"]); // copies settings folder to dist/server/settings
183
+ fileHelper_1.CopyFile("./worker/a9e657cbf4abb977edda.worker.js", "./dist/client", { copyIfExists: true }); // copies worker.js file to dist/client
214
184
  log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Folders copied successfully."), timeFormat: "datetime" });
215
- this.getReplaceFiles().forEach(item => this.ReplaceFile(item.fileName, true, item.fileReplacer));
216
185
  }
217
186
  }
218
187
  exports.FolderCopier = FolderCopier;
@@ -7,7 +7,7 @@ const path = tslib_1.__importStar(require("path"));
7
7
  const yaml = tslib_1.__importStar(require("js-yaml"));
8
8
  const fileHelper_1 = require("@stechquick/symphony-common/lib/helpers/fileHelper");
9
9
  const paramReplacer_1 = require("./paramReplacer");
10
- const quiBuilder_1 = require("../../helpers/ui/quiBuilder");
10
+ const fileHelper_2 = require("@stechquick/algae/lib/helpers/fileHelper");
11
11
  class PredeployCommon {
12
12
  constructor() {
13
13
  this.config = {};
@@ -70,7 +70,7 @@ class PredeployCommon {
70
70
  }
71
71
  else {
72
72
  if (fileHelper_1.FileHelper.isDirectory(copyItem.path)) {
73
- new quiBuilder_1.FolderCopier().CopyFolder(copyItem.path, targetItem);
73
+ fileHelper_2.CopyFolder(copyItem.path, targetItem);
74
74
  }
75
75
  else {
76
76
  fs.copyFileSync(copyItem.path, targetItem);
@@ -1 +1 @@
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":[]}}}
1
+ {"version":"0.4.3","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.4.1",
4
+ "version": "0.4.3",
5
5
  "bin": {
6
6
  "symphony-cli": "./bin/run"
7
7
  },
@@ -25,6 +25,7 @@
25
25
  "@stechquick/symphony-common": "^0.1.16",
26
26
  "@stechquick/symphony-nanoserver": "^0.2.8",
27
27
  "@stechquick/symphony-nanoserver-wsplugin": "^0.2.4",
28
+ "@stechquick/algae": "^1.0.147",
28
29
  "@types/js-yaml": "^3.12.5",
29
30
  "cli-ux": "^5.4.6",
30
31
  "compare-versions": "^3.6.0",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@stechquick/symphony-common": "^0.1.2",
19
- "@stechquick/symphony": "^0.0.14",
19
+ "@stechquick/symphony": "^0.0.15",
20
20
  "source-map-loader": "^0.2.4",
21
21
  "ts-loader": "^5.3.3",
22
22
  "typescript": "^3.7.3",
@@ -6,7 +6,7 @@ symphony.registerFunc({
6
6
  funcName: "{{FuncName}}",
7
7
  keepBag: false,
8
8
  requireFunc: require,
9
- func: (sym: ISymphonyObject<IRequest, IRequestHeader, IResponse, IResponseHeader>) => {{FuncName}}Func(sym),
9
+ func: {{FuncName}}Func,
10
10
  });
11
11
 
12
12
  export interface IRequest extends TReqDefault { };
@@ -14,6 +14,8 @@ alertqjson: "/settings/qjson/alert.qjson"
14
14
  pipelineqjson: "/settings/qjson/pipeline.qjson"
15
15
  loadingqjson: "/settings/qjson/loading.qjson"
16
16
  globalLocalizationqjson: "/settings/qjson/globalLocalization.qjson"
17
+ containerServicesPath: "/static/js/containerServices.ts"
18
+ componentListPath: "/static/js/componentList.ts"
17
19
  # Qjsons in QUI -> /static/qjsons/first.qjson
18
20
  # Qjsons in MicroUI -> /microui/<<microUI name>>/qjson/first.js
19
21
  # Qjsons in Symphony -> /<<Symphony service name>>/qjsonfunc?qjsonpath=first.qjson
@@ -0,0 +1,14 @@
1
+ declare var exports, module;
2
+ //#region JS Section
3
+ var containerServices = {
4
+ extensions: {
5
+ }
6
+ }
7
+
8
+
9
+ if (typeof exports === 'object' && typeof module === 'object') {
10
+ module.exports = containerServices;
11
+ } else {
12
+ window["plateauUIContainerServices"] = containerServices;
13
+ }
14
+ //#region JS Section
@@ -10,8 +10,8 @@
10
10
  "quick:serve": "symphony-cli quick-serve"
11
11
  },
12
12
  "devDependencies": {
13
- "@stechquick/qui": "^1.2.71",
14
- "@stechquick/symphony-cli": "^0.4.1"
13
+ "@stechquick/qui": "^1.2.113",
14
+ "@stechquick/symphony-cli": "^0.4.3"
15
15
  },
16
16
  "author": "",
17
17
  "license": "ISC",
@@ -6,7 +6,7 @@ symphony.registerFunc({
6
6
  funcName: "samplefunc",
7
7
  keepBag: false,
8
8
  requireFunc: require,
9
- func: (sym: ISymphonyObject<IRequest, IRequestHeader, IResponse, IResponseHeader>) => samplefunc(sym),
9
+ func: samplefunc,
10
10
  });
11
11
 
12
12
  export interface IRequest extends TReqDefault { };
@@ -14,8 +14,8 @@
14
14
  "devDependencies": {
15
15
  "@types/node": "^12.12.39",
16
16
  "@types/jest": "^26.0.4",
17
- "@stechquick/symphony": "^0.0.14",
18
- "@stechquick/symphony-cli": "^0.4.1",
17
+ "@stechquick/symphony": "^0.0.15",
18
+ "@stechquick/symphony-cli": "^0.4.3",
19
19
  "jest": "^26.1.0",
20
20
  "ts-jest": "^26.1.1",
21
21
  "typescript": "^4.9.4"
@@ -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.4.1",
13
+ "@stechquick/symphony-cli": "^0.4.3",
14
14
  "ts-loader": "^9.2.6",
15
15
  "typescript": "4.4.3",
16
16
  "vue": "^2.6.11",