broccoli-themer
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -19,2 +19,3 @@ 'use strict'; | ||
this.selectors = selectors; | ||
this.inputTree = inputTree; | ||
@@ -25,2 +26,4 @@ this.outputFile = outputFile; | ||
Themer.prototype.write = function (readTree, destDir) { | ||
var selectors = this.selectors; | ||
var destFile = destDir + '/' + this.outputFile + '.json'; | ||
@@ -31,3 +34,3 @@ mkdirp.sync(path.dirname(destFile)); | ||
glob.sync('**/*.css', {cwd: srcDir}).forEach(function (file) { | ||
generateSelectorMap(srcDir + '/' + file, destFile); | ||
generateSelectorMap(srcDir + '/' + file, selectors, destFile); | ||
}); | ||
@@ -37,3 +40,3 @@ }); | ||
function generateSelectorMap(srcFile, destFile) { | ||
function generateSelectorMap(srcFile, selectors, destFile) { | ||
var contents, selectorMap, match; | ||
@@ -40,0 +43,0 @@ |
{ | ||
"name": "broccoli-themer", | ||
"description": "Generate JSON hashmap of css selectors for theming.", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "http://github.com/chrisvariety/broccoli-themer", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/chrisvariety/broccoli-themer.git", |
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
3596
41