[IMP] Added compass compilation to grunt file

bzr revid: nicolas.vanhoren@openerp.com-20130731102037-ai9ldek3vaph27l8
This commit is contained in:
niv-openerp 2013-07-31 12:20:37 +02:00
parent 52f05210a2
commit 494c12d8fc
2 changed files with 23 additions and 1 deletions

View File

@ -8,11 +8,31 @@ module.exports = function(grunt) {
evil: true, //eval
laxbreak: true, //unsafe line breaks
},
},
sass: {
dev: {
options: {
style: "expanded",
},
files: {
"static/src/css/base.css": "static/src/css/base.sass",
}
}
},
watch: {
sass: {
files: ["static/src/css/base.sass"],
tasks: ['sass']
},
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('gen', ["sass"]);
grunt.registerTask('watcher', ["gen", "watch"]);
grunt.registerTask('test', []);
grunt.registerTask('default', ['jshint']);

View File

@ -1,6 +1,8 @@
{
"devDependencies": {
"grunt": "*",
"grunt-contrib-jshint": "*"
"grunt-contrib-jshint": "*",
"grunt-contrib-sass": "~0.4.1",
"grunt-contrib-watch": "~0.5.1"
}
}