-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathGruntfile.coffee
35 lines (31 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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
jshint:
all: ['raphael-svg-import.js', 'tests/*.js']
qunit:
all: ['tests/qunit*.html']
uglify:
options:
banner: '/* <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> */\n'
dist:
files:
'raphael-svg-import.min.js': ['raphael-svg-import.js']
connect:
server:
options:
livereload: true
watch:
tests:
files: ['raphel-svg-import.js', 'tests/qunit*.*']
options:
spawn: false
livereload: true
grunt.loadNpmTasks 'grunt-contrib-jshint'
grunt.loadNpmTasks 'grunt-contrib-qunit'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-connect'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.registerTask 'default', ['jshint', 'qunit', 'uglify']
grunt.registerTask 'test', ['jshint', 'qunit']
grunt.registerTask 'dev', ['connect', 'watch']