-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
45 lines (41 loc) · 1.28 KB
/
gulpfile.js
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
// Gulp
var gulp = require('gulp');
gulp.task('default', function () { console.log('Yo dude') });
// Plugins
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var sass = require('gulp-sass');
var watch = require('gulp-watch');
gulp.task('sass', function () {
return gulp.src([
'scss/_variables.scss',
'scss/_typography.scss',
'scss/_global.scss'
])
.pipe(sass.sync().on('error', sass.logError))
.pipe(gulp.dest('css'));
});
gulp.task('sass:watch', function () {
gulp.watch([
'scss/_variables.scss',
'scss/_typography.scss',
'scss/_global.scss'
], ['sass']);
});
// Default Task
gulp.task('default', ['sass']);
// concatenate / copy scss
// gulp.task('styles', function() {
// watch('scss/*.*', function () {
// // Shopify scss can't do @import, so here's a task that kinda does the same thing
// // ...and we want to specify the order
// gulp.src([
// 'scss/_variables.scss',
// 'scss/_typography.scss',
// 'scss/_global.scss'
// ])
// .pipe(sass().on('error', sass.logError))
// .pipe(concat('style.css'))
// .pipe(gulp.dest('css'));
// });
// });