-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.coffee
34 lines (25 loc) · 902 Bytes
/
grunt.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
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON "./package.json"
coffee: compileJoined:
options: bare: true
files:
"bone.io-textsearch.js": [
"lib/browser/index.coffee"
]
uglify:
my_target:
files:
"bone.io-textsearch.min.js": ["bone.io-textsearch.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"]