node-sass-import
Advanced tools
Comparing version 1.1.1 to 2.0.0
@@ -100,9 +100,7 @@ 'use strict'; | ||
// '@import' statements. | ||
async.parallel( | ||
urls.map(function (url) { | ||
return function (callback) { | ||
resolver(url, baseDir, callback); | ||
}; | ||
}) | ||
, function (err, filenames) { | ||
async.parallel(urls.map(function (url) { | ||
return function (callback) { | ||
resolver(url, baseDir, callback); | ||
}; | ||
}), function (err, filenames) { | ||
if (err) throw err; | ||
@@ -109,0 +107,0 @@ done(importify(filenames)); |
{ | ||
"name": "node-sass-import", | ||
"version": "1.1.1", | ||
"description": "Allows usage of @include (of .scss) akin to require (of .js) in node.js", | ||
"version": "2.0.0", | ||
"description": "Allows recursive import of SCSS components from local and/or node_modules directories using npm's module resolving algorithm", | ||
"bugs": "https://github.com/anarh/node-sass-import/issues", | ||
"author": "Emmanuel (Manny) Narh <eanarh@yahoo.com>", | ||
"author": "Emmanuel Addo Narh <eanarh@yahoo.com>", | ||
"license": "MIT", | ||
@@ -30,27 +30,33 @@ "main": "index.js", | ||
"dependencies": { | ||
"async": "2.0.1", | ||
"glob": "^6.0.4", | ||
"path-format": "^1.2.1", | ||
"path-parse": "^1.0.5", | ||
"resolve": "^1.1.7", | ||
"yargs": "^3.15.0" | ||
"async": "2.6.0", | ||
"glob": "7.1.2", | ||
"path-format": "1.2.1", | ||
"path-parse": "1.0.5", | ||
"resolve": "1.5.0", | ||
"yargs": "11.0.0" | ||
}, | ||
"devDependencies": { | ||
"coveralls": "^2.11.2", | ||
"istanbul": "^0.3.8", | ||
"tape": "^4.0.1", | ||
"tap-spec": "^4.0.2", | ||
"gaze-cli": "^0.2.0", | ||
"semistandard": "^7.0.5", | ||
"demo-scss-npm-module": "^0.0.3", | ||
"node-sass": "^3.8.0" | ||
"@commitlint/cli": "6.1.0", | ||
"@commitlint/config-conventional": "6.1.0", | ||
"coveralls": "3.0.0", | ||
"demo-scss-npm-module": "0.0.3", | ||
"gaze-cli": "0.2.0", | ||
"husky": "0.14.3", | ||
"istanbul": "0.4.5", | ||
"node-sass": "4.7.2", | ||
"semistandard": "12.0.0", | ||
"standard-version": "4.3.0", | ||
"tap-spec": "4.1.1", | ||
"tape": "4.9.0" | ||
}, | ||
"scripts": { | ||
"prepublish": "npm run lint && npm test", | ||
"commitmsg": "commitlint -e $GIT_PARAMS", | ||
"istanbul": "istanbul cover test/index.js", | ||
"lint": "semistandard", | ||
"prepublish": "npm run lint && npm test", | ||
"release": "standard-version", | ||
"start": "npm run test:watch", | ||
"test": "node test/index.js | tap-spec", | ||
"test:watch": "gaze 'npm test' 'test/**/*.js' 'lib/**/*.js' 'index.js'", | ||
"start": "npm run test:watch" | ||
"test:watch": "gaze 'npm test' 'test/**/*.js' 'lib/**/*.js' 'index.js'" | ||
} | ||
} |
@@ -5,2 +5,3 @@ # node-sass-import | ||
Allows recursive import of SCSS components from local and/or node_modules directories using npm's module resolving algorithm. Without the need for tildes(~) to import from node_modules. | ||
Allows usage of `@import "some-sass-npm-module"` akin to `require("some-npm-module")` in node.js | ||
@@ -37,3 +38,3 @@ | ||
@import in sass can now be used just like a require statement. The example below imports the main scss file from the newsapps-syles npm module. At build time, all @import statements will be resolved locally or like npm modules. Also includes support for partial (e.g. _partial.scss). | ||
@import in sass can now be used just like a require statement. The example below imports the main scss file from the newsapps-syles npm module. At build time, all @import statements will be resolved locally or like npm modules. Also includes import support for partial scss files e.g. _partial.scss | ||
@@ -50,3 +51,3 @@ ```scss | ||
Coming soon... | ||
Version 2+ supports Node 6+ and npm 2+ | ||
@@ -53,0 +54,0 @@ ## License |
8738
6
63
12
100
+ Addedansi-regex@3.0.1(transitive)
+ Addedasync@2.6.0(transitive)
+ Addedcamelcase@4.1.0(transitive)
+ Addedcliui@4.1.0(transitive)
+ Addedcross-spawn@5.1.0(transitive)
+ Addedexeca@0.7.0(transitive)
+ Addedfind-up@2.1.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedget-caller-file@1.0.3(transitive)
+ Addedget-stream@3.0.0(transitive)
+ Addedglob@7.1.2(transitive)
+ Addedis-fullwidth-code-point@2.0.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedlocate-path@2.0.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedmem@1.1.0(transitive)
+ Addedmimic-fn@1.2.0(transitive)
+ Addednpm-run-path@2.0.2(transitive)
+ Addedos-locale@2.1.0(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedp-limit@1.3.0(transitive)
+ Addedp-locate@2.0.0(transitive)
+ Addedp-try@1.0.0(transitive)
+ Addedpath-exists@3.0.0(transitive)
+ Addedpath-key@2.0.1(transitive)
+ Addedpath-parse@1.0.5(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedrequire-main-filename@1.0.1(transitive)
+ Addedresolve@1.5.0(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstring-width@2.1.1(transitive)
+ Addedstrip-ansi@4.0.0(transitive)
+ Addedstrip-eof@1.0.0(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedwhich-module@2.0.1(transitive)
+ Addedyallist@2.1.2(transitive)
+ Addedyargs@11.0.0(transitive)
+ Addedyargs-parser@9.0.2(transitive)
- Removedasync@2.0.1(transitive)
- Removedcamelcase@2.1.1(transitive)
- Removedcliui@3.2.0(transitive)
- Removedglob@6.0.4(transitive)
- Removedis-core-module@2.16.1(transitive)
- Removedos-locale@1.4.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedresolve@1.22.10(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedwindow-size@0.1.4(transitive)
- Removedyargs@3.32.0(transitive)
Updatedasync@2.6.0
Updatedglob@7.1.2
Updatedpath-format@1.2.1
Updatedpath-parse@1.0.5
Updatedresolve@1.5.0
Updatedyargs@11.0.0