-
Notifications
You must be signed in to change notification settings - Fork 27
/
gulpfile.coffee
82 lines (68 loc) · 2.06 KB
/
gulpfile.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
gulp = require 'gulp'
coffeelint = require 'gulp-coffeelint'
del = require 'del'
requireDir = require 'require-dir'
dir = requireDir './tasks'
allTasks = Object.keys gulp.tasks
# coffeelint
# --------------------------------
gulp.task 'coffeelint', ->
gulp.src [
'*.coffee'
'lib/*.coffee'
'tasks/*.coffee'
]
.pipe coffeelint 'coffeelint.json'
.pipe coffeelint.reporter()
# watch
# --------------------------------
gulp.task 'watch', ->
gulp.watch [
'./*.coffee'
'./lib/*.coffee'
'./tasks/*.coffee'
]
, ['coffeelint']
# clean
# --------------------------------
gulp.task 'clean', ->
del [
'./src/**/*~'
'./**/*.log'
'./**/.DS_Store'
]
# clean-all
# --------------------------------
gulp.task 'clean-all', ['clean'], ->
del [
'dist'
'temp'
'node_modules'
]
# dist
# - execute all *-dist tasks
# --------------------------------
gulp.task 'dist', (("#{prefix}-dist" for prefix of dir).filter (task) -> task in allTasks)
# deploy
# - execute all *-deploy tasks
# --------------------------------
gulp.task 'deploy', (("#{prefix}-deploy" for prefix of dir).filter (task) -> task in allTasks)
# release
# - execute all *-release tasks
# --------------------------------
gulp.task 'release', (("#{prefix}-release" for prefix of dir).filter (task) -> task in allTasks)
# export-adg
# export from .nksf to ableton rack (.adg)
# - execute all *-export-adg tasks
# --------------------------------
gulp.task 'export-adg', (("#{prefix}-export-adg" for prefix of dir).filter (task) -> task in allTasks)
# generate-appc
# generate ableton default plugin parameter configuration
# - execute all *-generate-appc tasks
# --------------------------------
gulp.task 'generate-appc', (("#{prefix}-generate-appc" for prefix of dir).filter (task) -> task in allTasks)
# export-bwpreset
# export from .nksf to bitwig preset (.bwpreset)
# - execute all *-export-adg tasks
# --------------------------------
gulp.task 'export-bwpreset', (("#{prefix}-export-bwpreset" for prefix of dir).filter (task) -> task in allTasks)