|
|
|
@ -2,10 +2,10 @@ import execa from 'execa'; |
|
|
|
import fse from 'fs-extra'; |
|
|
|
|
|
|
|
(async () => { |
|
|
|
await execa('yarn', ['ng', 'build', '--prod'], { |
|
|
|
stdout: 'inherit', |
|
|
|
cwd: '..', |
|
|
|
}); |
|
|
|
// await execa('yarn', ['ng', 'build', '--prod'], {
|
|
|
|
// stdout: 'inherit',
|
|
|
|
// cwd: '..',
|
|
|
|
// });
|
|
|
|
|
|
|
|
await execa('yarn', ['install', '--ignore-scripts'], { |
|
|
|
stdout: 'inherit', |
|
|
|
@ -13,11 +13,19 @@ import fse from 'fs-extra'; |
|
|
|
}); |
|
|
|
|
|
|
|
await fse.remove('../../../templates/app/angular/node_modules/@abp'); |
|
|
|
|
|
|
|
await fse.copy('../node_modules/@abp', '../../../templates/app/angular/node_modules/@abp', { |
|
|
|
overwrite: true, |
|
|
|
}); |
|
|
|
|
|
|
|
// TODO: Will be removed in v3.1, it is added to fix the prod build error
|
|
|
|
await fse.copy( |
|
|
|
'../node_modules/@swimlane', |
|
|
|
'../../../templates/app/angular/node_modules/@swimlane', |
|
|
|
{ |
|
|
|
overwrite: true, |
|
|
|
}, |
|
|
|
); |
|
|
|
|
|
|
|
await execa('yarn', ['ng', 'build', '--prod'], { |
|
|
|
stdout: 'inherit', |
|
|
|
cwd: '../../../templates/app/angular', |
|
|
|
|