-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
41 lines (35 loc) · 1.02 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
module.exports = (grunt) ->
grunt.initConfig
copy:
css:
files:
'build/css/bootstrap.min.css': 'assets/css/bootstrap.min.css'
fonts:
files: [
expand: true
src: ['assets/fonts/*']
dest: 'build/fonts/'
flatten: true
]
markdown:
compile:
files: [
expand: true
src: ['notes/**/*.md']
dest: 'build/'
ext: '.html'
]
options:
template: 'views/layout.jst'
markdownOptions:
gfm: true
highlight: 'manual'
watch:
markdown:
files: ['notes/**/*.md', 'views/layout.jst']
tasks: ['markdown']
grunt.loadNpmTasks 'grunt-contrib-copy'
grunt.loadNpmTasks 'grunt-markdown'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.registerTask 'build', ['copy', 'markdown']
grunt.registerTask 'default', 'build'