New renders+css
This commit is contained in:
parent
73e284660f
commit
b3f47e93e8
22 changed files with 763 additions and 3 deletions
16
build.js
16
build.js
|
|
@ -32,7 +32,7 @@ async function renameFiles(dir) {
|
|||
// Build with esbuild
|
||||
async function build() {
|
||||
try {
|
||||
|
||||
// Main calendar bundle (with DI)
|
||||
await esbuild.build({
|
||||
entryPoints: ['src/index.ts'],
|
||||
bundle: true,
|
||||
|
|
@ -46,6 +46,20 @@ async function build() {
|
|||
plugins: [NovadiUnplugin.esbuild({ debug: false, enableAutowiring: true, performanceLogging: true })]
|
||||
});
|
||||
|
||||
// V2 standalone bundle (no DI, no dependencies on main calendar)
|
||||
await esbuild.build({
|
||||
entryPoints: ['src/v2/entry.ts'],
|
||||
bundle: true,
|
||||
outfile: 'wwwroot/js/calendar-v2.js',
|
||||
format: 'esm',
|
||||
sourcemap: 'inline',
|
||||
target: 'es2020',
|
||||
minify: false,
|
||||
keepNames: true,
|
||||
platform: 'browser'
|
||||
});
|
||||
|
||||
console.log('V2 bundle created: wwwroot/js/calendar-v2.js');
|
||||
|
||||
} catch (error) {
|
||||
console.error('Build failed:', error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue