Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-postcss

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-postcss - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

3

index.js
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"
}
}

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc