diff --git a/packages/schematics/application/index.ts b/packages/schematics/application/index.ts index 61338cde5..e181979fb 100644 --- a/packages/schematics/application/index.ts +++ b/packages/schematics/application/index.ts @@ -89,7 +89,11 @@ function addDependenciesToPackageJson(options: ApplicationOptions) { ), ); // ng-alain - addPackageToPackageJson(host, `ng-alain@${VERSION}`, 'devDependencies'); + addPackageToPackageJson(host, [ + `ng-alain@${VERSION}`, + // color-less + `less-bundle-promise@^1.0.7`, + ], 'devDependencies'); // i18n if (options.i18n) { addPackageToPackageJson(host, [ @@ -109,6 +113,7 @@ function addRunScriptToPackageJson() { json.scripts['build'] = `ng build --prod --build-optimizer`; json.scripts['analyze'] = `ng build --prod --build-optimizer --stats-json`; json.scripts['test-coverage'] = `ng test --code-coverage --watch=false`; + json.scripts['color-less'] = `node scripts/color-less.js`; overwritePackage(host, json); return host; }; @@ -168,6 +173,7 @@ function addCodeStylesToPackageJson() { ], '*.ts': ['npm run lint:ts', 'prettier --write', 'git add'], '*.less': ['npm run lint:style', 'prettier --write', 'git add'], + 'ignore': ['src/assets/*'], }; overwritePackage(host, json); // tslint diff --git a/scripts/ci/build-schematics.sh b/scripts/ci/build-schematics.sh index 8fd3ba402..a9787d132 100644 --- a/scripts/ci/build-schematics.sh +++ b/scripts/ci/build-schematics.sh @@ -62,6 +62,7 @@ copyFiles() { "${1}.stylelintrc|${2}application/files/root/__dot__stylelintrc" # ci "${1}.vscode|${2}application/files/root/__dot__vscode" + "${1}scripts/color-less.js|${2}application/files/root/scripts" # LICENSE "${1}LICENSE|${2}application/files/root" "${1}README.md|${2}application/files/root" diff --git a/scripts/ci/deploy.sh b/scripts/ci/deploy.sh index e49e4c5b6..22cb64164 100644 --- a/scripts/ci/deploy.sh +++ b/scripts/ci/deploy.sh @@ -101,3 +101,6 @@ travisFoldStart "publish.dist" echo "Published package artifacts for ${packageName}#${buildVersionName} into ${branchName}" travisFoldEnd "publish.dist" + +echo "Download link:" +echo "https://github.com/ng-alain/delon-builds/archive/${buildTagName}.zip"