@stechquick/symphony-cli 0.2.271
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 +378 -0
- package/bin/run +5 -0
- package/bin/run.cmd +3 -0
- package/lib/commands/mui-create.d.ts +14 -0
- package/lib/commands/mui-create.js +39 -0
- package/lib/commands/nc-addcomp.d.ts +11 -0
- package/lib/commands/nc-addcomp.js +22 -0
- package/lib/commands/nc-build.d.ts +9 -0
- package/lib/commands/nc-build.js +20 -0
- package/lib/commands/nc-create.d.ts +14 -0
- package/lib/commands/nc-create.js +38 -0
- package/lib/commands/qui-build.d.ts +6 -0
- package/lib/commands/qui-build.js +16 -0
- package/lib/commands/qui-create.d.ts +14 -0
- package/lib/commands/qui-create.js +39 -0
- package/lib/commands/qui-start.d.ts +9 -0
- package/lib/commands/qui-start.js +30 -0
- package/lib/commands/quick-serve.d.ts +17 -0
- package/lib/commands/quick-serve.js +73 -0
- package/lib/commands/sym-addfunc.d.ts +12 -0
- package/lib/commands/sym-addfunc.js +21 -0
- package/lib/commands/sym-build.d.ts +12 -0
- package/lib/commands/sym-build.js +56 -0
- package/lib/commands/sym-create-module.d.ts +14 -0
- package/lib/commands/sym-create-module.js +39 -0
- package/lib/commands/sym-create.d.ts +14 -0
- package/lib/commands/sym-create.js +39 -0
- package/lib/commands/sym-fn-deploy.d.ts +24 -0
- package/lib/commands/sym-fn-deploy.js +152 -0
- package/lib/commands/sym-nano-deploy.d.ts +11 -0
- package/lib/commands/sym-nano-deploy.js +50 -0
- package/lib/commands/sym-start.d.ts +14 -0
- package/lib/commands/sym-start.js +28 -0
- package/lib/commands/sym-test.d.ts +6 -0
- package/lib/commands/sym-test.js +12 -0
- package/lib/helpers/deploy/fnDeployHelper.d.ts +28 -0
- package/lib/helpers/deploy/fnDeployHelper.js +196 -0
- package/lib/helpers/deploy/nanoDeployHelper.d.ts +20 -0
- package/lib/helpers/deploy/nanoDeployHelper.js +83 -0
- package/lib/helpers/fnDownloadHelper.d.ts +11 -0
- package/lib/helpers/fnDownloadHelper.js +64 -0
- package/lib/helpers/initHelper.d.ts +22 -0
- package/lib/helpers/initHelper.js +78 -0
- package/lib/helpers/microUIHelper.d.ts +10 -0
- package/lib/helpers/microUIHelper.js +33 -0
- package/lib/helpers/namedComponent/ncHelper.d.ts +15 -0
- package/lib/helpers/namedComponent/ncHelper.js +60 -0
- package/lib/helpers/npmHelper.d.ts +23 -0
- package/lib/helpers/npmHelper.js +79 -0
- package/lib/helpers/packageHelper.d.ts +14 -0
- package/lib/helpers/packageHelper.js +32 -0
- package/lib/helpers/shellHelper.d.ts +25 -0
- package/lib/helpers/shellHelper.js +52 -0
- package/lib/helpers/socketServer/socketServerHelper.d.ts +14 -0
- package/lib/helpers/socketServer/socketServerHelper.js +106 -0
- package/lib/helpers/typeHelper.d.ts +3 -0
- package/lib/helpers/typeHelper.js +22 -0
- package/lib/helpers/ui/createuiHelper.d.ts +10 -0
- package/lib/helpers/ui/createuiHelper.js +33 -0
- package/lib/helpers/ui/quiBuilder.d.ts +13 -0
- package/lib/helpers/ui/quiBuilder.js +163 -0
- package/lib/helpers/utils.d.ts +8 -0
- package/lib/helpers/utils.js +20 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -0
- package/lib/pathFinder.d.ts +4 -0
- package/lib/pathFinder.js +13 -0
- package/lib/predeploy/src/fn/fnPostdeploy.d.ts +5 -0
- package/lib/predeploy/src/fn/fnPostdeploy.js +49 -0
- package/lib/predeploy/src/fn/fnPredeploy.d.ts +4 -0
- package/lib/predeploy/src/fn/fnPredeploy.js +30 -0
- package/lib/predeploy/src/nano/nanoPostdeploy.d.ts +5 -0
- package/lib/predeploy/src/nano/nanoPostdeploy.js +41 -0
- package/lib/predeploy/src/nano/nanoPredeploy.d.ts +4 -0
- package/lib/predeploy/src/nano/nanoPredeploy.js +25 -0
- package/lib/predeploy/src/paramReplacer.d.ts +7 -0
- package/lib/predeploy/src/paramReplacer.js +14 -0
- package/lib/predeploy/src/predeployCommon.d.ts +15 -0
- package/lib/predeploy/src/predeployCommon.js +83 -0
- package/oclif.manifest.json +1 -0
- package/package.json +76 -0
- package/templates/addModule/{{ModuleName}}/.jenkins/dev.yaml +43 -0
- package/templates/addModule/{{ModuleName}}/README.md +2 -0
- package/templates/addModule/{{ModuleName}}/index.ts +1 -0
- package/templates/addModule/{{ModuleName}}/src/implementation/object.ts +16 -0
- package/templates/addModule/{{ModuleName}}/src/module.ts +9 -0
- package/templates/addModule/{{ModuleName}}/tsconfig.json +66 -0
- package/templates/addModule/{{ModuleName}}/webpack.config.js +41 -0
- package/templates/addModule/{{ModuleName}}/{{remove}}.gitignore +6 -0
- package/templates/addModule/{{ModuleName}}/{{remove}}package.json +33 -0
- package/templates/addfunc/functions/{{FuncName}}/config.yaml +25 -0
- package/templates/addfunc/functions/{{FuncName}}/func.yaml +9 -0
- package/templates/addfunc/functions/{{FuncName}}/{{FuncName}}.ts +8 -0
- package/templates/addfunc/unitTest/{{FuncName}}.test.ts +18 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/.babelrc +17 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/.editorconfig +9 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/.postcssrc.js +8 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/README.md +45 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/build/build.js +41 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/build/check-versions.js +49 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/build/dev-client.js +10 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/build/dev-server.js +107 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/build/utils.js +73 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/build/vue-loader.conf.js +19 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/build/webpack.base.conf.js +76 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/build/webpack.dev.conf.js +39 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/build/webpack.prod.conf.js +128 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/build/webpack.test.conf.js +32 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/build.gradle +251 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/config/dev.env.js +7 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/config/index.js +50 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/config/prod.env.js +4 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/config/test.env.js +7 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/copyBundle.js +3 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/gradle/base/repos.gradle +48 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/gradlew +172 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/index.html +11 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/index.js +18 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/indexCompNames.js +14 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/indexInitial.js +8 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/indexModuleName.js +1 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/indexVCompNames.json +50 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/package.json +84 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/removeDist.js +2 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/App.vue +54 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/api/index.js +5 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/components/index.js +6 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/docker/nginx.conf +39 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/localization/en/default.json +3 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/localization/tr/default.json +3 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/main.js +15 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/mockserver/handlers/health.js +8 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/mockserver/index.js +8 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/mockserver/server.js +45 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/pages/index.js +6 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/router/index.js +5 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/service/serviceConstants.js +1 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/store/index.js +14 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/src/worker/a9e657cbf4abb977edda.worker.js +60638 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/static/.gitkeep +0 -0
- package/templates/createmicroui/{{MicroUIName}}-ui/webpack.config.js +257 -0
- package/templates/createui/{{UIName}}/Jenkinsfile +20 -0
- package/templates/createui/{{UIName}}/build.gradle +266 -0
- package/templates/createui/{{UIName}}/gradle/base/repos.gradle +93 -0
- package/templates/createui/{{UIName}}/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/templates/createui/{{UIName}}/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/templates/createui/{{UIName}}/gradlew +172 -0
- package/templates/createui/{{UIName}}/gradlew.bat +90 -0
- package/templates/createui/{{UIName}}/settings/globalLocalization.qjson +29 -0
- package/templates/createui/{{UIName}}/settings/localProxy.yaml +25 -0
- package/templates/createui/{{UIName}}/settings/qjson/alert.qjson +920 -0
- package/templates/createui/{{UIName}}/settings/qjson/loading.qjson +1486 -0
- package/templates/createui/{{UIName}}/settings/qjson/logHandler.qjson +65 -0
- package/templates/createui/{{UIName}}/settings/qjson/pipeline.qjson +116 -0
- package/templates/createui/{{UIName}}/settings/settings-proxy.js +120 -0
- package/templates/createui/{{UIName}}/settings/settings.yaml +85 -0
- package/templates/createui/{{UIName}}/settings.gradle +1 -0
- package/templates/createui/{{UIName}}/static/components/yourNamedCompHere.js +0 -0
- package/templates/createui/{{UIName}}/static/css/main.css +36 -0
- package/templates/createui/{{UIName}}/static/css/myDarkTheme.css +143 -0
- package/templates/createui/{{UIName}}/static/css/myHappyTheme1.css +140 -0
- package/templates/createui/{{UIName}}/static/css/myHappyTheme2.css +140 -0
- package/templates/createui/{{UIName}}/static/images/ahelogo.png +0 -0
- package/templates/createui/{{UIName}}/static/images/avatar.png +0 -0
- package/templates/createui/{{UIName}}/static/images/profile.png +0 -0
- package/templates/createui/{{UIName}}/static/images/profile2.png +0 -0
- package/templates/createui/{{UIName}}/static/images/yourImagesHere.png +0 -0
- package/templates/createui/{{UIName}}/static/js/componentList.ts +4452 -0
- package/templates/createui/{{UIName}}/static/qjsons/VDatatableConditionalRowColoring.qjson +158 -0
- package/templates/createui/{{UIName}}/static/qjsons/alertSamplePage.qjson +772 -0
- package/templates/createui/{{UIName}}/static/qjsons/complicatedSamplePage.qjson +10448 -0
- package/templates/createui/{{UIName}}/static/qjsons/customComponentSample.qjson +803 -0
- package/templates/createui/{{UIName}}/static/qjsons/customerInfoCustomComp.qjson +1451 -0
- package/templates/createui/{{UIName}}/static/qjsons/first.qjson +2180 -0
- package/templates/createui/{{UIName}}/static/qjsons/formatterSample.qjson +877 -0
- package/templates/createui/{{UIName}}/static/qjsons/localizationSample.qjson +1845 -0
- package/templates/createui/{{UIName}}/static/qjsons/pipelineSample.qjson +913 -0
- package/templates/createui/{{UIName}}/static/qjsons/validationSample.qjson +2371 -0
- package/templates/createui/{{UIName}}/static/qjsons/webDashboardSample.qjson +2993 -0
- package/templates/createui/{{UIName}}/{{remove}}.gitignore +3 -0
- package/templates/createui/{{UIName}}/{{remove}}package.json +22 -0
- package/templates/fnPredeploy/Dockerfile +22 -0
- package/templates/init/{{AppName}}/.vscode/launch.json +24 -0
- package/templates/init/{{AppName}}/Jenkinsfile +36 -0
- package/templates/init/{{AppName}}/app.yaml +1 -0
- package/templates/init/{{AppName}}/functions/qjsonfunc/func.yaml +9 -0
- package/templates/init/{{AppName}}/functions/qjsonfunc/qjsonfunc.ts +3 -0
- package/templates/init/{{AppName}}/functions/qjsonfunc/qjsons/test.qjson +180 -0
- package/templates/init/{{AppName}}/functions/samplefunc/config.yaml +46 -0
- package/templates/init/{{AppName}}/functions/samplefunc/func.yaml +9 -0
- package/templates/init/{{AppName}}/functions/samplefunc/samplefunc.ts +27 -0
- package/templates/init/{{AppName}}/jest.config.js +8 -0
- package/templates/init/{{AppName}}/local.ts +6 -0
- package/templates/init/{{AppName}}/sym-engine/config.yaml +7 -0
- package/templates/init/{{AppName}}/sym-engine/localization.yaml +5 -0
- package/templates/init/{{AppName}}/sym-engine/pipeline.ts +64 -0
- package/templates/init/{{AppName}}/test/qjson.http +29 -0
- package/templates/init/{{AppName}}/test/sample.http +24 -0
- package/templates/init/{{AppName}}/tsconfig.json +66 -0
- package/templates/init/{{AppName}}/unitTest/samplefunc.test.ts +55 -0
- package/templates/init/{{AppName}}/{{remove}}.gitignore +6 -0
- package/templates/init/{{AppName}}/{{remove}}package.json +40 -0
- package/templates/nanoPredeploy/Dockerfile +27 -0
- package/templates/nc-addComp/{{ComponentName}}.vue +29 -0
- package/templates/nc-create/{{ProjectName}}/shims/shims-vue.d.ts +4 -0
- package/templates/nc-create/{{ProjectName}}/src/namedComps/{{ProjectName}}.vue +29 -0
- package/templates/nc-create/{{ProjectName}}/tsconfig.json +66 -0
- package/templates/nc-create/{{ProjectName}}/webpack.config.js +2 -0
- package/templates/nc-create/{{ProjectName}}/{{remove}}.gitignore +3 -0
- package/templates/nc-create/{{ProjectName}}/{{remove}}package.json +28 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FnPostDeploy = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
6
|
+
const path = tslib_1.__importStar(require("path"));
|
|
7
|
+
const predeployCommon_1 = require("../predeployCommon");
|
|
8
|
+
const log_1 = require("@stechquick/symphony-common/lib/log");
|
|
9
|
+
const styling_1 = require("@stechquick/symphony-common/lib/styling");
|
|
10
|
+
const fileHelper_1 = require("@stechquick/symphony-common/lib/helpers/fileHelper");
|
|
11
|
+
class FnPostDeploy {
|
|
12
|
+
static execute() {
|
|
13
|
+
log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Postdeploy starting..."), timeFormat: "datetime" });
|
|
14
|
+
const deleteTargetItems = new Array();
|
|
15
|
+
const options = {
|
|
16
|
+
folder: "./functions",
|
|
17
|
+
itemEndsWith: "func.yaml",
|
|
18
|
+
iterator: (targetPath) => {
|
|
19
|
+
log_1.Logger.log({ message: "Target path: " + targetPath });
|
|
20
|
+
this.deleteList.forEach(deleteItem => {
|
|
21
|
+
log_1.Logger.log({ message: "Delete item: " + deleteItem });
|
|
22
|
+
const parsedDeleteItem = path.parse(deleteItem);
|
|
23
|
+
const targetItem = targetPath + parsedDeleteItem.name + parsedDeleteItem.ext;
|
|
24
|
+
deleteTargetItems.push(targetItem);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
new predeployCommon_1.PredeployCommon().forEachFolderWithItem(options);
|
|
29
|
+
this.deleteTargets(deleteTargetItems);
|
|
30
|
+
log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Postdeploy finished successfully..."), timeFormat: "datetime" });
|
|
31
|
+
}
|
|
32
|
+
static deleteTargets(items) {
|
|
33
|
+
items.forEach(delTarget => {
|
|
34
|
+
if (!fs.existsSync(delTarget)) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
log_1.Logger.log({ message: "Deleting Item:" + delTarget });
|
|
38
|
+
if (fileHelper_1.FileHelper.isDirectory(delTarget)) {
|
|
39
|
+
fileHelper_1.FileHelper.removeFolder(delTarget);
|
|
40
|
+
fs.rmdirSync(delTarget);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
fs.unlinkSync(delTarget);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.FnPostDeploy = FnPostDeploy;
|
|
49
|
+
FnPostDeploy.deleteList = [".npmrc", "package.json", "tsconfig.json", "Dockerfile", "package-lock.json", "node_modules", "sym-engine"];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FnPredeploy = void 0;
|
|
4
|
+
const predeployCommon_1 = require("../predeployCommon");
|
|
5
|
+
const pathFinder_1 = require("../../../pathFinder");
|
|
6
|
+
const log_1 = require("@stechquick/symphony-common/lib/log");
|
|
7
|
+
const styling_1 = require("@stechquick/symphony-common/lib/styling");
|
|
8
|
+
const npmHelper_1 = require("../../../helpers/npmHelper");
|
|
9
|
+
class FnPredeploy {
|
|
10
|
+
static async execute(replaceWords) {
|
|
11
|
+
log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Predeploy starting...") });
|
|
12
|
+
const options = {
|
|
13
|
+
folder: "./functions",
|
|
14
|
+
itemEndsWith: "func.yaml",
|
|
15
|
+
iterator: (targetPath, funcName) => new predeployCommon_1.PredeployCommon().preDeployReplaceCopier(targetPath, funcName, replaceWords, this.copyList)
|
|
16
|
+
};
|
|
17
|
+
npmHelper_1.NpmHelper.install({ folderName: "./" });
|
|
18
|
+
new predeployCommon_1.PredeployCommon().forEachFolderWithItem(options);
|
|
19
|
+
log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Predeploy finished successfully...") });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.FnPredeploy = FnPredeploy;
|
|
23
|
+
FnPredeploy.copyList = [
|
|
24
|
+
{ path: "package.json" },
|
|
25
|
+
{ path: "tsconfig.json" },
|
|
26
|
+
{ path: "node_modules" },
|
|
27
|
+
{ path: pathFinder_1.PathFinder.RootPath("/templates/fnPredeploy/Dockerfile"), needParamReplace: true, sourceFullPath: true },
|
|
28
|
+
{ path: pathFinder_1.PathFinder.RootPath("/templates/fnPredeploy/.npmrc"), needParamReplace: true, sourceFullPath: true },
|
|
29
|
+
{ path: pathFinder_1.PathFinder.RootPath("/templates/init/{{AppName}}/sym-engine"), needParamReplace: false, sourceFullPath: true },
|
|
30
|
+
];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NanoPostDeploy = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
6
|
+
const path = tslib_1.__importStar(require("path"));
|
|
7
|
+
const log_1 = require("@stechquick/symphony-common/lib/log");
|
|
8
|
+
const styling_1 = require("@stechquick/symphony-common/lib/styling");
|
|
9
|
+
const fileHelper_1 = require("@stechquick/symphony-common/lib/helpers/fileHelper");
|
|
10
|
+
class NanoPostDeploy {
|
|
11
|
+
static execute() {
|
|
12
|
+
log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Postdeploy starting..."), timeFormat: "datetime" });
|
|
13
|
+
const deleteTargetItems = new Array();
|
|
14
|
+
this.deleteList.forEach(deleteItem => {
|
|
15
|
+
log_1.Logger.log({ message: "Delete item: " + deleteItem });
|
|
16
|
+
const parsedDeleteItem = path.parse(deleteItem);
|
|
17
|
+
const targetItem = './' + parsedDeleteItem.name + parsedDeleteItem.ext;
|
|
18
|
+
deleteTargetItems.push(targetItem);
|
|
19
|
+
});
|
|
20
|
+
this.deleteTargets(deleteTargetItems);
|
|
21
|
+
log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Postdeploy finished successfully..."), timeFormat: "datetime" });
|
|
22
|
+
}
|
|
23
|
+
//pre deploy commona al fn dekininde al!!
|
|
24
|
+
static deleteTargets(items) {
|
|
25
|
+
items.forEach(delTarget => {
|
|
26
|
+
if (!fs.existsSync(delTarget)) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
log_1.Logger.log({ message: "Deleting Item:" + delTarget });
|
|
30
|
+
if (fileHelper_1.FileHelper.isDirectory(delTarget)) {
|
|
31
|
+
fileHelper_1.FileHelper.removeFolder(delTarget);
|
|
32
|
+
fs.rmdirSync(delTarget);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
fs.unlinkSync(delTarget);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.NanoPostDeploy = NanoPostDeploy;
|
|
41
|
+
NanoPostDeploy.deleteList = [".npmrc", "Dockerfile"];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NanoPredeploy = void 0;
|
|
4
|
+
const predeployCommon_1 = require("../predeployCommon");
|
|
5
|
+
const pathFinder_1 = require("../../../pathFinder");
|
|
6
|
+
const log_1 = require("@stechquick/symphony-common/lib/log");
|
|
7
|
+
const styling_1 = require("@stechquick/symphony-common/lib/styling");
|
|
8
|
+
const npmHelper_1 = require("../../../helpers/npmHelper");
|
|
9
|
+
class NanoPredeploy {
|
|
10
|
+
static async execute(replaceWords) {
|
|
11
|
+
log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Predeploy starting...") });
|
|
12
|
+
// const options: IPredeployForeachItemOptions = {
|
|
13
|
+
// folder: "./functions",
|
|
14
|
+
// itemEndsWith: "func.yaml",
|
|
15
|
+
// iterator: (targetPath: string, funcName: string) => new PredeployCommon().preDeployReplaceCopier(targetPath,funcName,replaceWords,this.copyList)
|
|
16
|
+
// };
|
|
17
|
+
npmHelper_1.NpmHelper.install({ folderName: "./" });
|
|
18
|
+
new predeployCommon_1.PredeployCommon().preDeployReplaceCopier("./", "NoFunction", replaceWords, this.copyList);
|
|
19
|
+
log_1.Logger.log({ message: styling_1.Chalk.create("green.bold", "Predeploy finished successfully...") });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.NanoPredeploy = NanoPredeploy;
|
|
23
|
+
NanoPredeploy.copyList = [
|
|
24
|
+
{ path: pathFinder_1.PathFinder.RootPath("/templates/nanoPredeploy/Dockerfile"), needParamReplace: true, sourceFullPath: true },
|
|
25
|
+
];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ParamReplacer = void 0;
|
|
4
|
+
class ParamReplacer {
|
|
5
|
+
static replace(item) {
|
|
6
|
+
let newContent = item.content;
|
|
7
|
+
Object.keys(item.replaceWords).forEach(key => {
|
|
8
|
+
const regex = new RegExp(`{{${key}}}`, "g");
|
|
9
|
+
newContent = newContent.replace(regex, item.replaceWords[key]);
|
|
10
|
+
});
|
|
11
|
+
return newContent;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ParamReplacer = ParamReplacer;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IPredeployForeachItemOptions {
|
|
2
|
+
folder: string;
|
|
3
|
+
itemEndsWith: string;
|
|
4
|
+
iterator: (curPath: string, funcName: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface ICopyItem {
|
|
7
|
+
path: string;
|
|
8
|
+
needParamReplace?: boolean;
|
|
9
|
+
sourceFullPath?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class PredeployCommon {
|
|
12
|
+
private config;
|
|
13
|
+
forEachFolderWithItem(options: IPredeployForeachItemOptions): void;
|
|
14
|
+
preDeployReplaceCopier(targetPath: string, funcName: string, replaceWords: Record<string, string>, copyList: Array<ICopyItem>): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PredeployCommon = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
6
|
+
const path = tslib_1.__importStar(require("path"));
|
|
7
|
+
const yaml = tslib_1.__importStar(require("js-yaml"));
|
|
8
|
+
const fileHelper_1 = require("@stechquick/symphony-common/lib/helpers/fileHelper");
|
|
9
|
+
const paramReplacer_1 = require("./paramReplacer");
|
|
10
|
+
const quiBuilder_1 = require("../../helpers/ui/quiBuilder");
|
|
11
|
+
class PredeployCommon {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.config = {};
|
|
14
|
+
}
|
|
15
|
+
forEachFolderWithItem(options) {
|
|
16
|
+
const rootFolder = options.folder;
|
|
17
|
+
////logger.log({ message: "Root folder: " + rootFolder });
|
|
18
|
+
let funcName;
|
|
19
|
+
const forEachFolder = ({ options }) => {
|
|
20
|
+
fs.readdirSync(options.folder).forEach(item => {
|
|
21
|
+
////logger.log({ message: "Item: " + item });
|
|
22
|
+
const curItemPath = path.join(options.folder, item);
|
|
23
|
+
////logger.log({ message: "Current item path: " + curItemPath });
|
|
24
|
+
const isDirectory = fileHelper_1.FileHelper.isDirectory(curItemPath);
|
|
25
|
+
////logger.log({ message: "Now, we are in a directory?: " + isDirectory });
|
|
26
|
+
if (isDirectory) {
|
|
27
|
+
options.folder = curItemPath;
|
|
28
|
+
funcName = item;
|
|
29
|
+
forEachFolder({ options });
|
|
30
|
+
}
|
|
31
|
+
else if (item.endsWith(options.itemEndsWith)) {
|
|
32
|
+
const writeFile = (config) => {
|
|
33
|
+
config["name"] = this.config["name"].toLowerCase();
|
|
34
|
+
fs.writeFileSync(curItemPath, yaml.safeDump(config), 'utf8');
|
|
35
|
+
};
|
|
36
|
+
let funcYaml = yaml.safeLoad(fs.readFileSync(curItemPath, "utf8"));
|
|
37
|
+
switch (typeof (funcYaml)) {
|
|
38
|
+
case "string":
|
|
39
|
+
this.config = JSON.parse(funcYaml);
|
|
40
|
+
writeFile(this.config);
|
|
41
|
+
break;
|
|
42
|
+
case "object":
|
|
43
|
+
this.config = funcYaml;
|
|
44
|
+
writeFile(this.config);
|
|
45
|
+
case "undefined":
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
const iteratingItem = curItemPath.substring(0, curItemPath.length - options.itemEndsWith.length);
|
|
49
|
+
////logger.log({ message: "Iterating item: " + iteratingItem });
|
|
50
|
+
options.iterator(iteratingItem, funcName);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//Set for next function folder
|
|
54
|
+
options.folder = rootFolder;
|
|
55
|
+
};
|
|
56
|
+
forEachFolder({ options });
|
|
57
|
+
}
|
|
58
|
+
preDeployReplaceCopier(targetPath, funcName, replaceWords, copyList) {
|
|
59
|
+
// //logger.log({ message: "I am in iterator... targetPath: " + targetPath });
|
|
60
|
+
copyList.forEach(copyItem => {
|
|
61
|
+
const parsedCopyItem = path.parse(copyItem.path);
|
|
62
|
+
copyItem.path = copyItem.sourceFullPath ? copyItem.path : `./${copyItem.path}`;
|
|
63
|
+
const targetItem = targetPath + parsedCopyItem.name + parsedCopyItem.ext;
|
|
64
|
+
////logger.log({ message: "From: " + copyItem.path + " To: " + targetItem });
|
|
65
|
+
if (copyItem.needParamReplace) {
|
|
66
|
+
const content = fs.readFileSync(copyItem.path, "utf8");
|
|
67
|
+
replaceWords.funcName = funcName;
|
|
68
|
+
const newContent = paramReplacer_1.ParamReplacer.replace({ content, replaceWords });
|
|
69
|
+
fs.writeFileSync(targetItem, newContent);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
if (fileHelper_1.FileHelper.isDirectory(copyItem.path)) {
|
|
73
|
+
new quiBuilder_1.FolderCopier().CopyFolder(copyItem.path, targetItem);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
fs.copyFileSync(copyItem.path, targetItem);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
////logger.log({ message: "item was coppied... copyItem: " + copyItem.path + " targetItem: " + targetItem });
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.PredeployCommon = PredeployCommon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"0.2.271","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 -d=\"My Quick UI project\""],"flags":{"desc":{"name":"desc","type":"option","char":"d","description":"description to project","hidden":false,"required":false,"default":""}},"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}},"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,"default":"default"},"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":{},"args":[]}}}
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stechquick/symphony-cli",
|
|
3
|
+
"description": "quick symphony server cli tools",
|
|
4
|
+
"version": "0.2.271",
|
|
5
|
+
"author": "alper-batioglu @alper-batioglu",
|
|
6
|
+
"bin": {
|
|
7
|
+
"symphony-cli": "./bin/run"
|
|
8
|
+
},
|
|
9
|
+
"bugs": "https://github.com/alper-batioglu/symphony-cli/issues",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"link": "npm link @stechquick/symphony-common @stechquick/symphony-nanoserver @stechquick/symphony-nanoserver-wsplugin",
|
|
12
|
+
"postpack": "rimraf oclif.manifest.json",
|
|
13
|
+
"prepack": "rimraf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
|
|
14
|
+
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
|
|
15
|
+
"version": "oclif-dev readme && git add README.md",
|
|
16
|
+
"build": " tsc -b",
|
|
17
|
+
"buildWatch": "tsc -b --watch",
|
|
18
|
+
"forceInstall": "npm install @stechquick/symphony-common --save --force && npm install @stechquick/symphony-nanoserver --save --force",
|
|
19
|
+
"version:inc": "node node_modules/@stechquick/symphony-common/lib/executables/version",
|
|
20
|
+
"pack": "npm pack"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@oclif/command": "^1.6.1",
|
|
24
|
+
"@oclif/config": "^1.15.1",
|
|
25
|
+
"@oclif/plugin-help": "^3.1.0",
|
|
26
|
+
"@types/js-yaml": "^3.12.5",
|
|
27
|
+
"cli-ux": "^5.4.6",
|
|
28
|
+
"compare-versions": "^3.6.0",
|
|
29
|
+
"debug": "^4.1.1",
|
|
30
|
+
"fs-extra": "^9.0.1",
|
|
31
|
+
"js-yaml": "^3.14.0",
|
|
32
|
+
"@stechquick/symphony-common": "^0.1.2",
|
|
33
|
+
"@stechquick/symphony-nanoserver": "^0.2.2",
|
|
34
|
+
"@stechquick/symphony-nanoserver-wsplugin": "^0.2.0",
|
|
35
|
+
"tslib": "^1.13.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@oclif/dev-cli": "^1.22.2",
|
|
39
|
+
"@oclif/test": "^1.2.6",
|
|
40
|
+
"@types/chai": "^4.2.11",
|
|
41
|
+
"@types/mocha": "^5.2.7",
|
|
42
|
+
"@types/node": "^10.17.26",
|
|
43
|
+
"chai": "^4.2.0",
|
|
44
|
+
"globby": "^10.0.2",
|
|
45
|
+
"mocha": "^5.2.0",
|
|
46
|
+
"nyc": "^14.1.1",
|
|
47
|
+
"rimraf": "^3.0.2",
|
|
48
|
+
"ts-node": "^8.10.2",
|
|
49
|
+
"typescript": "^3.9.5"
|
|
50
|
+
},
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": ">=8.0.0"
|
|
53
|
+
},
|
|
54
|
+
"files": [
|
|
55
|
+
"/bin",
|
|
56
|
+
"/lib",
|
|
57
|
+
"/npm-shrinkwrap.json",
|
|
58
|
+
"/oclif.manifest.json",
|
|
59
|
+
"/templates"
|
|
60
|
+
],
|
|
61
|
+
"homepage": "https://github.com/alper-batioglu/symphony-cli",
|
|
62
|
+
"keywords": [
|
|
63
|
+
"oclif"
|
|
64
|
+
],
|
|
65
|
+
"license": "MIT",
|
|
66
|
+
"main": "lib/index.js",
|
|
67
|
+
"oclif": {
|
|
68
|
+
"commands": "./lib/commands",
|
|
69
|
+
"bin": "symphony-cli",
|
|
70
|
+
"plugins": [
|
|
71
|
+
"@oclif/plugin-help"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"repository": "alper-batioglu/symphony-cli",
|
|
75
|
+
"types": "lib/index.d.ts"
|
|
76
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
build:
|
|
2
|
+
resolveDependency: true
|
|
3
|
+
chnageVersionNumber: true
|
|
4
|
+
buildProject: true
|
|
5
|
+
runUnitTests: false
|
|
6
|
+
runSonarQubeTests: false
|
|
7
|
+
packageCode: true
|
|
8
|
+
uploadToRepository: true
|
|
9
|
+
useCdn: false
|
|
10
|
+
runPostBuildActions: true
|
|
11
|
+
|
|
12
|
+
postBuild:
|
|
13
|
+
failure:
|
|
14
|
+
sendEmail:
|
|
15
|
+
- addresses:
|
|
16
|
+
- Pulsar@softtech.com.tr
|
|
17
|
+
subject: "$b_name/$b_id build status is $b_status"
|
|
18
|
+
message: |-
|
|
19
|
+
Build link is -> <a href="$b_link" target="_blank">$b_link</a>
|
|
20
|
+
|
|
21
|
+
project:
|
|
22
|
+
name: plateau-symphony-isbank
|
|
23
|
+
builderVersion: "NodeJS 12.3.0"
|
|
24
|
+
preferedRegistryIndex: 1
|
|
25
|
+
|
|
26
|
+
registry:
|
|
27
|
+
- id: "rally-nexus"
|
|
28
|
+
hostedRepository: "npm-hosted"
|
|
29
|
+
groupRepository: "repository/softtech"
|
|
30
|
+
hostToArtifact: true
|
|
31
|
+
- id: "dev-nexus"
|
|
32
|
+
hostedRepository: "npm-softtech"
|
|
33
|
+
groupRepository: "repository/softtech"
|
|
34
|
+
hostToArtifact: true
|
|
35
|
+
|
|
36
|
+
package:
|
|
37
|
+
extras:
|
|
38
|
+
- "@stechquick/symphony-common@latest"
|
|
39
|
+
|
|
40
|
+
jenkins:
|
|
41
|
+
appType: nodejs
|
|
42
|
+
targetBranch: master
|
|
43
|
+
securityGroup: ngsp-nemo
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {Module} from "./src/module";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ModuleObject, IModuleObject } from "./implementation/object";
|
|
2
|
+
import { ISymphonyObject } from "@stechquick/symphony-common/lib/symphony";
|
|
3
|
+
import { symphony, ISymphonyModule } from "plateau-symphony";
|
|
4
|
+
|
|
5
|
+
export class Module implements ISymphonyModule {
|
|
6
|
+
ObjectCreation(){
|
|
7
|
+
return ModuleObject.Create();
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"paths": {
|
|
5
|
+
"*": ["types/*"]
|
|
6
|
+
},
|
|
7
|
+
/* Basic Options */
|
|
8
|
+
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
|
|
9
|
+
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
|
10
|
+
"lib": [
|
|
11
|
+
"es5",
|
|
12
|
+
"es6"
|
|
13
|
+
], /* Specify library files to be included in the compilation. */
|
|
14
|
+
"allowJs": true, /* Allow javascript files to be compiled. */
|
|
15
|
+
// "checkJs": true, /* Report errors in .js files. */
|
|
16
|
+
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
17
|
+
"declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
18
|
+
"declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
19
|
+
"sourceMap": true, /* Generates corresponding '.map' file. */
|
|
20
|
+
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
21
|
+
"outDir": "./dist/", /* Redirect output structure to the directory. */
|
|
22
|
+
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
23
|
+
// "composite": true, /* Enable project compilation */
|
|
24
|
+
// "removeComments": true, /* Do not emit comments to output. */
|
|
25
|
+
// "noEmit": true, /* Do not emit outputs. */
|
|
26
|
+
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
27
|
+
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
28
|
+
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
29
|
+
/* Strict Type-Checking Options */
|
|
30
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
31
|
+
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
32
|
+
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
33
|
+
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
34
|
+
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
35
|
+
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
36
|
+
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
37
|
+
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
38
|
+
/* Additional Checks */
|
|
39
|
+
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
40
|
+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
41
|
+
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
42
|
+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
43
|
+
/* Module Resolution Options */
|
|
44
|
+
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
45
|
+
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
46
|
+
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
47
|
+
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
48
|
+
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
49
|
+
// "types": [], /* Type declaration files to be included in compilation. */
|
|
50
|
+
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
51
|
+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
52
|
+
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
53
|
+
/* Source Map Options */
|
|
54
|
+
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
55
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
56
|
+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
57
|
+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
58
|
+
/* Experimental Options */
|
|
59
|
+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
60
|
+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
61
|
+
},
|
|
62
|
+
"include": [
|
|
63
|
+
"src/**/*",
|
|
64
|
+
"index.ts"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const WebpackBar = require('webpackbar');
|
|
3
|
+
|
|
4
|
+
main = {
|
|
5
|
+
entry: {
|
|
6
|
+
index: './index.ts'
|
|
7
|
+
},
|
|
8
|
+
devtool: 'source-map',
|
|
9
|
+
mode: 'development',
|
|
10
|
+
watch: false,
|
|
11
|
+
module: {
|
|
12
|
+
rules: [
|
|
13
|
+
{
|
|
14
|
+
test: /\.tsx?$/,
|
|
15
|
+
loader: "ts-loader",
|
|
16
|
+
exclude: /node_modules/
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
test: /\.js$/,
|
|
20
|
+
use: ["source-map-loader"],
|
|
21
|
+
enforce: "pre"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
plugins: [
|
|
26
|
+
new WebpackBar()
|
|
27
|
+
],
|
|
28
|
+
resolve: {
|
|
29
|
+
extensions: ['.tsx', '.ts', '.js']
|
|
30
|
+
},
|
|
31
|
+
target: "node",
|
|
32
|
+
output: {
|
|
33
|
+
filename: '[name].js',
|
|
34
|
+
path: path.resolve(__dirname, 'dist'),
|
|
35
|
+
libraryTarget: 'umd',
|
|
36
|
+
library: 'symphony-isbank',
|
|
37
|
+
globalObject: 'this'
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
module.exports = main;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "plateau-symphony-isbank",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "quick server symphony for isbank functionality",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"go": "npm run linkSelf && npm run link && npm run build",
|
|
8
|
+
"goWatch": "npm run linkSelf && npm run link && npm run buildWatch",
|
|
9
|
+
"linkSelf": "npm link",
|
|
10
|
+
"link": "npm link quick-shrimp",
|
|
11
|
+
"build": "npm run removeDist && webpack",
|
|
12
|
+
"buildts": "npm run removeDist && tsc",
|
|
13
|
+
"buildtsWatch": "npm run removeDist && tsc --watch",
|
|
14
|
+
"removeDist": "rm -rf dist/*",
|
|
15
|
+
"buildWatch": "npm run removeDist && webpack --watch"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"quick-shrimp": "^0.1.8",
|
|
19
|
+
"plateau-symphony": "^0.2.59",
|
|
20
|
+
"source-map-loader": "^0.2.4",
|
|
21
|
+
"ts-loader": "^5.3.3",
|
|
22
|
+
"typescript": "^3.7.3",
|
|
23
|
+
"webpack": "^4.41.2",
|
|
24
|
+
"webpack-cli": "^3.3.10",
|
|
25
|
+
"webpackbar": "^3.2.0"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"author": "",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"dependencies": {}
|
|
33
|
+
}
|