]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
chore: replace "multiline" dependency by "strip-indent"
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 24 Oct 2018 19:41:39 +0000 (21:41 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Wed, 24 Oct 2018 19:41:39 +0000 (21:41 +0200)
customizer/lib/sass.js
package.json

index 1df0a10712081258c28f5ea8d95e3cc21b61bd2d..6ee0abb2c8d9cfe0f745e4ce3f734b87c68ee798 100644 (file)
@@ -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.
index 1b81cb12bd3e8cf6e304f17646f603559504f316..a9b4fec275426c3e0680bf853553203de2e29ac3 100644 (file)
@@ -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",