-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
35 lines (33 loc) · 1000 Bytes
/
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
module.exports = (grunt) ->
grunt.initConfig
concat:
styles:
src: [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"htdocs/styles/site/dark.css",
"htdocs/styles/site/style.css",
"htdocs/styles/site/responsive.css",
"node_modules/highlight.js/styles/darcula.css",
]
dest: 'htdocs/styles/front.css'
browserify:
client:
options:
browserifyOptions:
extensions: [ '.coffee' ]
debug: false
transform: [ 'coffeeify' ]
src: [ 'src/coffee/site.coffee' ]
dest: 'htdocs/site.js'
sass:
files:
expand: true
cwd: 'src/css'
src: ['*.sass']
dest: 'htdocs/styles'
ext: '.css'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-sass'
grunt.loadNpmTasks 'grunt-browserify'
grunt.registerTask 'default', ['browserify', 'concat']