40f71ab1
Geoffrey PREUD'HOMME
Utilisation de Sa...
|
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
|
var gulp = require('gulp');
// var source = require('vinyl-source-stream');
// var buffer = require('vinyl-buffer');
var gutil = require('gulp-util');
// var uglify = require('gulp-uglify');
// var sourcemaps = require('gulp-sourcemaps');
// var reactify = require('reactify');
var sass = require('gulp-sass');
// var fs = require('fs-extra');
var exec = require('child_process').exec;
var path = require('path');
// var install = require("gulp-install");
gulp.task('style', function() {
gulp.src('./scss/style.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./css'));;
});
gulp.task('style:watch', function() {
gulp.watch('./scss/style.scss', ['style']);
});
gulp.task('clean', function() {
fs.removeSync(__dirname+'/bower_components');
fs.removeSync(__dirname+'/lib');
});
gulp.task('install', function() {
// gulp.src(['./bower.json', './package.json']) // FIXME Doesn't work
// .pipe(install());
});
gulp.task('bootstrap', ['install', 'style']);
gulp.task('watch', ['bootstrap', 'style:watch']);
gulp.task('default', ['watch']);
|