sass-graph
Advanced tools
Comparing version 1.1.0 to 1.2.0
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
## [next] | ||
### Features | ||
### Fixed | ||
### Tests | ||
## [1.2.0] | ||
### Features | ||
- Add support for custom imports | ||
## [1.1.0] - 2015-03-18 | ||
### Fixed | ||
- Only strip extension for css, scss, sass files | ||
## [1.0.4] - 2015-03-03 | ||
@@ -5,0 +20,0 @@ ### Tests |
{ | ||
"name": "sass-graph", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Parse sass files and extract a graph of imports", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -26,4 +26,5 @@ 'use strict'; | ||
} | ||
var errMsg = "File to import not found or unreadable: " + sassPath; | ||
throw errMsg; | ||
// File to import not found or unreadable so we assume this is a custom import | ||
return false | ||
} | ||
@@ -64,3 +65,3 @@ | ||
var resolved = resolveSassPath(imports[i], _.uniq(this.loadPaths)); | ||
if (!resolved) return false; | ||
if (!resolved) continue; | ||
@@ -67,0 +68,0 @@ // recurse into dependencies if not already enumerated |
@@ -17,3 +17,6 @@ | ||
'j.scss': fixtures + "/j.scss", | ||
'k.l.scss': fixtures + "/components/k.l.scss" | ||
'k.l.scss': fixtures + "/components/k.l.scss", | ||
'm.scss': fixtures + "/m.scss", | ||
'_n.scss': fixtures + "/compass/_n.scss", | ||
'_compass.scss': fixtures + "/components/_compass.scss" | ||
} | ||
@@ -49,2 +52,6 @@ | ||
it('should ignore custom imports for m.scss', function() { | ||
assert.deepEqual([files['_compass.scss'] , files['_n.scss']], graph.index[files['m.scss']].imports); | ||
}); | ||
it('should traverse ancestors of _c.scss', function() { | ||
@@ -51,0 +58,0 @@ ancestors = []; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16648
26
297