forked from GoogleChrome/workbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-browser-packages.js
More file actions
29 lines (25 loc) · 929 Bytes
/
build-browser-packages.js
File metadata and controls
29 lines (25 loc) · 929 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
const gulp = require('gulp');
const buildBrowserBundle = require('./utils/build-browser-bundle');
const versionModule = require('./utils/version-module');
const constants = require('./utils/constants');
const packageRunnner = require('./utils/package-runner');
gulp.task('build-browser-packages:browser-bundle', gulp.series(
Object.keys(constants.BUILD_TYPES).map((buildKey) => packageRunnner(
'build-browser-packages:browser-bundle',
'browser',
buildBrowserBundle,
constants.BUILD_TYPES[buildKey],
))
));
gulp.task('build-browser-packages:version-module', gulp.series(
Object.keys(constants.BUILD_TYPES).map((buildKey) => packageRunnner(
'build-browser-packages:version-module',
'browser',
versionModule,
constants.BUILD_TYPES[buildKey],
))
));
gulp.task('build-browser-packages', gulp.series(
'build-browser-packages:version-module',
'build-browser-packages:browser-bundle',
));