This repository has been archived by the owner on Mar 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.watchn
82 lines (63 loc) · 2.4 KB
/
.watchn
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
var tests = './test/'
var libs = './lib/'
var txt = './examples/text/'
var mkdwn = './examples/markdown/'
var coffee = './examples/coffeescript/'
var jasmine = './examples/jasmine/'
var dom = './examples/jasmine-dom/'
var vows = './examples/vows/'
var scss = './examples/scss/'
var sass = './examples/sass/'
var haml = './examples/haml/'
var stylus = './examples/stylus/'
var jade = './examples/jade/'
var js = './examples/javascripts/src'
module.exports.init = function(watchn) {
// uses the default reporter
watchn.watch('markdown', [mkdwn], function(options) {
// execute(task, options, reporter type, growl on pass, growl on fail
watchn.execute('make markdown', options, 'reporter', false, true)
})
watchn.watch('txt', [txt], function(options) {
watchn.execute('make text', options, 'custom', true, true)
})
watchn.watch('test', [tests, libs], function(options) {
watchn.execute('make test', options, 'expresso', true, true)
})
watchn.watch('docs', [libs], function(options) {
watchn.execute('make docs', options, 'docco', false, true)
})
watchn.watch('coffee', [coffee], function(options) {
watchn.execute('make coffee', options, 'coffee', false, true)
})
watchn.watch('jasmine', [jasmine], function(options) {
watchn.execute('make jasmine', options, 'jasmine', false, true)
})
watchn.watch('jasmine_dom', [dom], function(options) {
watchn.execute('make jasmine_dom', options, 'jasmine_dom', false, true)
})
watchn.xwatch('vows', [vows], function(options) {
watchn.execute('make vows', options, 'vows', true, true)
})
watchn.watch('jshint', [js], function(options) {
watchn.execute('make jshint', options, 'jshint', false, true)
})
watchn.watch('scss', [scss], function(options) {
watchn.execute('make scss', options, 'scss', false, true)
})
watchn.watch('sass', [sass], function(options) {
watchn.execute('make sass', options, 'sass', false, true)
})
watchn.watch('haml', [haml], function(options) {
watchn.execute('make haml', options, 'haml', false, true)
})
watchn.watch('stylus', [stylus], function(options) {
watchn.execute('make stylus', options, 'stylus', false, true)
})
watchn.watch('jade', [jade], function(options) {
watchn.execute('make jade', options, 'jade', false, true)
})
watchn.watch('uglify', [js], function(options) {
watchn.execute('make uglify', options, 'uglify', false, true)
})
}