Bones/Gruntfile.js

50 lines
1.2 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: {
2013-07-15 05:28:06 -04:00
'build/css/Ribs.css': 'src/scss/Ribs.scss',
2013-05-17 06:08:30 -04:00
}
}
},
csslint: {
scssoutput: {
options: {
import: false,
csslintrc: '.csslintrc'
2013-05-17 06:08:30 -04:00
},
2013-07-15 05:28:06 -04:00
src: ['build/css/Ribs.css']
2013-07-15 05:30:27 -04:00
},
brutal: {
src: ['build/css/Ribs.css']
2013-05-17 06:08:30 -04:00
}
},
cssmin: {
compress: {
options: {
banner: '/* <%= pkg.name %> <%= pkg.version %> - https://github.com/nickpack/Ribs - <%= grunt.template.today("dd-mm-yyyy") %> */'
2013-05-17 06:08:30 -04:00
},
files: {
2013-07-15 05:28:06 -04:00
'build/css/Ribs.min.css': 'build/css/Ribs.css'
2013-05-17 06:08:30 -04:00
}
},
},
watch: {
2013-07-15 05:28:06 -04:00
files: 'src/scss/**/*',
tasks: ['sass', 'csslint:scssoutput', 'cssmin']
2013-05-17 06:08:30 -04:00
}
});
grunt.loadNpmTasks('grunt-contrib-csslint');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
2013-07-15 05:30:27 -04:00
grunt.registerTask('test', ['sass', 'csslint:scssoutput']);
2013-05-17 06:20:43 -04:00
grunt.registerTask('minify', ['cssmin']);
2013-05-28 15:35:21 -04:00
grunt.registerTask('default', ['sass', 'cssmin']);
2013-05-17 06:08:30 -04:00
};