-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.coffee
50 lines (42 loc) · 1.46 KB
/
Gruntfile.coffee
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = (grunt) ->
grunt.initConfig
dirs:
static: './static/'
dist: './static/dist/'
js: './static/js/'
jade: './static/jade/'
css: './static/css/'
scss: './static/scss/'
concat:
css:
src: [
'<%= dirs.css %>base/common.css'
'<%= dirs.css %>base/typography.css'
'<%= dirs.css %>base/sprites.css'
'<%= dirs.css %>modules/score.css'
]
dest: '<%= dirs.dist %>app.concat.css'
cssmin:
files:
src: '<%= concat.css.dest %>'
dest: '<%= dirs.dist %>app.min.css'
compass:
dist:
options:
config: './config.rb'
sassDir: '<%= dirs.scss %>'
cssDir: '<%= dirs.css %>'
watch:
sass:
files: '<%= dirs.scss %>**/*.scss'
tasks: 'sass'
styles:
files: '<%= concat.css.src %>'
tasks: 'css'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-contrib-cssmin'
grunt.loadNpmTasks 'grunt-contrib-compass'
grunt.registerTask 'dev', ['sass']
grunt.registerTask 'css', ['concat:css', 'cssmin']
grunt.registerTask 'sass', ['compass', 'css']