-
Notifications
You must be signed in to change notification settings - Fork 46
/
gulpfile.js
28 lines (21 loc) · 914 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
const {series, parallel } = require('gulp')
const { build, copy_extension, github_action } = require('./gulp/build')
const { vagrant } = require('./gulp/vagrant')
const { watch } = require('./gulp/watch')
// Build Extension
exports.build = build
// Build & Install extension
exports.install = series(build, copy_extension)
// Package extensions
exports.pack = require('./gulp/pack').pack
// Generate po files
exports.po = require('./gulp/po').po
// ----------------------------------------------- [Development Options]
// Watch changes in src/
exports.watch = series(this.build, watch(this.build))
// Watch changes and install extensions
exports.dev = series(this.install, watch(this.install))
// Watch changes & run extensions in virtual machine
// Need vagrant installed.
exports.vm = series(this.install, parallel(vagrant, watch(this.install)))
exports.github_action = github_action