-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
33 lines (23 loc) · 865 Bytes
/
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
module.exports = (grunt) ->
configObject =
pkg: grunt.file.readJSON("package.json")
coffee:
compile:
files:
'dist/daenerys.js': 'src/daenerys.coffee'
'dist/pyre.js': 'src/pyre.coffee'
jshint:
options: {}
files: [ 'onmd-onmd.js', './dist/*.js', './dist/**/*.js' ]
mochaTest:
options:
reporter: 'spec'
src: [ 'test/test-main.js' ]
clean: [ 'dist' ]
grunt.initConfig configObject
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-clean"
grunt.loadNpmTasks "grunt-mocha-test"
grunt.loadNpmTasks "grunt-contrib-jshint"
grunt.registerTask "test", [ "mochaTest" ]
grunt.registerTask "default", [ "clean", "coffee:compile", "test" ]