Skip to content

Commit 543e1c7

Browse files
committed
building again - update dependencies
1 parent 614b3b0 commit 543e1c7

File tree

4 files changed

+5250
-27
lines changed

4 files changed

+5250
-27
lines changed

gulpfile.js

+23-19
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ var gulp = require('gulp'),
33
usemin = require('gulp-usemin'),
44
del = require('del'),
55
zip = require('gulp-zip'),
6-
mfst = require('./manifest.json')
7-
stylus = require('gulp-stylus');
6+
mfst = require('./manifest.json'),
7+
stylus = require('gulp-stylus'),
8+
debug = require('gulp-debug');
9+
810

911
var FILES = {
1012
copy: [
@@ -27,45 +29,47 @@ var FILES = {
2729
root: './'
2830
}
2931

30-
gulp.task('dev', ['stylus'], function () {
32+
gulp.task('stylus', function() {
33+
return gulp.src(FILES.stylus)
34+
.pipe(stylus())
35+
.pipe(gulp.dest(FILES.stylusRoot));
36+
});
37+
38+
gulp.task('dev', gulp.series('stylus', function () {
3139
var lr = tinylr();
3240
lr.listen(35729);
33-
gulp.watch(FILES.stylusGlob, ['stylus']);
41+
gulp.watch(FILES.stylusGlob, gulp.series('stylus'));
3442
gulp.watch(FILES.watch, function (evt) {
3543
lr.changed({
3644
body: {
3745
files: [evt.path]
3846
}
3947
});
4048
});
41-
});
49+
}));
4250

43-
gulp.task('stylus', function() {
44-
return gulp.src(FILES.stylus)
45-
.pipe(stylus())
46-
.pipe(gulp.dest(FILES.stylusRoot));
51+
gulp.task('clean', function() {
52+
return del([FILES.distAll, FILES.zip], {force: true});
4753
});
4854

49-
gulp.task('copy', ['clean'], function() {
55+
gulp.task('copy', function() {
5056
return gulp.src(FILES.copy)
5157
.pipe(gulp.dest(FILES.dist));
5258
});
5359

54-
gulp.task('usemin', ['clean'], function() {
60+
gulp.task('usemin', function() {
5561
return gulp.src(FILES.panel)
62+
.pipe(debug({title: 'usemin:'}))
5663
.pipe(usemin())
64+
.pipe(debug({title: 'dest:'}))
5765
.pipe(gulp.dest(FILES.distPanel));
5866
});
5967

60-
gulp.task('clean', function() {
61-
return del([FILES.distAll, FILES.zip], {force: true});
62-
});
63-
64-
gulp.task('zip', ['stylus', 'clean', 'usemin', 'copy'], function() {
68+
gulp.task('zip', gulp.series('stylus', 'clean', 'usemin', 'copy', function() {
6569
return gulp.src(FILES.distAll)
6670
.pipe(zip(FILES.zip))
6771
.pipe(gulp.dest(FILES.root));
68-
});
72+
}));
6973

70-
gulp.task('default', ['dev']);
71-
gulp.task('build', ['zip']);
74+
gulp.task('default', gulp.series('dev'));
75+
gulp.task('build', gulp.series('zip'));

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Scratch JS",
3-
"version": "0.0.23",
3+
"version": "0.0.25",
44
"description": "Write and execute ES6/ES2015 within DevTools!",
55
"devtools_page": "es6-repl.html",
66
"manifest_version": 2,

0 commit comments

Comments
 (0)