mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(scripts): update app-scripts to run via node, remove snapshot clean
This commit is contained in:
@ -11,7 +11,7 @@ import { DIST_E2E_ROOT, DIST_E2E_COMPONENTS_ROOT, PROJECT_ROOT, SCRIPTS_ROOT } f
|
||||
import { mergeObjects } from '../util';
|
||||
|
||||
|
||||
task('snapshot', ['e2e.clean', 'e2e.prod'], (done: Function) => {
|
||||
task('snapshot', ['e2e.prod'], (done: Function) => {
|
||||
snapshot(false, false, done);
|
||||
});
|
||||
|
||||
@ -19,7 +19,7 @@ task('snapshot.skipBuild', ['e2e.sass'], (done: Function) => {
|
||||
snapshot(false, false, done);
|
||||
});
|
||||
|
||||
task('snapshot.dev', ['e2e.clean', 'e2e'], (done: Function) => {
|
||||
task('snapshot.dev', ['e2e'], (done: Function) => {
|
||||
snapshot(false, true, done);
|
||||
});
|
||||
|
||||
|
@ -196,10 +196,9 @@ export function runAppScripts(folderInfo: any, sassConfigPath: string, appEntryP
|
||||
scriptArgs.push('--debug');
|
||||
}
|
||||
|
||||
console.log('$ ionic-app-scripts', scriptArgs.join(' '));
|
||||
|
||||
try {
|
||||
const scriptsCmd = spawnSync('ionic-app-scripts', scriptArgs);
|
||||
console.log('$ node ./node_modules/.bin/ionic-app-scripts', scriptArgs.join(' '));
|
||||
const scriptsCmd = spawnSync('node', ['./node_modules/.bin/ionic-app-scripts'].concat(scriptArgs));
|
||||
|
||||
if (scriptsCmd.status !== 0) {
|
||||
console.log(scriptsCmd.stderr.toString());
|
||||
|
Reference in New Issue
Block a user