From fbd57d67a76c3988dffcd6528334f85544ecec06 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 23 Sep 2018 07:57:07 -0700 Subject: [PATCH] remove yargs as dependency (#570) --- bin/build-sass.js | 3 +- bin/globalize-css.js | 3 +- package-lock.json | 223 ++----------------------------------------- package.json | 3 +- 4 files changed, 11 insertions(+), 221 deletions(-) diff --git a/bin/build-sass.js b/bin/build-sass.js index 52c51aa..5c80424 100755 --- a/bin/build-sass.js +++ b/bin/build-sass.js @@ -2,7 +2,6 @@ const sass = require('node-sass') const chokidar = require('chokidar') -const argv = require('yargs').argv const path = require('path') const debounce = require('lodash/debounce') const fs = require('fs') @@ -62,7 +61,7 @@ async function compileThemesSass () { async function main () { await Promise.all([compileGlobalSass(), compileThemesSass()]) - if (argv.watch) { + if (process.argv.includes('--watch')) { doWatch() } } diff --git a/bin/globalize-css.js b/bin/globalize-css.js index 07bf9f8..a2d1352 100755 --- a/bin/globalize-css.js +++ b/bin/globalize-css.js @@ -2,7 +2,6 @@ // Change all the Svelte CSS to just use globals everywhere, // to reduce CSS size and complexity. -const argv = require('yargs').argv const path = require('path') const fs = require('fs') const pify = require('pify') @@ -15,7 +14,7 @@ const selectorRegex = /\n[ \t\n]*([0-9\w\- \t\n.:#,]+?)[ \t\n]*{/g const styleRegex = /