-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
40 lines (28 loc) · 1.13 KB
/
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
36
37
38
39
40
require('@babel/register')(require('./babel.config'))
const gulp = require('gulp')
global.ROOT = __dirname
const { log } = require('./lib/utils')
const { build, installPlugins, cleanFiles, packWinRelease, deployNightlies } = require('./build')
const packageMeta = require('./package.json')
let poiVersion = null
gulp.task('getVersion', done => {
const package_version = packageMeta.version
poiVersion = package_version
log(`*** Start building poi ${poiVersion} ***`)
done()
})
gulp.task('build', gulp.series('getVersion', () => build(poiVersion)))
gulp.task('build_plugins', gulp.series('getVersion', () => installPlugins(poiVersion)))
gulp.task('pack_win_release', gulp.series('getVersion', () => packWinRelease(poiVersion)))
gulp.task('deploy_nightlies', () => deployNightlies())
gulp.task('clean', () => cleanFiles())
gulp.task('default', done => {
log`
Usage:
gulp deploy - Make this repo ready to use
gulp build - Build release complete packages under ./dist/
gulp build_plugins - Pack up latest plugin tarballs under ./dist/
extra arguments will be passed to npm if it is used
`
done()
})