mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
grunt update
This commit is contained in:
@@ -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', [
|
||||
|
||||
@@ -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": "*"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user