tnx-shared 5.1.246 → 5.1.247
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.
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"package-minor-template": "npm run prebuild && npm run update-minor-version-{{projectName}} && npm run build-{{projectName}} && cd ./dist/{{projectName}} && npm publish && cd ../..",
|
|
9
9
|
"start-template": "npm run prebuild && node --max_old_space_size={{nodeMaxOldSpaceSize}} ./node_modules/@angular/cli/bin/ng serve --project {{projectName}} --configuration={{environmentName}} --port={{port}} --open {{additionalParams}}",
|
|
10
10
|
"deploy-template": "npm run prebuild && node --max_old_space_size={{nodeMaxOldSpaceSize}} ./node_modules/@angular/cli/bin/ng build --project {{projectName}} --prod & docker build -f ./build-config/{{projectName}}/Dockerfile -t dockerhub.dttt.vn/{{scopeName}}/{{projectName}}.client:{{clientVersion}} . & docker push dockerhub.dttt.vn/{{scopeName}}/{{projectName}}.client:{{clientVersion}}",
|
|
11
|
-
"prebuild-template": "npm run depend-all && npm install",
|
|
11
|
+
"prebuild-template": "npm run depend-all && npm install && npm run format",
|
|
12
12
|
"depend-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateDepdendServiceToLatest --serviceName tnx-{{serviceName}} --env init",
|
|
13
13
|
"ref-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js copyRefDirect --env {{environmentName}} --projectRefDirect {{projectName}}",
|
|
14
14
|
"ref-update-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateRefDirect --env {{environmentName}} --projectRefDirect {{projectName}}",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"publish-shared": "cd ../../shared/AppSharedV5 && npm run package-tnx-shared",
|
|
20
20
|
"update-version-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateNextVersionService --projectName {{projectName}} --publishType revision --env init",
|
|
21
21
|
"update-major-version-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateNextVersionService --projectName {{projectName}} --publishType major --env init",
|
|
22
|
-
"update-minor-version-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateNextVersionService --projectName {{projectName}} --publishType minor --env init"
|
|
22
|
+
"update-minor-version-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateNextVersionService --projectName {{projectName}} --publishType minor --env init",
|
|
23
|
+
"format-template": "vim ./build-config/{{projectName}}/docker-entrypoint.sh -c 'set ff=unix' -c ':wq'"
|
|
23
24
|
},
|
|
24
25
|
"version": 1,
|
|
25
26
|
"newProjectRoot": "projects",
|
package/assets/gulpfile.js
CHANGED
|
@@ -471,6 +471,8 @@ function transformPackageJson(angularSchema, angularSchemaTemplate, input) {
|
|
|
471
471
|
if (personalEnvironmentName != 'init' && env != personalEnvironmentName) continue;
|
|
472
472
|
input.scripts[`generate-all-${env}`] = angularSchemaTemplate.scripts[`generate-all-template`]
|
|
473
473
|
.replaceAll('{{environmentName}}', env);
|
|
474
|
+
input.scripts[`format`] = angularSchemaTemplate.scripts[`format-template`]
|
|
475
|
+
.replaceAll('{{projectName}}', env);
|
|
474
476
|
}
|
|
475
477
|
|
|
476
478
|
Object.keys(angularSchema.projectList).filter(x => angularSchema.projectList[x].projectType == 'application').forEach(project => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tnx-shared",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.247",
|
|
4
4
|
"clientVersion": "5.1",
|
|
5
5
|
"version5.0": "5.0.19",
|
|
6
6
|
"version5.1": "5.1.22",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"jsplumb": "^2.15.6",
|
|
132
132
|
"ngx-extended-pdf-viewer": "^9.0.5"
|
|
133
133
|
},
|
|
134
|
-
"versionPrev": "5.1.
|
|
134
|
+
"versionPrev": "5.1.246",
|
|
135
135
|
"main": "bundles/tnx-shared.umd.js",
|
|
136
136
|
"module": "fesm2015/tnx-shared.js",
|
|
137
137
|
"es2015": "fesm2015/tnx-shared.js",
|