grunt-modernizr
Advanced tools
Comparing version 0.1.0 to 0.1.1
29
grunt.js
@@ -32,30 +32,3 @@ module.exports = function(grunt) { | ||
}, | ||
modernizr: { | ||
// parseFiles: false, | ||
uglify: false, | ||
// Path to the build you're using for development. | ||
"devFile" : "lib/modernizr-dev.js", | ||
// Path to save out the built file | ||
"outputFile" : "build/modernizr-custom.js", | ||
"tests" : ["foo", "random", "csstransforms", "css_displayrunin"], | ||
// "matchCommunityTests" : true, | ||
"customTests" : ["lib/tests/**/*"], | ||
"excludeFiles" : ["lib/cache/**/*"], | ||
"extra" : { | ||
"mq" : true, | ||
"cssclasses" : false | ||
}, | ||
"extensibility" : { | ||
testprops : true | ||
} | ||
} | ||
modernizr: {} | ||
}); | ||
@@ -62,0 +35,0 @@ |
@@ -416,2 +416,3 @@ var Gruntifier = function (grunt, done, bust) { | ||
downloadErrors = this.downloadErrors, | ||
filename = grunt.template.process(config.outputFile), | ||
errorText, i, j; | ||
@@ -431,7 +432,7 @@ | ||
// Write! | ||
grunt.file.write(config.outputFile, build); | ||
grunt.file.write(filename, build); | ||
// All set. | ||
grunt.log.writeln(); | ||
grunt.log.ok("Wrote file to " + config.outputFile); | ||
grunt.log.ok("Wrote file to " + filename); | ||
@@ -438,0 +439,0 @@ if (downloadErrors.length) { |
{ | ||
"name": "grunt-modernizr", | ||
"description": "Build out a lean, mean Modernizr machine.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/doctyper/grunt-modernizr", | ||
@@ -29,3 +29,3 @@ "author": { | ||
}, | ||
"dependencies" : { | ||
"dependencies": { | ||
"uglify-js": ">=1.3.3", | ||
@@ -39,4 +39,5 @@ "promised-io": ">=0.3.0", | ||
"keywords": [ | ||
"gruntplugin", "modernizr" | ||
"gruntplugin", | ||
"modernizr" | ||
] | ||
} |
# grunt-modernizr | ||
##### *tl;dr:* `grunt-modernizr` sifts through your project files, gathers up your references to Modernizr tests and outputs a lean, mean Modernizr machine. | ||
`grunt-modernizr` is a Modernizr builder for your project. It is based on the Modernizr team's [Modulizr](https://github.com/Modernizr/modernizr.com/blob/gh-pages/i/js/modulizr.js) tool. | ||
@@ -7,3 +9,3 @@ | ||
When you're ready to build, `grunt-modernizr` will crawl your project for Modernizr test references and save out a minified, uglified, customized version, using only the tests you've used in your JavaScript or (S)CSS. | ||
When you're ready to build, `grunt-modernizr` will crawl your project for Modernizr test references and save out a minified, uglified, customized version using only the tests you've used in your JavaScript or (S)CSS. | ||
@@ -10,0 +12,0 @@ ## Getting Started |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
133
0
417059
5318
1