Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.

Commit 35d8644

Browse files
authored
Merge pull request #648 from devopsdays/update-packages
Update dev gulp tasks
2 parents 7053db6 + c4975ae commit 35d8644

File tree

5 files changed

+12
-20
lines changed

5 files changed

+12
-20
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v9.4.0

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
sudo: false
22
language: node_js
3-
node_js:
4-
- "6"
3+
54
env:
65
- CXX=g++-4.8
76
addons:
@@ -12,6 +11,7 @@ addons:
1211
- g++-4.8
1312
before_script:
1413
- npm install -g gulp
14+
- npm i -g gulp-cli
1515
- npm install
1616
- cd exampleSite
1717

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
var gulp = require('gulp'),
2-
runSequence = require('run-sequence');
1+
var gulp = require('gulp');
32

4-
gulp.task('dev', function (callback) {
5-
runSequence('bower', 'sass', 'js-concat', 'watch',
6-
callback
7-
)
8-
})
3+
gulp.task('dev', gulp.series('bower', 'sass', 'js-concat', 'watch'));

gulp/tasks/development/local-imagemin.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
var gulp = require('gulp'),
22
imagemin = require('gulp-imagemin'),
33
cache = require('gulp-cache');
4-
runSequence = require('run-sequence');
54

65

76

@@ -18,8 +17,6 @@ gulp.task('optimize-local-theme-images', function() {
1817
});
1918

2019

21-
gulp.task('optimize-local-images', function(callback) {
22-
runSequence('optimize-local-content-images', 'optimize-local-theme-images',
23-
callback
24-
)
25-
})
20+
gulp.task('optimize-local-images', gulp.parallel('optimize-local-content-images', 'optimize-local-theme-images'));
21+
22+

gulp/tasks/process-html.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ var gulp = require('gulp'),
33
imgRetina = require('gulp-img-retina');
44
// runSequence = require('run-sequence');
55

6-
gulp.task('process-html', function(callback) {
7-
runSequence('min-html', 'retina-html',
8-
callback
9-
)
10-
})
6+
7+
118

129
gulp.task('copy-html', function(){
1310
return gulp.src('public/**/*.html')
@@ -35,3 +32,5 @@ gulp.task('retina-html', function() {
3532
})
3633
.pipe(gulp.dest('dist'));
3734
})
35+
36+
gulp.task('process-html', gulp.series('min-html', 'retina-html'));

0 commit comments

Comments
 (0)