-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
28 lines (22 loc) · 906 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
module.exports = (grunt) ->
grunt.initConfig
coffee:
compile:
expand: true # enable dynamic expansion
cwd: 'papertalk/static/coffee' # source dir for coffee files
src: '**/*.coffee' # traverse *.coffee files relative to cwd
dest: 'papertalk/static/js' # destination for compiled js files
ext: '.js' # file extension for compiled files
watch:
scripts:
files: ['papertalk/static/coffee/**/*.coffee']
tasks: ['coffee']
options:
spawn: false
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-watch"
grunt.registerTask "default", ["coffee"]
grunt.registerTask "build", ["coffee"]
grunt.registerTask "deploy", ["copy", "build", "clean"]
grunt.registerTask 'heroku:production', 'build'
grunt.registerTask 'heroku:development', 'build'