forked from fragaria/angular-daterangepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
49 lines (39 loc) · 1.13 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
44
45
46
47
48
49
module.exports = (grunt) ->
require('load-grunt-tasks')(grunt)
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
coffeelint:
options:
configFile: 'coffeelint.json'
source: ['coffee/angular-daterangepicker.coffee']
coffee:
compileJoined:
options:
join: true
files:
'js/angular-daterangepicker.js': ['coffee/angular-daterangepicker.coffee']
watch:
files: ['example.html', 'coffee/*.coffee']
tasks: ['default']
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", ["coffeelint", "coffee"]
grunt.registerTask "develop", ["default", "watch"]
grunt.registerTask "dist", ["default", "ngAnnotate", "uglify"]