-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.coffee
52 lines (46 loc) · 1.43 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
48
49
50
51
52
###
Run script for Grunt, task runner
The MIT License (MIT)
Copyright (c) 2014-2016 GochoMugo <[email protected]>
###
exports = module.exports = (grunt) ->
"use strict"
grunt.initConfig
clean:
test: [".test/", "concat.json"]
coffee:
src:
expand: true,
flatten: false,
ext: ".js"
extDot: "last",
cwd: "src/",
src: ["**/*.coffee"],
dest: "lib/"
test:
expand: true,
flatten: false,
ext: ".js"
extDot: "last",
cwd: "test/",
src: ["**/*.coffee"],
dest: ".test/"
copy:
test:
expand: true,
cwd: "test/",
src: ["data/**/*", "!data/**/*.coffee"],
dest: ".test/"
mochaTest:
test:
options:
reporter: 'spec',
quiet: false,
clearRequireCache: false
src: ['.test/test.*.js']
grunt.loadNpmTasks("grunt-contrib-clean")
grunt.loadNpmTasks("grunt-contrib-coffee")
grunt.loadNpmTasks("grunt-contrib-copy")
grunt.loadNpmTasks("grunt-mocha-test")
grunt.registerTask("default", ["coffee:src"])
grunt.registerTask("test", ["default", "coffee:test", "copy:test", "mochaTest"])