Bones/Gruntfile.js

47 lines
1.1 KiB
JavaScript
Raw Normal View History

2013-05-17 06:08:30 -04:00
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// CSS
sass: {
dist: {
files: {
'css/skeleton.css': 'scss/skeleton.scss',
}
}
},
csslint: {
scssoutput: {
options: {
import: false,
csslintrc: '.csslintrc'
2013-05-17 06:08:30 -04:00
},
src: ['css/skeleton.css']
}
},
cssmin: {
compress: {
options: {
banner: '/* <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today("dd-mm-yyyy") %> */'
},
files: {
'css/skeleton.min.css': 'css/skeleton.css'
}
},
},
watch: {
files: 'scss/**/*',
tasks: ['sass', 'csslint', 'cssmin']
}
});
grunt.loadNpmTasks('grunt-contrib-csslint');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('lint', ['sass', 'csslint']);
2013-05-17 06:20:43 -04:00
grunt.registerTask('minify', ['cssmin']);
2013-05-17 06:08:30 -04:00
grunt.registerTask('build', ['sass', 'cssmin']);
};