units-css
Version:
Parse length and angle CSS values and convert between units
44 lines • 1.27 kB
JavaScript
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
jshint: {
all: [
"*.js",
"!isNumeric.min.js"
]
},
watch: {
files: [
"*.js",
"!isNumeric.min.js"
],
tasks: ["test"]
},
jasmine: {
src: "isNumeric.min.js",
options: {
specs: "spec.js"
}
},
uglify: {
my_target: {
files: {
"isNumeric.min.js": [
"isNumeric.js"
]
}
},
options: {
banner: "/*!\n " +
"<%= pkg.name %> (v<%= pkg.version %>) <%= grunt.template.today('dd-mm-yyyy') %>\n " +
"(c) <%= pkg.author %>\n" +
"*/\n"
}
}
});
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-jasmine");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.registerTask("test", ["jshint", "uglify", "jasmine"]);
};