-
Notifications
You must be signed in to change notification settings - Fork 14
/
gulpfile.coffee
executable file
·47 lines (41 loc) · 1.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
gulp = require 'gulp'
coffee = require 'gulp-coffee'
sketch = require './coffee/'
gulp.task 'default', ->
gulp.src './coffee/index.coffee'
.pipe coffee()
.pipe gulp.dest './'
gulp.task 'test-flat', ->
gulp.src './test/fixtures/flat.sketch'
.pipe sketch
export: 'slices'
formats: 'png'
saveForWeb: true
.pipe gulp.dest './tmp/test/flat'
gulp.task 'test-subdir', ->
gulp.src './test/fixtures/subdir.sketch'
.pipe sketch
export: 'slices'
formats: 'png'
saveForWeb: true
.pipe gulp.dest './tmp/test/subdir'
gulp.task 'test-svg', ->
gulp.src './test/fixtures/flat.sketch'
.pipe sketch
export: 'slices'
formats: 'svg'
.pipe gulp.dest './tmp/test/svg'
gulp.task 'test-svg-subdir', ->
gulp.src './test/fixtures/subdir.sketch'
.pipe sketch
export: 'slices'
formats: 'svg'
.pipe gulp.dest './tmp/test/svg-subdir'
gulp.task 'test-json', ->
gulp.src './test/fixtures/flat.sketch'
.pipe sketch
export: 'slices'
formats: 'png'
saveForWeb: true
outputJSON: 'data.json'
.pipe gulp.dest './tmp/test/json'