grunt update

This commit is contained in:
Antoine Boulanger
2014-12-22 10:42:32 -05:00
parent 4328f9a6ef
commit e05996d38d
2 changed files with 17 additions and 9 deletions

View File

@@ -83,6 +83,10 @@ module.exports = function(grunt) {
spawn: false,
livereload: true
}
},
concat: {
files: ['assets/scripts/src/**/*.js'],
tasks: ['concat']
}
},
@@ -160,6 +164,15 @@ module.exports = function(grunt) {
}
},
// cssmin: Compress CSS files
cssmin: {
combine: {
files: {
'assets/styles/dist/': ['assets/scripts/dist/*.css']
}
}
},
// imagemin: Minify PNG and JPEG images.
imagemin: {
dynamic: {
@@ -187,10 +200,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-csscomb');
grunt.loadNpmTasks("grunt-markdown-pdf");
grunt.registerTask('default', [
'concat',
'watch'
]);
grunt.registerTask('default', ['watch']);
grunt.registerTask('wlint', [
// Javasript
'jshint',
@@ -208,6 +218,7 @@ module.exports = function(grunt) {
'autoprefixer',
'concat',
'uglify',
'cssmin',
'imagemin'
]);
grunt.registerTask('c', [

View File

@@ -6,23 +6,20 @@
"Stephen Bégay <stephen@locomotive.ca>",
"Antoine Boulanger <antoine@locomotive.ca>"
],
"dependencies": {
"grunt": "*",
"grunt-autoprefixer": "*",
"grunt-contrib-concat": "*",
"grunt-contrib-imagemin": "*",
"grunt-contrib-jshint": "*",
"grunt-contrib-sass": "*",
"grunt-contrib-uglify": "*",
"grunt-contrib-cssmin": "*",
"grunt-contrib-watch": "*",
"grunt-csscomb": "*",
"grunt-jsonlint": "*",
"grunt-markdown-pdf": "*",
"grunt-notify": "*",
"grunt-phplint": "*",
"grunt-sass": "*",
"load-grunt-tasks": "*"
"grunt-sass": "*"
}
}