1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- module.exports = function (grunt) {
- grunt.initConfig({
-
- pkg: grunt.file.readJSON("bootstrap-touchspin.jquery.json"),
-
- meta: {
- banner: "/*\n" +
- " * <%= pkg.title || pkg.name %> - v<%= pkg.version %>\n" +
- " * <%= pkg.description %>\n" +
- " * <%= pkg.homepage %>\n" +
- " *\n" +
- " * Made by <%= pkg.author.name %>\n" +
- " * Under <%= pkg.licenses[0].type %> License\n" +
- " */\n"
- },
-
- concat: {
- js: {
- src: ["src/jquery.bootstrap-touchspin.js"],
- dest: "dist/jquery.bootstrap-touchspin.js"
- },
- css: {
- src: ["src/jquery.bootstrap-touchspin.css"],
- dest: "dist/jquery.bootstrap-touchspin.css"
- },
- options: {
- banner: "<%= meta.banner %>"
- }
- },
-
- jshint: {
- files: ["src/jquery.bootstrap-touchspin.js"],
- options: {
- jshintrc: ".jshintrc"
- }
- },
-
- uglify: {
- js: {
- src: ["dist/jquery.bootstrap-touchspin.js"],
- dest: "dist/jquery.bootstrap-touchspin.min.js"
- },
- options: {
- banner: "<%= meta.banner %>"
- }
- },
- cssmin: {
- css: {
- src: ["dist/jquery.bootstrap-touchspin.css"],
- dest: "dist/jquery.bootstrap-touchspin.min.css"
- },
- options: {
- banner: "<%= meta.banner %>"
- }
- }
- });
- grunt.loadNpmTasks("grunt-contrib-concat");
- grunt.loadNpmTasks("grunt-contrib-jshint");
- grunt.loadNpmTasks("grunt-contrib-uglify");
- grunt.loadNpmTasks("grunt-contrib-cssmin");
- grunt.registerTask("default", ["jshint", "concat", "uglify", "cssmin"]);
- grunt.registerTask("travis", ["jshint"]);
- };
|