fix(angular): ionic/core is only a dep

This commit is contained in:
Manu Mtz.-Almeida
2018-09-25 22:07:12 +02:00
parent a74fd6f414
commit 236d8a41e8
4 changed files with 45 additions and 90 deletions

View File

@ -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();