peertube-plugin-youth-schedule
Version:
PeerTube plugin: youth protection schedule (configurable HH:mm slots and end time)
22 lines (16 loc) • 490 B
JavaScript
const path = require('path')
const esbuild = require('esbuild')
const clientFiles = [
'video-edit-client-plugin.js',
'video-watch-client-plugin.js'
]
const configs = clientFiles.map(f => ({
entryPoints: [ path.resolve(__dirname, '..', 'client', f) ],
bundle: true,
minify: true,
format: 'esm',
target: 'safari11',
outfile: path.resolve(__dirname, '..', 'dist', f)
}))
Promise.all(configs.map(c => esbuild.build(c)))
.catch(() => process.exit(1))