From: Nicolas Coden Date: Wed, 24 Oct 2018 19:41:39 +0000 (+0200) Subject: chore: replace "multiline" dependency by "strip-indent" X-Git-Tag: v6.6.0~3^2~75^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c60031cdd;p=thirdparty%2Ffoundation%2Ffoundation-sites.git chore: replace "multiline" dependency by "strip-indent" --- diff --git a/customizer/lib/sass.js b/customizer/lib/sass.js index 1df0a1071..6ee0abb2c 100644 --- a/customizer/lib/sass.js +++ b/customizer/lib/sass.js @@ -1,8 +1,8 @@ var empty = require('is-empty-object'); var format = require('util').format; -var multiline = require('multiline').stripIndent; +var stripIndent = require('strip-indent'); -var SASS_TEMPLATE = multiline(function() {/* +var SASS_TEMPLATE = stripIndent(` @charset 'utf-8'; // Variables go here @@ -18,7 +18,7 @@ var SASS_TEMPLATE = multiline(function() {/* // Motion UI goes here @include motion-ui-transitions; @include motion-ui-animations; -*/}); +`); /** * Generates an entry point Sass file with a custom list of CSS exports and Sass variables. diff --git a/package.json b/package.json index 1b81cb12b..a9b4fec27 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,6 @@ "mocha": "^5.0.5", "mocha-headless-chrome": "^2.0.0", "motion-ui": "^2.0.2", - "multiline": "^1.0.2", "octophant": "^1.0.0", "panini": "^1.6.2", "parker": "^1.0.0-alpha.0", @@ -94,6 +93,7 @@ "sass-true": "^4.0.0", "sassy-lists": "^3.0.1", "sinon": "^6.0.0", + "strip-indent": "^2.0.0", "supercollider": "^1.4.4", "touch": "^3.1.0", "undertaker-forward-reference": "^1.0.2",