This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.coffee
96 lines (87 loc) · 1.9 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
watch:
bin:
files: [
'src/bin/*.coffee'
]
tasks: [
'bin'
'tests'
]
lib:
files: [
'src/lib/*.coffee'
'tests/*.coffee'
'tests/src/**/*.coffee'
'tests/src/**/*.js'
]
tasks: [
'lib'
'tests'
]
coffee:
bin :
options:
bare: true
files : [
expand: true
cwd : 'src/bin'
src : [ '*.coffee' ]
dest : 'bin'
ext : '.js'
]
lib :
files: [
expand: true
cwd : 'src/lib'
src : [ '*.coffee' ]
dest : 'lib'
ext : '.js'
]
tests:
files: [
expand: true
src : [ 'tests/*.coffee' ]
ext : '.js'
]
concat:
bin:
options:
banner: '#!/usr/bin/env node\n\n'
src : [ 'bin/coffeemill.js' ]
dest : 'bin/coffeemill'
clean:
bin : [ 'bin/*.js' ]
tests: [ 'tests/*.js' ]
simplemocha:
options:
reporter: 'tap'
tests: [ 'tests/**/*_tests.js' ]
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-simple-mocha'
grunt.loadNpmTasks 'grunt-mocha-test'
grunt.loadNpmTasks 'grunt-release'
grunt.registerTask 'bin', [
'coffee:bin'
'concat:bin'
'clean:bin'
]
grunt.registerTask 'lib', [
'coffee:lib'
]
grunt.registerTask 'tests', [
'coffee:tests'
'simplemocha:tests'
'clean:tests'
]
grunt.registerTask 'run', [
'bin'
'lib'
'tests'
]
grunt.registerTask 'default', [ 'run', 'watch' ]