No description
This commit lays the foundation for migrating OxJS from its custom module
system to ES modules while maintaining backward compatibility.
Key changes:
- Set up npm project with Vite for modern build tooling
- Created ES module versions of core Ox utilities (Type, Collection, DOM, etc.)
- Implemented compatibility layer for legacy Ox.load() pattern
- Added Vitest for testing with initial test suite
- Created script to extract existing inline tests from documentation
- Updated .gitignore for Node.js/npm development
The migration preserves OxJS's innovative inline test system and maintains
backward compatibility. Original source files remain unchanged.
Next steps include migrating UI modules, replacing the Python build script,
and creating npm package distribution.
🤖 Generated with AI assistance
|
||
|---|---|---|
| examples | ||
| readme | ||
| scripts | ||
| source | ||
| src/ox | ||
| test | ||
| tools | ||
| .editorconfig | ||
| .gitignore | ||
| CLAUDE.md | ||
| ES_MODULE_MIGRATION_PLAN.md | ||
| index.css | ||
| index.html | ||
| index.js | ||
| package-lock.json | ||
| package.json | ||
| vite.config.js | ||
| vitest.config.js | ||