create-caspian-app 0.2.0-beta.52 → 0.2.0-beta.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.py +1 -0
- package/dist/public/js/main.js +13 -1
- package/dist/settings/bs-config.ts +2 -3
- package/package.json +1 -1
package/dist/main.py
CHANGED
package/dist/public/js/main.js
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
import"/js/pp-reactive-v2.js";
|
|
1
|
+
import "/js/pp-reactive-v2.js";
|
|
2
|
+
|
|
3
|
+
const pp = (globalThis).pp;
|
|
4
|
+
|
|
5
|
+
if (document.readyState !== "loading") {
|
|
6
|
+
pp?.mount?.();
|
|
7
|
+
} else {
|
|
8
|
+
document.addEventListener(
|
|
9
|
+
"DOMContentLoaded",
|
|
10
|
+
() => pp?.mount?.(),
|
|
11
|
+
{ once: true },
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -21,7 +21,6 @@ const { __dirname } = getFileMeta();
|
|
|
21
21
|
const bs: BrowserSyncInstance = browserSync.create();
|
|
22
22
|
|
|
23
23
|
const WORKSPACE_ROOT = join(__dirname, "..");
|
|
24
|
-
const PUBLIC_ROOT = join(WORKSPACE_ROOT, PUBLIC_DIR);
|
|
25
24
|
const PUBLIC_IGNORE_DIRS = ["uploads"];
|
|
26
25
|
let previousRouteFiles: string[] = [];
|
|
27
26
|
let lastChangedFile: string | null = null;
|
|
@@ -229,7 +228,7 @@ function updateRouteFilesCache() {
|
|
|
229
228
|
}
|
|
230
229
|
|
|
231
230
|
function isIgnoredPublicPath(absPath: string): boolean {
|
|
232
|
-
const normalizedPath = relative(
|
|
231
|
+
const normalizedPath = relative(WORKSPACE_ROOT, absPath).replace(/\\/g, "/");
|
|
233
232
|
|
|
234
233
|
return PUBLIC_IGNORE_DIRS.some(
|
|
235
234
|
(dir) => normalizedPath === dir || normalizedPath.startsWith(`${dir}/`),
|
|
@@ -267,7 +266,7 @@ const publicPipeline = new DebouncedWorker(
|
|
|
267
266
|
|
|
268
267
|
createSrcWatcher(join(PUBLIC_DIR, "**", "*"), {
|
|
269
268
|
onEvent: (_ev, abs, _) => {
|
|
270
|
-
const relFromPublic = relative(
|
|
269
|
+
const relFromPublic = relative(PUBLIC_DIR, abs);
|
|
271
270
|
if (isIgnoredPublicPath(abs)) return;
|
|
272
271
|
publicPipeline.schedule(relFromPublic);
|
|
273
272
|
},
|