Skip to content

Commit fc510b5

Browse files
committed
Upgrade gulp and plugins
1 parent 4e0ed85 commit fc510b5

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

gulpfile.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var concat = require('gulp-concat-util');
99

1010
var themeClasses = ['deep-space', 'space', ['clouds', 'clouds-top'], 'clouds', 'forest', 'ground'];
1111

12-
gulp.task('html', function () {
12+
function html() {
1313
var projectsFile = fs.readFileSync('gilhub/src/projects.json');
1414
var projectsData = JSON5.parse(projectsFile);
1515
projectsData.categories.forEach(function (category, i) {
@@ -22,9 +22,9 @@ gulp.task('html', function () {
2222
return gulp.src('gilhub/src/index.html')
2323
.pipe(mustache(projectsData))
2424
.pipe(gulp.dest('./'));
25-
});
25+
};
2626

27-
gulp.task('css', function () {
27+
function css() {
2828
return gulp.src('gilhub/src/*.css')
2929
.pipe(postcss([
3030
postcssGradients,
@@ -33,13 +33,16 @@ gulp.task('css', function () {
3333
})
3434
]))
3535
.pipe(gulp.dest('gilhub/lib'));
36-
});
36+
};
3737

38-
gulp.task('scripts', function () {
38+
function scripts() {
3939
return gulp.src(['node_modules/fontfaceobserver/fontfaceobserver.js', 'gilhub/src/*.js'])
4040
.pipe(concat('home.js'))
4141
.pipe(concat.header('// https://github.com/bramstein/fontfaceobserver\n'))
4242
.pipe(gulp.dest('gilhub/lib'));
43-
});
43+
};
4444

45-
gulp.task('default', ['html', 'css', 'scripts']);
45+
exports.html = html;
46+
exports.css = css;
47+
exports.scripts = scripts;
48+
exports.default = gulp.series(html, css, scripts);

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "1.0.0",
44
"droneVersion": "1.exasperated.0.0.tallots.1447397897.7",
55
"private": true,
6-
"scripts": {},
6+
"scripts": {
7+
"build": "gulp"
8+
},
79
"repository": {
810
"type": "git",
911
"url": "git+https://github.com/gilmoreorless/gilmoreorless.github.com.git"
@@ -19,12 +21,12 @@
1921
},
2022
"devDependencies": {
2123
"autoprefixer": "^9.7.5",
22-
"gulp": "^3.9.1",
24+
"gulp": "^4.0.2",
2325
"gulp-concat-util": "^0.5.5",
24-
"gulp-mustache": "^2.3.0",
25-
"gulp-postcss": "^6.4.0",
26-
"gulp-sourcemaps": "^1.12.1",
27-
"json5": "^0.5.1",
26+
"gulp-mustache": "^4.1.2",
27+
"gulp-postcss": "^8.0.0",
28+
"gulp-sourcemaps": "^2.6.5",
29+
"json5": "^2.1.2",
2830
"postcss-gradient-transparency-fix": "^3.0.0"
2931
}
3032
}

0 commit comments

Comments
 (0)