-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
38 lines (32 loc) · 989 Bytes
/
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
var gulp = require('gulp');
var surge = require('gulp-surge');
var browserify = require('browserify');
var buffer = require('vinyl-buffer');
var source = require('vinyl-source-stream');
gulp.task('browserify', function () {
return browserify({
entries: ['sortable.js'],
})
// .transform('babelify', { presets: ['es2015']})
.bundle()
.pipe(source('sortable.js'))
.pipe(buffer())
.pipe(gulp.dest('./build/'));
});
gulp.task('css', function () {
return gulp.src('**/*.css')
.pipe(gulp.dest('./build/'));
});
gulp.task('html', function () {
return gulp.src('**/*.html')
.pipe(gulp.dest('./build/'));
});
gulp.task('build', ['browserify', 'css', 'html']);
gulp.task('deploy', ['build'], function () {
return surge({
project: './build', // Path to your static build directory
domain: 'dysfunctional-industry.surge.sh'
});
});
gulp.task('dev', ['browserify', 'css', 'html'], function() {
});