-
Notifications
You must be signed in to change notification settings - Fork 48
/
gruntfile.coffee
41 lines (32 loc) · 1.17 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) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON "./package.json"
coffee: compileJoined:
options: bare: true
files:
"bone.io.js": [
"lib/browser/index.coffee"
"lib/browser/config.coffee"
"lib/browser/util.coffee"
"lib/browser/io.coffee"
"lib/browser/history.coffee"
"lib/browser/view.coffee"
"lib/browser/router.coffee"
"lib/browser/mount.coffee"
]
uglify:
my_target:
files:
"bone.io.min.js": ["bone.io.js"]
watch:
files: ["lib/browser/*.coffee"]
tasks: ["default"]
# These plugins provide necessary tasks
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-uglify"
grunt.loadNpmTasks "grunt-contrib-watch"
# Default task
grunt.registerTask "default", ["coffee", "uglify"]
# Watch task
grunt.registerTask "dev", ["coffee", "uglify", "watch"]