diff options
author | Victor Häggqvist <[email protected]> | 2014-06-26 17:35:14 +0200 |
---|---|---|
committer | Victor Häggqvist <[email protected]> | 2014-06-26 17:35:14 +0200 |
commit | 73cab567a3d6805bb9cfc053a5590110cecc014f (patch) | |
tree | b6d1803417be096f11902240a822a854d656a225 /Gruntfile.js | |
parent | 80e5ed5361953461aa666d2e7ff427fad613975f (diff) |
build
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 75 |
1 files changed, 18 insertions, 57 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 29f310a..16905d1 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -11,58 +11,13 @@ module.exports = function(grunt) { '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n', // Task configuration. - concat: { - options: { - banner: '<%= banner %>', - stripBanners: true - }, - dist: { - src: ['lib/<%= pkg.name %>.js'], - dest: 'dist/<%= pkg.name %>.js' - } - }, - uglify: { - options: { - banner: '<%= banner %>' - }, - dist: { - src: '<%= concat.dist.dest %>', - dest: 'dist/<%= pkg.name %>.min.js' - } - }, - jshint: { - options: { - curly: true, - eqeqeq: true, - immed: true, - latedef: true, - newcap: true, - noarg: true, - sub: true, - undef: true, - unused: true, - boss: true, - eqnull: true, - browser: true, - globals: { - jQuery: true - } - }, - gruntfile: { - src: 'Gruntfile.js' - }, - lib_test: { - src: ['lib/**/*.js', 'test/**/*.js'] - } - }, watch: { - gruntfile: { - files: '<%= jshint.gruntfile.src %>', - tasks: ['jshint:gruntfile'] - }, - lib_test: { - files: '<%= jshint.lib_test.src %>', - tasks: ['jshint:lib_test', 'qunit'] + main: { + options: { + reload: true; + }, + files: ['index.php', 'sass/demo.scss'], + tasks: ['sass'] } }, responsive_images: { @@ -75,7 +30,7 @@ module.exports = function(grunt) { }, { name: 'thumb', - height: 150 + height: 100 }] }, files: [{ @@ -96,18 +51,24 @@ module.exports = function(grunt) { 'demo.css': 'sass/demo.scss' } } + }, + copy: { + lightbox: { + expand: true, + flatten: true, + src: ['bower_components/touch-imagelightbox/dist/touch-imagelightbox.js'], + dest: './', + filter: 'isFile' + } } }); // These plugins provide necessary tasks. - grunt.loadNpmTasks('grunt-contrib-concat'); - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-sass'); + grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-responsive-images'); // Default task. - grunt.registerTask('default', ['jshint', 'concat', 'uglify']); + grunt.registerTask('default', ['responsive_images', 'sass', 'copy']); }; |