From 75e3579e3d07c4af37618052fae759c767695a60 Mon Sep 17 00:00:00 2001 From: Austin Pray Date: Sat, 11 Apr 2015 13:16:41 -0500 Subject: [PATCH] Switch from yargs to minimist For our simple usecase we do not need the extra functionality of yargs. This removes 4 dependencies from our dependency graph. https://github.com/bcoe/yargs https://github.com/substack/minimist --- CHANGELOG.md | 1 + gulpfile.js | 2 +- package.json | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23095ca..0ec406f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * Remove `$content_width` ([#1417](https://github.com/roots/sage/issues/1417)) * Lowercase `X-UA-Compatible` ([#1409](https://github.com/roots/sage/issues/1409)) * Remove mention of Google Analytics from the config ([#1384](https://github.com/roots/sage/issues/1384)) +* Switch from [yargs](https://github.com/bcoe/yargs) to [minimist](https://github.com/substack/minimist) ### 8.1.1: March 31st, 2015 * Remove pleeease dependency in favor of vanilla gulp-autoprefixer and gulp-minify-css ([#1402](https://github.com/roots/sage/issues/1402)) diff --git a/gulpfile.js b/gulpfile.js index 0025249..48aef3b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,7 +1,7 @@ // ## Globals /*global $:true*/ var $ = require('gulp-load-plugins')(); -var argv = require('yargs').argv; +var argv = require('minimist')(process.argv.slice(2)); var browserSync = require('browser-sync'); var gulp = require('gulp'); var lazypipe = require('lazypipe'); diff --git a/package.json b/package.json index 5cd54f0..56476a7 100644 --- a/package.json +++ b/package.json @@ -51,9 +51,9 @@ "jshint-stylish": "^1.0.1", "lazypipe": "^0.2.2", "merge-stream": "^0.1.7", + "minimist": "^1.1.1", "run-sequence": "^1.0.2", "traverse": "^0.6.6", - "wiredep": "^2.2.2", - "yargs": "^3.6.0" + "wiredep": "^2.2.2" } }