2021-07-04 13:06:27 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
const sh = require('shelljs')
|
|
|
|
const vars = require('./vars')
|
|
|
|
const log = require('npmlog')
|
|
|
|
const webpack = require('webpack')
|
|
|
|
const { promisify } = require('util')
|
|
|
|
|
|
|
|
const configs = [
|
|
|
|
'../app/webpack.main.config.js',
|
|
|
|
'../app/webpack.config.js',
|
|
|
|
'../web/webpack.config.js',
|
2021-07-11 14:00:59 +00:00
|
|
|
'../tabby-web-demo/webpack.config.js',
|
2021-07-04 13:06:27 +00:00
|
|
|
...vars.builtinPlugins.map(x => `../${x}/webpack.config.js`),
|
|
|
|
]
|
|
|
|
|
|
|
|
;(async () => {
|
|
|
|
for (const c of configs) {
|
|
|
|
log.info('build', c)
|
|
|
|
await promisify(webpack)(require(c))
|
|
|
|
}
|
|
|
|
})()
|