Skip to content
Snippets Groups Projects
Commit 498cac99 authored by Pablo Vazquez's avatar Pablo Vazquez
Browse files

Use Grunt for Sass, Watch, Autoprefix and Jade

parent 3f9b84a4
No related branches found
No related tags found
No related merge requests found
......@@ -14,3 +14,7 @@ config.py
/flamenco/server/render
/flamenco/manager/application/static/storage/*
/flamenco/server/application/static/storage/*
/flamenco/dashboard/node_modules/
/flamenco/dashboard/.sass-cache/
*.css.map
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jade: {
compile: {
options: {
data: {
debug: false
},
pretty: true,
},
files: [{
expand: true,
cwd: 'src/jade',
src: [ '**/*.jade' ],
dest: 'application/templates',
ext: '.html'
}]
}
},
sass: {
dist: {
options: {
style: 'compressed'
},
files: {
'application/static/css/main.css': 'src/sass/main.sass'
}
}
},
autoprefixer: {
no_dest: { src: 'application/static/css/main.css' }
},
watch: {
files: ['src/sass/main.sass'],
tasks: ['sass', 'autoprefixer'],
jade: {
files: 'src/jade/**/*.jade',
tasks: [ 'jade' ]
},
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-autoprefixer');
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.registerTask('default', ['sass', 'autoprefixer', 'jade']);
};
{
"name": "flamenco",
"repository": {
"type": "git",
"url": "https://github.com/fsiddi/flamenco.git"
},
"author": "flamenco",
"license": "GPL",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-autoprefixer": "^1.0.1",
"grunt-contrib-sass": "^0.8.1",
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-jade": "~0.14.0"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment