mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-07-26 11:41:24 +00:00
build
config
img
lib
locales
qortal-ui-core
qortal-ui-crypto
qortal-ui-plugins
plugins
build-config.js
build.js
default-plugins.js
epml.js
package.json
watch.js
scripts
snap
splash
.editorconfig
.eslintrc.json
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
build-setup.js
build.bat
build.js
build.sh
electron-builder.yml
electron.js
install-dependencies.sh
package.json
push-updates-with-travis-build.sh
run_server.bat
server.js
set-up-snap.sh
update-package-json.js
watch-inline.js
watch.js
28 lines
626 B
JavaScript
28 lines
626 B
JavaScript
const rollup = require('rollup')
|
|
|
|
const configs = require('./build-config.js')()
|
|
|
|
const watch = () => {
|
|
configs.forEach(async file => {
|
|
const watchOptions = {
|
|
...file.inputOptions,
|
|
output: [file.outputOptions],
|
|
watch: {
|
|
// chokidar,
|
|
// clearScreen,
|
|
// exclude,
|
|
// include
|
|
}
|
|
}
|
|
|
|
const watcher = rollup.watch(watchOptions)
|
|
|
|
watcher.on('event', event => {
|
|
// ...
|
|
})
|
|
})
|
|
console.log('WATCH PLUGINS ==> Write Bundle : Done 🎉');
|
|
}
|
|
|
|
module.exports = watch
|