forked from monterail/angular-date-range-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
36 lines (34 loc) · 1.07 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
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-less')
grunt.loadNpmTasks('grunt-autoprefixer')
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-release')
grunt.config.init
pkg: grunt.file.readJSON "package.json"
coffee:
default:
files:
"build/angular-date-range-picker.js": "src/angular-date-range-picker.coffee"
uglify:
options:
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
build:
src: 'build/<%= pkg.name %>.js'
dest: 'build/<%= pkg.name %>.min.js'
release:
options:
npm: false
watch:
scripts:
files: ['src/*']
tasks: ['default']
less:
main:
files:
"build/angular-date-range-picker.css": "src/angular-date-range-picker.less"
autoprefixer:
no_dest:
src: "build/angular-date-range-picker.css"
grunt.registerTask "default", ["coffee", "less", "autoprefixer", "uglify"]