mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
fix(angular): ionic/core is only a dep
This commit is contained in:
25
angular/scripts/build-core.js
vendored
25
angular/scripts/build-core.js
vendored
@ -4,30 +4,6 @@ const spawn = require('child_process').spawn;
|
||||
|
||||
const stencilPath = path.join(__dirname, '..', '..', 'core', 'node_modules', '.bin');
|
||||
|
||||
|
||||
function buildIonicAngular() {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
const cmd = 'stencil';
|
||||
const args = [
|
||||
'build',
|
||||
'--config',
|
||||
path.join(__dirname, '..', 'stencil.config.js'),
|
||||
...process.argv.slice(2)
|
||||
];
|
||||
|
||||
const p = spawn('./stencil', args, { cwd: stencilPath, stdio: 'inherit' });
|
||||
p.on('close', (code) => {
|
||||
if (code > 0) {
|
||||
console.log(`@ionic/angular build exited with ${code}`);
|
||||
reject();
|
||||
} else {
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function copyIonicons() {
|
||||
const src = path.join(__dirname, '..', '..', 'core', 'node_modules', 'ionicons');
|
||||
const dst = path.join(__dirname, '..', 'node_modules', 'ionicons');
|
||||
@ -46,4 +22,3 @@ function copyCSS() {
|
||||
|
||||
copyIonicons();
|
||||
copyCSS();
|
||||
buildIonicAngular();
|
||||
|
Reference in New Issue
Block a user