[IMP] Added compass compilation to grunt file
bzr revid: nicolas.vanhoren@openerp.com-20130731102037-ai9ldek3vaph27l8
This commit is contained in:
parent
52f05210a2
commit
494c12d8fc
|
@ -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']);
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"grunt": "*",
|
||||
"grunt-contrib-jshint": "*"
|
||||
"grunt-contrib-jshint": "*",
|
||||
"grunt-contrib-sass": "~0.4.1",
|
||||
"grunt-contrib-watch": "~0.5.1"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue