tabby/scripts/build-modules.js

19 lines
440 B
JavaScript
Raw Normal View History

2021-07-04 13:06:27 +00:00
#!/usr/bin/env node
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',
2021-07-11 20:59:39 +00:00
...vars.allPackages.map(x => `../${x}/webpack.config.js`),
2021-07-04 13:06:27 +00:00
]
;(async () => {
for (const c of configs) {
log.info('build', c)
await promisify(webpack)(require(c))
}
})()