소스 검색

Remove minimist dependency

Vladimir Kutepov 9 년 전
부모
커밋
76f6ff6fe2
2개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 1
      package.json
  2. 2 4
      tools/config.js

+ 0 - 1
package.json

@@ -18,7 +18,6 @@
     "gulp-load-plugins": "^1.0.0-rc",
     "gulp-util": "^3.0.6",
     "lodash": "^3.10.1",
-    "minimist": "^1.1.3",
     "mkdirp": "^0.5.1",
     "mocha": "^2.2.5",
     "node-libs-browser": "^0.5.2",

+ 2 - 4
tools/config.js

@@ -5,13 +5,11 @@
  */
 
 import path from 'path';
-import minimist from 'minimist';
 import webpack from 'webpack';
 import merge from 'lodash/object/merge';
 
-const argv = minimist(process.argv.slice(2));
-const DEBUG = !argv.release;
-const VERBOSE = !!argv.verbose;
+const DEBUG = !process.argv.includes('release');
+const VERBOSE = process.argv.includes('verbose');
 const WATCH = global.watch;
 const SCRIPT_LOADERS = WATCH ? ['react-hot', 'babel'] : ['babel'];
 const AUTOPREFIXER_BROWSERS = [