forked from fragaria/angular-daterangepicker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.coffee
43 lines (35 loc) · 1.18 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
42
43
module.exports = (grunt) ->
require('load-grunt-tasks')(grunt)
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
coffee:
compileJoined:
options:
join: true
files:
'js/angular-daterangepicker.js': ['coffee/angular-daterangepicker.coffee']
watch:
files: ['example.html', 'coffee/*.coffee']
tasks: ['coffee']
uglify:
options:
sourceMap: true
target:
files:
'js/angular-daterangepicker.min.js': ['js/angular-daterangepicker.js']
wiredep:
target:
src: [
'./example.html'
]
ngAnnotate:
options:
singleQuotes: true
daterangepicker:
files:
'js/angular-daterangepicker.js': ['js/angular-daterangepicker.js']
# Default task(s).
grunt.registerTask "default", ["coffee"]
grunt.registerTask "develop", ["coffee", "watch"]
grunt.registerTask "dist", ["coffee", "ngAnnotate", "uglify"]