build: migrate build system to rollup & rm app/ from repository

This commit is contained in:
jean-emmanuel 2025-09-10 01:45:54 +02:00
parent 291b1a0752
commit bdfade96a7
65 changed files with 327 additions and 362 deletions

View file

@ -0,0 +1,47 @@
var commonjs = require('@rollup/plugin-commonjs'),
nodeResolve = require('@rollup/plugin-node-resolve'),
json = require('@rollup/plugin-json'),
babel = require('@rollup/plugin-babel'),
terser = require('@rollup/plugin-terser'),
copy = require('rollup-plugin-copy'),
license = require('rollup-plugin-license'),
package = require('../package.json'),
path = require('path')
module.exports = {
input: 'src/launcher/index.js',
output: [
{
file: 'app/launcher/open-stage-control-launcher.js',
inlineDynamicImports: true,
format: 'commonjs',
strict: false,
name: '_',
},
],
external: ['electron'],
watch: {
clearScreen: false
},
plugins: [
json(),
commonjs({
ignoreGlobal: true,
ignoreDynamicRequires: true
}),
nodeResolve(),
terser(),
license({
banner: {
content: {
file: path.join(__dirname, 'license-header.txt'),
},
}
}),
copy({
targets: [
{src: 'src/html/launcher.html', dest: 'app/launcher/', rename: 'index.html'},
]
})
]
};