1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-27 10:42:35 +03:00
tabby/scripts/build-modules.js
Eugene Pankov ff18926bf9
WSA wip
2021-07-11 22:59:39 +02:00

19 lines
440 B
JavaScript
Executable File

#!/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',
...vars.allPackages.map(x => `../${x}/webpack.config.js`),
]
;(async () => {
for (const c of configs) {
log.info('build', c)
await promisify(webpack)(require(c))
}
})()