mirror of https://github.com/abpframework/abp.git
3 changed files with 24 additions and 1 deletions
@ -0,0 +1,21 @@ |
|||||
|
// ESM syntax is supported.
|
||||
|
import execa from 'execa'; |
||||
|
import fse from 'fs-extra'; |
||||
|
|
||||
|
(async () => { |
||||
|
await execa('yarn', ['install', '--ignore-scripts'], { |
||||
|
stdout: 'inherit', |
||||
|
cwd: '../../../templates/app/angular', |
||||
|
}); |
||||
|
|
||||
|
await fse.remove('../../../templates/app/angular/node_modules/@abp'); |
||||
|
|
||||
|
await fse.copy('../node_modules/@abp', '../../../templates/app/angular/node_modules/@abp', { |
||||
|
overwrite: true, |
||||
|
}); |
||||
|
|
||||
|
await execa('yarn', ['ng', 'build', '--prod'], { |
||||
|
stdout: 'inherit', |
||||
|
cwd: '../../../templates/app/angular', |
||||
|
}); |
||||
|
})(); |
||||
Loading…
Reference in new issue