Support for url based resources
This commit is contained in:
parent
ae1b9e262e
commit
5b90a8e1b3
6 changed files with 342 additions and 135 deletions
20
src/muse.ts
Normal file
20
src/muse.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
import { loadBinding, type Binding } from "#core/binding";
|
||||
|
||||
export class Muse {
|
||||
bindingLoaded = false;
|
||||
preliminaryBinding: Partial<Binding> = {};
|
||||
additionalSources: string[] = [];
|
||||
additionalPluginPaths: string[] = [];
|
||||
|
||||
constructor(bindingConfig: Partial<Binding>) {
|
||||
this.preliminaryBinding = bindingConfig;
|
||||
}
|
||||
|
||||
source(newSource: string) {
|
||||
this.additionalSources.push(newSource);
|
||||
}
|
||||
|
||||
plugin(pluginPath: string) {
|
||||
this.additionalPluginPaths.push(pluginPath);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue