Refactors calendar project structure and build configuration
Consolidates V2 codebase into main project directory Updates build script to support simplified entry points Removes redundant files and cleans up project organization Simplifies module imports and entry points for calendar application
This commit is contained in:
parent
9f360237cf
commit
863b433eba
200 changed files with 2331 additions and 16193 deletions
50
build.js
50
build.js
|
|
@ -32,9 +32,9 @@ async function renameFiles(dir) {
|
|||
// Build with esbuild
|
||||
async function build() {
|
||||
try {
|
||||
// Main calendar bundle (with DI)
|
||||
// Calendar standalone bundle (no DI)
|
||||
await esbuild.build({
|
||||
entryPoints: ['src/index.ts'],
|
||||
entryPoints: ['src/entry.ts'],
|
||||
bundle: true,
|
||||
outfile: 'wwwroot/js/calendar.js',
|
||||
format: 'esm',
|
||||
|
|
@ -42,40 +42,26 @@ async function build() {
|
|||
target: 'es2020',
|
||||
minify: false,
|
||||
keepNames: true,
|
||||
platform: 'browser'
|
||||
});
|
||||
|
||||
console.log('Calendar bundle created: wwwroot/js/calendar.js');
|
||||
|
||||
// Demo bundle (with DI transformer for autowiring)
|
||||
await esbuild.build({
|
||||
entryPoints: ['src/demo/index.ts'],
|
||||
bundle: true,
|
||||
outfile: 'wwwroot/js/demo.js',
|
||||
format: 'esm',
|
||||
sourcemap: 'inline',
|
||||
target: 'es2020',
|
||||
minify: false,
|
||||
keepNames: true,
|
||||
platform: 'browser',
|
||||
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');
|
||||
|
||||
// V2 demo bundle (with DI transformer for autowiring)
|
||||
await esbuild.build({
|
||||
entryPoints: ['src/v2/demo/index.ts'],
|
||||
bundle: true,
|
||||
outfile: 'wwwroot/js/v2-demo.js',
|
||||
format: 'esm',
|
||||
sourcemap: 'inline',
|
||||
target: 'es2020',
|
||||
minify: false,
|
||||
keepNames: true,
|
||||
platform: 'browser',
|
||||
plugins: [NovadiUnplugin.esbuild({ debug: false, enableAutowiring: true })]
|
||||
});
|
||||
|
||||
console.log('V2 demo bundle created: wwwroot/js/v2-demo.js');
|
||||
console.log('Demo bundle created: wwwroot/js/demo.js');
|
||||
|
||||
} catch (error) {
|
||||
console.error('Build failed:', error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue