grunt-webpcss
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -11,3 +11,3 @@ /* | ||
module.exports = function(grunt) { | ||
module.exports = function (grunt) { | ||
// Project configuration. | ||
@@ -14,0 +14,0 @@ grunt.initConfig({ |
{ | ||
"name": "grunt-webpcss", | ||
"description": "Process css file to generate addition css ruless to add webp compatble\"", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"homepage": "https://github.com/lexich/grunt-webpcss", | ||
@@ -18,11 +18,6 @@ "author": { | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/lexich/grunt-webpcss/blob/master/LICENSE-MIT" | ||
} | ||
], | ||
"licenses": "MIT", | ||
"main": "Gruntfile.js", | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
"node": ">= 0.12.0" | ||
}, | ||
@@ -35,10 +30,10 @@ "scripts": { | ||
"devDependencies": { | ||
"grunt": "~0.4.0", | ||
"grunt": ">=0.4.0", | ||
"grunt-cli": "^0.1.13", | ||
"grunt-contrib-clean": "^0.7.0", | ||
"grunt-contrib-clean": "^1.0.0", | ||
"grunt-contrib-nodeunit": "~0.4.1", | ||
"jscs": "^2.1.1", | ||
"jshint": "^2.8.0", | ||
"jscs": "^2.10.1", | ||
"jshint": "^2.9.1", | ||
"jshint-stylish": "^2.0.1", | ||
"lodash": "^3.9.3" | ||
"lodash": "^3.9.0" | ||
}, | ||
@@ -52,5 +47,5 @@ "peerDependencies": { | ||
"dependencies": { | ||
"lodash": "^3.10.1", | ||
"lodash": "^4.5.0", | ||
"webpcss": "^1.1.0" | ||
} | ||
} |
@@ -13,4 +13,5 @@ "use strict"; | ||
module.exports = function(grunt) { | ||
grunt.registerMultiTask("webpcss", "Process css file to generate addition css ruless to add webp compatble", function() { | ||
module.exports = function (grunt) { | ||
grunt.registerMultiTask( | ||
"webpcss", "Process css file to generate addition css ruless to add webp compatble", function () { | ||
// Merge task-specific and/or target-specific options with these defaults. | ||
@@ -26,5 +27,5 @@ var options = this.options({ | ||
// Iterate over all specified file groups. | ||
this.files.forEach(function(f) { | ||
this.files.forEach(function (f) { | ||
// Concat specified files. | ||
var src = f.src.filter(function(filepath) { | ||
var src = f.src.filter(function (filepath) { | ||
// Warn on and remove invalid source files (if nonull was set). | ||
@@ -37,3 +38,3 @@ if (!grunt.file.exists(filepath)) { | ||
} | ||
}).map(function(filepath) { | ||
}).map(function (filepath) { | ||
// Read file source. | ||
@@ -44,3 +45,3 @@ return grunt.file.read(filepath); | ||
webpcss.transform(src, options) | ||
.then(function(res) { | ||
.then(function (res) { | ||
// Write the destination file. | ||
@@ -47,0 +48,0 @@ grunt.file.write(f.dest, res); |
@@ -6,7 +6,7 @@ "use strict"; | ||
exports.webpcss = { | ||
setUp: function(done) { | ||
setUp: function (done) { | ||
// setup here if necessary | ||
done(); | ||
}, | ||
default_options: function(test) { | ||
default_options: function (test) { | ||
test.expect(1); | ||
@@ -20,3 +20,3 @@ | ||
}, | ||
custom_options: function(test) { | ||
custom_options: function (test) { | ||
test.expect(1); | ||
@@ -23,0 +23,0 @@ |
Nonpermissive License
License(Experimental) A package's licensing information has fine-grained problems
Found 1 instance in 1 package
211
13546
1
- Removedlodash@3.10.1(transitive)
Updatedlodash@^4.5.0