refactor: simplify build system and improve model loading flexibility
- Remove Rollup bundling in favor of direct TypeScript compilation - Move from bundled models to dynamic model loading with configurable paths - Add Docker deployment examples and documentation - Implement robust model loader with fallback mechanisms - Update storage adapters for better cross-environment compatibility - Add comprehensive tests for model loading and package installation - Simplify package.json scripts and remove complex build configurations - Clean up deprecated demo files and old bundling scripts BREAKING CHANGE: Models are no longer bundled with the package. They are now loaded dynamically from CDN or custom paths.
This commit is contained in:
parent
5ee3b7a30f
commit
2e084a0fe0
51 changed files with 4835 additions and 8007 deletions
|
|
@ -25,10 +25,13 @@ describe('Storage Adapters', () => {
|
|||
storageFactory = await import('../src/storage/storageFactory.js')
|
||||
createStorage = storageFactory.createStorage
|
||||
MemoryStorage = storageFactory.MemoryStorage
|
||||
FileSystemStorage = storageFactory.FileSystemStorage
|
||||
OPFSStorage = storageFactory.OPFSStorage
|
||||
S3CompatibleStorage = storageFactory.S3CompatibleStorage
|
||||
R2Storage = storageFactory.R2Storage
|
||||
|
||||
// FileSystemStorage needs to be imported separately to avoid browser build issues
|
||||
const fsStorageModule = await import('../src/storage/adapters/fileSystemStorage.js')
|
||||
FileSystemStorage = fsStorageModule.FileSystemStorage
|
||||
})
|
||||
|
||||
describe('MemoryStorage', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue