angular-ie-cli
Advanced tools
+9
-3
@@ -6,3 +6,5 @@ #!/usr/bin/env node | ||
| const ora = require('ora'); | ||
| const spinner = ora(); | ||
| const spinner = ora({ | ||
| discardStdin: process.platform !== 'win32' | ||
| }); | ||
| const fs = require('fs'); | ||
@@ -21,4 +23,9 @@ const path = require('path'); | ||
| } | ||
| const packager = process.platform === 'win32' ? 'npm.cmd' : 'cmd'; | ||
| const shell = `${shellPrefix}npm i classlist.js web-animations-js core-js babel-polyfill`; | ||
| const npmProcess = child_process.exec(shell, {cwd: path.resolve(process.cwd())},(err, stderr,stdout) => { | ||
| const npmProcess = child_process.spawn(packager, ['install', 'classlist.js', 'web-animations-js', 'core-js', 'babel-polyfill'], { | ||
| cwd: path.resolve(process.cwd()), | ||
| shell: true, | ||
| stdio: 'inherit' | ||
| },(err, stderr,stdout) => { | ||
| if (!err) { | ||
@@ -34,3 +41,2 @@ spinner.start('\n Updating configuration... \n'); | ||
| npmProcess.stdout.pipe(process.stdout); | ||
| npmProcess.stdin.pipe(process.stdin); | ||
@@ -37,0 +43,0 @@ function readAngularJson() { |
+1
-1
| { | ||
| "name": "angular-ie-cli", | ||
| "version": "0.0.29", | ||
| "version": "0.0.30", | ||
| "description": "patch your angular project to support IE browser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11147
1.89%249
2.47%