Socket
Socket
Sign inDemoInstall

grunt-stylecow

Package Overview
Dependencies
63
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 3.0.0

39

package.json
{
"name": "grunt-stylecow",
"description": "Execute stylecow plugins with grunt",
"version": "2.1.0",
"version": "3.0.0",
"homepage": "https://github.com/stylecow/grunt-stylecow",

@@ -24,3 +24,3 @@ "author": {

"engines": {
"node": ">= 0.8.0"
"node": ">= 4.0.0"
},

@@ -43,20 +43,21 @@ "scripts": {

"dependencies": {
"stylecow-core": "^1.0.1",
"stylecow-plugin-calc": "^1.2.0",
"stylecow-plugin-color": "^4.2.0",
"stylecow-plugin-custom-media": "^1.1.0",
"stylecow-plugin-custom-selector": "^1.1.0",
"stylecow-plugin-extend": "^1.2.0",
"stylecow-plugin-fixes": "^4.1.0",
"stylecow-plugin-flex": "^4.1.0",
"stylecow-plugin-import": "^4.1.0",
"stylecow-plugin-matches": "^4.1.0",
"stylecow-plugin-msfilter-background-alpha": "^4.1.0",
"stylecow-plugin-msfilter-linear-gradient": "^4.1.0",
"stylecow-plugin-msfilter-transform": "^4.1.0",
"stylecow-plugin-nested-rules": "^4.2.0",
"stylecow-plugin-prefixes": "^4.2.0",
"stylecow-plugin-rem": "^4.1.0",
"stylecow-plugin-variables": "^4.2.0"
"stylecow-core": "^2.0.1",
"stylecow-plugin-calc": "^2.0.0",
"stylecow-plugin-color": "^5.0.0",
"stylecow-plugin-custom-media": "^2.0.0",
"stylecow-plugin-custom-selector": "^2.0.0",
"stylecow-plugin-extend": "^2.0.0",
"stylecow-plugin-fixes": "^5.0.0",
"stylecow-plugin-flex": "^6.0.0",
"stylecow-plugin-import": "^5.0.0",
"stylecow-plugin-matches": "^5.0.0",
"stylecow-plugin-msfilter-background-alpha": "^5.0.0",
"stylecow-plugin-msfilter-linear-gradient": "^5.0.0",
"stylecow-plugin-msfilter-transform": "^5.0.0",
"stylecow-plugin-nested-rules": "^5.0.0",
"stylecow-plugin-prefixes": "^6.0.0",
"stylecow-plugin-rem": "^5.0.0",
"stylecow-plugin-variables": "^5.0.0",
"stylecow-plugin-webkit-gradient": "^2.0.0"
}
}

@@ -16,6 +16,10 @@ /*

grunt.registerMultiTask('stylecow', 'Execute stylecow with grunt', function() {
var config = this.options({});
var config = this.options({}),
tasks = new stylecow.Tasks(),
coder = new stylecow.Coder(config.code);
coder.sourceMap(config.map || 'none');
if (config.support) {
stylecow.minSupport(config.support);
tasks.minSupport(config.support);
}

@@ -25,3 +29,3 @@

config.plugins.forEach(function (plugin) {
stylecow.loadNpmModule('stylecow-plugin-' + plugin);
tasks.use(require('stylecow-plugin-' + plugin));
});

@@ -32,3 +36,3 @@ }

config.modules.forEach(function (module) {
stylecow.loadNpmModule(module);
stylecow.use(require(module));
});

@@ -60,16 +64,11 @@ }

stylecow.run(css);
tasks.run(css);
var code = new stylecow.Coder(css, {
file: f.dest,
style: config.code,
previousSourceMap: config.previousSourceMap,
sourceMap: config.map
});
var code = coder.run(css, f.dest, undefined, config.previousSourceMap);
grunt.file.write(f.dest, code.code);
grunt.file.write(f.dest, code.css);
grunt.log.writeln('File "' + f.dest + '" created.');
if ((typeof config.map === 'string') && config.map !== 'embed') {
grunt.file.write(config.map, JSON.stringify(code.map));
if ((typeof config.map === 'string') && code.map) {
grunt.file.write(config.map, code.map);
grunt.log.writeln('File "' + config.map + '" created.');

@@ -76,0 +75,0 @@ }

@@ -16,3 +16,7 @@ {

"plugins": [
"calc",
"color",
"custom-media",
"custom-selector",
"extend",
"fixes",

@@ -22,2 +26,3 @@ "flex",

"import",
"matches",
"msfilter-background-alpha",

@@ -24,0 +29,0 @@ "msfilter-linear-gradient",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc