-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gulpfile.coffee
37 lines (31 loc) · 741 Bytes
/
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
# whitegry_plus gulpfile
gulp = require 'gulp'
sass = require 'gulp-sass'
tar = require 'gulp-tar'
gzip = require 'gulp-gzip'
rename = require 'gulp-rename'
rimraf = require 'rimraf'
gulp.task 'scss', ->
gulp.src './scss/*.scss'
.pipe sass(
outputStyle: 'compressed'
).on('error', sass.logError)
.pipe gulp.dest './css'
gulp.task 'make', ['scss'], ->
console.log 'Creating rsp package...'
gulp.src [
'./**/*'
'!./*.json'
'!./*.coffee'
'!./node_modules'
'!./node_modules/**/*'
'!./scss/'
'!./scss/**/*'
]
.pipe tar 'col-whitegry_plus.tar'
.pipe do gzip
.pipe gulp.dest '.'
console.log 'Complete.'
gulp.task 'clean', ->
rimraf './whitegry_plus.tar.gz'
gulp.task 'default', ['scss']