mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-13 16:22:33 +00:00
fix(ci): fix netlify deployment by building to dist
- Move from root publishing to clean `dist/` directory - Create `scripts/build-dist.mjs` to orchestrate build and copy assets - Update `package.json` build script - Update `netlify.toml` to publish `dist/` - Ignore `dist/` in `.gitignore` Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
ccb60c3a7e
commit
0bfa3b08e8
638 files changed
+193490
-2
No files matched your search
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
// js/applicationContext.js
|
||||
|
||||
let applicationInstance = null;
|
||||
let readyPromise = Promise.resolve();
|
||||
|
||||
export function setApplication(app) {
|
||||
applicationInstance = app || null;
|
||||
}
|
||||
|
||||
export function getApplication() {
|
||||
return applicationInstance;
|
||||
}
|
||||
|
||||
export function setApplicationReady(promise) {
|
||||
if (promise && typeof promise.then === "function") {
|
||||
readyPromise = promise;
|
||||
} else {
|
||||
readyPromise = Promise.resolve(promise);
|
||||
}
|
||||
}
|
||||
|
||||
export function getApplicationReady() {
|
||||
return readyPromise;
|
||||
}
|
||||
Reference in new issue
Block a user