UNPKG

jquery.modal-box

Version:

The light weight modal plugin with css3 animations for jQuery

103 lines (89 loc) 2.34 kB
module.exports = function( grunt ) { grunt.initConfig( { // Import package manifest pkg: grunt.file.readJSON( "package.json" ), // Banner definitions 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.license %> License\n" + " */\n" }, // Concat definitions concat: { options: { banner: "<%= meta.banner %>" }, dist: { src: [ "src/jquery.modalBox.js" ], dest: "dist/jquery.modalBox.js" } }, // Lint definitions jshint: { files: [ "src/jquery.modalBox.js" ], options: { jshintrc: ".jshintrc" } }, jscs: { src: "src/**/*.js", options: { config: ".jscsrc" } }, // Minify definitions uglify: { dist: { src: [ "dist/jquery.modalBox.js" ], dest: "dist/jquery.modalBox.min.js" }, options: { banner: "<%= meta.banner %>" } }, cssmin: { options: { mergeIntoShorthands: false, roundingPrecision: -1 }, target: { files: { 'dist/jquery.modalBox.min.css': ['dist/jquery.modalBox.css'] } } }, sass: { dist: { options: { style: 'expanded' }, files: { 'dist/jquery.modalBox.css': 'src/jquery.modalBox.scss' } } }, // watch for changes to source // Better than calling grunt a million times // (call 'grunt watch') watch: { files: [ "src/*" ], tasks: [ "default" ] } } ); grunt.loadNpmTasks( "grunt-contrib-sass" ); grunt.loadNpmTasks( "grunt-contrib-cssmin" ); grunt.loadNpmTasks( "grunt-contrib-concat" ); grunt.loadNpmTasks( "grunt-contrib-jshint" ); grunt.loadNpmTasks( "grunt-jscs" ); grunt.loadNpmTasks( "grunt-contrib-uglify" ); grunt.loadNpmTasks( "grunt-contrib-watch" ); grunt.registerTask( "travis", [ "jshint" ] ); grunt.registerTask( "lint", [ "jshint", "jscs" ] ); grunt.registerTask( "build", [ "concat", "uglify", "sass", "cssmin" ] ); grunt.registerTask( "default", [ "jshint", "build" ] ); };