broccoli-postcss
Advanced tools
Comparing version 1.3.1 to 1.3.2
var path = require('path'); | ||
var fs = require('fs'); | ||
var mkdirp = require('mkdirp'); | ||
var assign = require("object-assign"); | ||
var CachingWriter = require('broccoli-caching-writer'); | ||
@@ -46,3 +47,3 @@ var postcss = require('postcss'); | ||
this.plugins.forEach(function (plugin) { | ||
var pluginOptions = plugin.options || {}; | ||
var pluginOptions = assign(options, plugin.options || {}); | ||
processor.use(plugin.module(pluginOptions)); | ||
@@ -49,0 +50,0 @@ }); |
{ | ||
"name": "broccoli-postcss", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Postcss compiler for Broccoli", | ||
@@ -16,4 +16,4 @@ "main": "index.js", | ||
"css", | ||
"postcss-runner", | ||
"postcss" | ||
"postcss", | ||
"postcss-runner" | ||
], | ||
@@ -29,9 +29,12 @@ "author": "Jeff Jewiss <jeffjewiss@gmail.com>", | ||
"mkdirp": "^0.5.0", | ||
"object-assign": "^3.0.0", | ||
"postcss": "^4.1.9" | ||
}, | ||
"devDependencies": { | ||
"async": "^1.2.1", | ||
"broccoli": "^0.15.3", | ||
"mocha": "*", | ||
"postcss-pseudoelements": "^2.1.1", | ||
"broccoli": "^0.15.3", | ||
"mocha": "*" | ||
"rimraf": "^2.4.0" | ||
} | ||
} |
21
test.js
@@ -7,2 +7,5 @@ var assert = require('assert'); | ||
var postcss = require('postcss'); | ||
var rimraf = require('rimraf'); | ||
var glob = require('glob'); | ||
var async = require('async'); | ||
@@ -15,2 +18,11 @@ var basicPluginSet = [ | ||
var optionsPluginSet = [ | ||
{ | ||
module: require('postcss-pseudoelements'), | ||
options: { | ||
to: 'newOutput.css' | ||
} | ||
} | ||
]; | ||
var testWarnPluginSet = [ | ||
@@ -42,5 +54,10 @@ { | ||
afterEach(function () { | ||
glob('tmp/*', function(er,files){ | ||
if(er) console.error(er) | ||
else async.forEach(files, rimraf) | ||
}) | ||
}); | ||
it('should process css', function () { | ||
var outputTree = postcssCompiler(['fixture'], 'fixture.css', 'output.css', basicPluginSet, map); | ||
@@ -47,0 +64,0 @@ outputTree.warningStream = warningStreamStub; |
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
9605
155
4
5
+ Addedobject-assign@^3.0.0
+ Addedobject-assign@3.0.0(transitive)