forked from nowaym/groundwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
94 lines (84 loc) · 3.16 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
watch:
jade:
files: '**/*.jade'
tasks: ['jade']
options:
livereload: true
compass:
files: '**/*.scss'
tasks: ['compass', 'autoprefixer']
coffee:
files: '**/*.coffee'
tasks: ['coffee']
jade:
build:
files:
'groundworkcss.html': ['src/jade/groundworkcss.jade']
'docs/home.html': ['src/jade/home.jade']
'docs/layout-a.html': ['src/jade/layout-a.jade']
'docs/layout-b.html': ['src/jade/layout-b.jade']
'docs/layout-c.html': ['src/jade/layout-c.jade']
'docs/grid.html': ['src/jade/grid.jade']
'docs/helpers.html': ['src/jade/helpers.jade']
'docs/typography.html': ['src/jade/typography.jade']
'docs/navigation.html': ['src/jade/navigation.jade']
'docs/buttons.html': ['src/jade/buttons.jade']
'docs/boxes.html': ['src/jade/boxes.jade']
'docs/messages.html': ['src/jade/messages.jade']
'docs/tables.html': ['src/jade/tables.jade']
'docs/tabs.html': ['src/jade/tabs.jade']
'docs/forms.html': ['src/jade/forms.jade']
'docs/icons.html': ['src/jade/icons.jade']
'docs/responsive-text.html': ['src/jade/responsive-text.jade']
'docs/placeholder-text.html': ['src/jade/placeholder-text.jade']
'docs/animations.html': ['src/jade/animations.jade']
'docs/breakpoints.html': ['src/jade/breakpoints.jade']
'docs/media-queries.html': ['src/jade/media-queries.jade']
options:
pretty: true
compass:
build:
options:
config: 'config.rb'
trace: true
autoprefixer:
build:
options:
browsers: ['last 2 versions']
files:
'css/groundwork.css': ['css/groundwork.css']
coffee:
individual:
expand: true
cwd: 'src/coffee'
src: ['components/*.coffee', 'plugins/*.coffee']
dest: 'js'
ext: '.js'
concatenated:
options:
join: true
files:
"js/groundwork.all.js": ["src/coffee/components/*.coffee", "src/coffee/plugins/*.coffee"]
uglify:
minify:
files:
'js/groundwork.all.js': ['js/groundwork.all.js']
cssmin:
minify:
expand: true
cwd: 'css/'
src: ['*.css', '!*.min.css']
dest: 'css/'
ext: '.css'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-jade'
grunt.loadNpmTasks 'grunt-contrib-compass'
grunt.loadNpmTasks 'grunt-contrib-cssmin'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-autoprefixer'
grunt.registerTask 'default', ['build']
grunt.registerTask 'build', ['jade', 'compass', 'autoprefixer', 'coffee', 'cssmin', 'uglify']