From 0685c0b8b4dc31c28d4feb4397a5cd9f4c9f1513 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Thu, 10 Nov 2016 10:53:04 -0600 Subject: [PATCH] fix(watch): remove shorthand arg for watch remove shorthand arg for watch Removes the shorthand argument for watch command due to collision with webpack. Closes #290 --- README.md | 1 + src/util/config.ts | 2 +- src/watch.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fa937471..7f6027c1 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ npm run build --rollup ./config/rollup.config.js | Sass | `ionic_sass` | `--sass` or `-s` | | TSLint | `ionic_tslint` | `--tslint` or `-i` | | UglifyJS | `ionic_uglifyjs` | `--uglifyjs` or `-u` | +| Watch | `ionic_watch` | `--watch` | | Webpack | `ionic_webpack` | `--webpack` or `-w` | diff --git a/src/util/config.ts b/src/util/config.ts index 4c249048..e8e6366a 100644 --- a/src/util/config.ts +++ b/src/util/config.ts @@ -55,7 +55,7 @@ export function generateContext(context?: BuildContext): BuildContext { setIonicEnvironment(context.isProd); if (typeof context.isWatch !== 'boolean') { - context.isWatch = hasArg('--watch', '-w'); + context.isWatch = hasArg('--watch'); } context.inlineTemplates = true; diff --git a/src/watch.ts b/src/watch.ts index d1c4ccb2..d6dfaae9 100644 --- a/src/watch.ts +++ b/src/watch.ts @@ -262,7 +262,7 @@ export function runBuildUpdate(context: BuildContext, changedFiles: ChangedFile[ const taskInfo: TaskInfo = { fullArg: '--watch', - shortArg: '-w', + shortArg: null, envVar: 'IONIC_WATCH', packageConfig: 'ionic_watch', defaultConfigFile: 'watch.config'