forked from zellwk/zellwk.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
35 lines (31 loc) · 960 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
require('dotenv').config({ path: 'secrets/variables.env' })
const { series, parallel } = require('gulp')
const clean = require('./gulp/clean')
const eleventy = require('./gulp/eleventy')
const watch = require('./gulp/watch')
const rev = require('./gulp/rev')
const { serve } = require('./gulp/browser-sync')
const { default: sass } = require('./gulp/sass')
const { default: scripts } = require('./gulp/scripts')
const { default: images } = require('./gulp/images')
const { syncSecrets, syncFiles } = require('./gulp/sync')
exports.sass = sass
exports.eleventy = eleventy
exports.clean = clean
exports.rev = rev
exports.serve = serve
exports.scripts = scripts
exports.images = images
exports.default = series(
clean,
parallel(sass, eleventy, images),
parallel(serve, watch)
)
exports.build = series(
clean,
parallel(sass, images, scripts),
rev,
eleventy
)
exports.deploy = parallel(syncSecrets, syncFiles)
exports.deployCI = series(syncFiles)