forked from cletourneau/angular-bootstrap-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
47 lines (39 loc) · 1.23 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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
clean: ['bower_components', 'node_modules']
coffee:
compile:
files:
'js/src.js': ['src/**/*.coffee']
options:
bare: true
sourceMap: false
concat:
js:
src: ['bower_components/bootstrap-datepicker/js/bootstrap-datepicker.js',
'bower_components/bootstrap-datepicker/js/locales/*.js',
'js/src.js']
dest: 'dist/angular-bootstrap-datepicker.js'
css:
src: ['bower_components/bootstrap-datepicker/css/datepicker.css']
dest: 'dist/angular-bootstrap-datepicker.css'
uglify:
options:
mangle: false
main:
files:
'dist/angular-bootstrap-datepicker.min.js': ['dist/angular-bootstrap-datepicker.js']
watch:
options:
livereload: true
spawn: false
debounceDelay: 50
atBegin: true
coffee:
files: 'src/**/*.coffee'
tasks: ['coffee:compile', 'concat', 'uglify:main']
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-uglify'