From d0db916f5333d101f46bd3cc1b5320f4fd2da196 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Thu, 19 Jan 2017 18:20:47 -0500 Subject: [PATCH] chore(scripts): update app-scripts to run via node, remove snapshot clean --- scripts/gulp/tasks/snapshot.ts | 4 ++-- scripts/gulp/util.ts | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/gulp/tasks/snapshot.ts b/scripts/gulp/tasks/snapshot.ts index f487a76736..3902048615 100644 --- a/scripts/gulp/tasks/snapshot.ts +++ b/scripts/gulp/tasks/snapshot.ts @@ -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); }); diff --git a/scripts/gulp/util.ts b/scripts/gulp/util.ts index 875f5bdcc0..dc23233995 100644 --- a/scripts/gulp/util.ts +++ b/scripts/gulp/util.ts @@ -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());