fix(angular): ionic/core is only a dep · ModusCreateOrg/ionic@236d8a4 · GitHub
Skip to content

Commit 236d8a4

Browse files
committed
fix(angular): ionic/core is only a dep
1 parent a74fd6f commit 236d8a4

4 files changed

Lines changed: 45 additions & 90 deletions

File tree

‎angular/package.json‎

Lines changed: 1 addition & 1 deletion

‎angular/scripts/build-core.js‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,6 @@ const spawn = require('child_process').spawn;
44

55
const stencilPath = path.join(__dirname, '..', '..', 'core', 'node_modules', '.bin');
66

7-
8-
function buildIonicAngular() {
9-
return new Promise((resolve, reject) => {
10-
11-
const cmd = 'stencil';
12-
const args = [
13-
'build',
14-
'--config',
15-
path.join(__dirname, '..', 'stencil.config.js'),
16-
...process.argv.slice(2)
17-
];
18-
19-
const p = spawn('./stencil', args, { cwd: stencilPath, stdio: 'inherit' });
20-
p.on('close', (code) => {
21-
if (code > 0) {
22-
console.log(`@ionic/angular build exited with ${code}`);
23-
reject();
24-
} else {
25-
resolve();
26-
}
27-
});
28-
});
29-
}
30-
317
function copyIonicons() {
328
const src = path.join(__dirname, '..', '..', 'core', 'node_modules', 'ionicons');
339
const dst = path.join(__dirname, '..', 'node_modules', 'ionicons');
@@ -46,4 +22,3 @@ function copyCSS() {
4622

4723
copyIonicons();
4824
copyCSS();
49-
buildIonicAngular();

‎angular/stencil.config.js‎

Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 44 additions & 2 deletions

0 commit comments

Comments
 (0)