forked from netlify/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
45 lines (33 loc) · 699 Bytes
/
gulpfile.js
File metadata and controls
45 lines (33 loc) · 699 Bytes
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
39
40
41
42
43
44
var gulp = require('gulp');
var shell = require('gulp-shell');
/**
* Our gulp tasks live in their own files,
* for the sake of clarity
*/
require('require-dir')('./gulp-tasks');
/*
Run our static site generator to build the pages
*/
gulp.task('generate', shell.task('eleventy'));
/*
compile the assets to the correct destination
*/
gulp.task('assets', gulp.parallel(
'images',
'styles'
));
/*
compile the assets to the correct destination
*/
gulp.task('build', gulp.series(
'generate',
'assets',
));
/*
Let's build this sucker, without getting data from online sources
*/
gulp.task('build:local', gulp.series(
'clean-build',
'generate',
'assets'
));