-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gruntfile.js
35 lines (32 loc) · 1.05 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = function(grunt) {
grunt.initConfig({
nunjucks: {
precompile: {
baseDir: 'app/',
src: 'app/*/js_templates/*',
dest: 'app/commons/static/js/nunjucks.templates.js',
options: {
name: function(filename) {
// remove js_templates
var path_split = filename.split('/');
return path_split[0] + '/' + path_split[2];
}
}
}
},
compass: {
dist: {
options: {
bundleExec: true,
force: true,
config: 'app/commons/static/css/config.rb',
sassDir: 'app/commons/static/css/',
cssDir: 'app/commons/static/css/'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadTasks('tasks');
grunt.registerTask('default', ['nunjucks', 'compass']);
}