- Add README.md for project description and CLI usage - Create main application component with basic structure in app.tsx - Implement CodeMirror editor base functionality in editor.base.ts - Extend CodeMirror editor for JSON support in editor.json.ts - Add support for multiple languages in editor.ts - Create utility functions for editor manipulation in editor.utils.ts - Implement tab key formatting and indentation in tab.ts - Add Tailwind CSS integration in index.css - Develop JSON editor web component in json.ts - Create a template component for rendering in lib.ts - Set up main entry point in main.ts - Configure TypeScript settings in tsconfig.json - Define custom element typings in typings.d.ts - Configure Vite for library and application builds in vite.config.lib.ts and vite.config.ts
15 lines
261 B
TypeScript
15 lines
261 B
TypeScript
import { build } from 'bun';
|
|
|
|
await build({
|
|
entrypoints: ["./src/lib.ts"],
|
|
outdir: './dist',
|
|
target: 'browser',
|
|
format: 'esm',
|
|
naming: {
|
|
entry: 'app.js',
|
|
},
|
|
minify: false,
|
|
sourcemap: false,
|
|
});
|
|
|
|
console.log('✅ Build complete: dist/app.js'); |