forked from HubSpot/vex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
38 lines (32 loc) · 1 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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
coffee:
compile:
files:
'js/vex.js': 'coffee/vex.coffee'
'js/vex.dialog.js': 'coffee/vex.dialog.coffee'
watch:
coffee:
files: ['vex.coffee']
tasks: ["coffee", "uglify"]
uglify:
vex:
src: 'js/vex.js'
dest: 'js/vex.min.js'
options:
banner: "/*! vex.js <%= pkg.version %> */\n"
vexDialog:
dest: 'js/vex.dialog.min.js',
src: 'js/vex.dialog.js',
options:
banner: "/*! vex.dialog.js <%= pkg.version %> */\n"
vexCombined:
dest: 'js/vex.combined.min.js',
src: ['js/vex.js', 'js/vex.dialog.js']
options:
banner: "/*! vex.js, vex.dialog.js <%= pkg.version %> */\n"
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.registerTask 'default', ['coffee', 'uglify']