Browse Source
Merge pull request #9875 from abpframework/chore/build-script
Angular UI: Improved the build script in ng-packs
pull/9876/head
Bunyamin Coskuner
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
6 additions and
15 deletions
-
npm/ng-packs/.eslintrc.json
-
npm/ng-packs/package.json
-
npm/ng-packs/scripts/build-schematics.ts
-
npm/ng-packs/scripts/build.ts
|
|
|
@ -26,7 +26,8 @@ |
|
|
|
"extends": ["plugin:@nrwl/nx/typescript"], |
|
|
|
"rules": { |
|
|
|
"@typescript-eslint/no-namespace": "off", |
|
|
|
"@typescript-eslint/no-empty-function": ["warn"] |
|
|
|
"@typescript-eslint/no-empty-function": ["warn"], |
|
|
|
"@typescript-eslint/no-empty-interface": ["warn"] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
|
|
|
@ -118,18 +118,5 @@ |
|
|
|
"tslint": "~6.1.0", |
|
|
|
"typescript": "~4.3.5", |
|
|
|
"zone.js": "~0.11.4" |
|
|
|
}, |
|
|
|
"dependencies": { |
|
|
|
"@angular/animations": "^12.1.0", |
|
|
|
"@angular/common": "^12.1.0", |
|
|
|
"@angular/compiler": "^12.1.0", |
|
|
|
"@angular/core": "^12.1.0", |
|
|
|
"@angular/forms": "^12.1.0", |
|
|
|
"@angular/platform-browser": "^12.1.0", |
|
|
|
"@angular/platform-browser-dynamic": "^12.1.0", |
|
|
|
"@angular/router": "^12.1.0", |
|
|
|
"rxjs": "~6.6.0", |
|
|
|
"tslib": "^2.0.0", |
|
|
|
"zone.js": "~0.11.4" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -56,7 +56,7 @@ async function* copyPackageFiles(packageName: string) { |
|
|
|
try { |
|
|
|
await fse.remove(`../dist/packages/${PACKAGE_TO_BUILD}`); |
|
|
|
|
|
|
|
await execa('yarn', ['install'], { cwd: '../packages/schematics' }); |
|
|
|
await execa('yarn', ['install'], { stdout: 'inherit', cwd: `../packages/${PACKAGE_TO_BUILD}` }); |
|
|
|
|
|
|
|
await execa( |
|
|
|
'tsc', |
|
|
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
import program from 'commander'; |
|
|
|
import execa from 'execa'; |
|
|
|
import fse from 'fs-extra'; |
|
|
|
|
|
|
|
(async () => { |
|
|
|
program.option('-i, --noInstall', 'skip updating package.json and installation', false); |
|
|
|
@ -12,6 +13,8 @@ import execa from 'execa'; |
|
|
|
await execa('yarn', ['install'], { stdout: 'inherit', cwd: '../' }); |
|
|
|
} |
|
|
|
|
|
|
|
await fse.remove('../dist'); |
|
|
|
|
|
|
|
await execa( |
|
|
|
'yarn', |
|
|
|
[ |
|
|
|
|