create-fff-app 0.1.1 → 0.1.3
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/package.json
CHANGED
package/template/dev-server.ts
CHANGED
|
@@ -387,19 +387,23 @@ function startServer(port: number): ReturnType<typeof Bun.serve> {
|
|
|
387
387
|
|
|
388
388
|
const server = startServer(PREFERRED_PORT);
|
|
389
389
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}
|
|
390
|
+
if (existsSync(COMPONENTS_DIR)) {
|
|
391
|
+
watch(COMPONENTS_DIR, { persistent: false }, (_ev, filename) => {
|
|
392
|
+
if (filename?.endsWith('.fjsx')) {
|
|
393
|
+
console.log(` [HMR] ${filename} changed`);
|
|
394
|
+
broadcast('reload', JSON.stringify({ template: basename(filename, '.fjsx') }));
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
}
|
|
396
398
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
}
|
|
399
|
+
if (existsSync(SERVER_PAGES_DIR)) {
|
|
400
|
+
watch(SERVER_PAGES_DIR, { persistent: false }, (_ev, filename) => {
|
|
401
|
+
if (filename?.endsWith('.fjsx')) {
|
|
402
|
+
console.log(` [page] ${filename} changed — reloading`);
|
|
403
|
+
broadcast('reload', JSON.stringify({ template: basename(filename, '.fjsx'), fullReload: true }));
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
}
|
|
403
407
|
|
|
404
408
|
const apiMode = WRANGLER_URL
|
|
405
409
|
? `proxy → ${WRANGLER_URL}`
|
|
@@ -13,9 +13,9 @@ button, input, textarea, select { font: inherit; }
|
|
|
13
13
|
|
|
14
14
|
:root {
|
|
15
15
|
/* Brand */
|
|
16
|
-
--fff-accent: #
|
|
17
|
-
--fff-accent-dark: #
|
|
18
|
-
--fff-accent-dim: rgba(
|
|
16
|
+
--fff-accent: #795548;
|
|
17
|
+
--fff-accent-dark: #5D4037;
|
|
18
|
+
--fff-accent-dim: rgba(121, 85, 72, 0.10);
|
|
19
19
|
|
|
20
20
|
/* Surfaces */
|
|
21
21
|
--fff-bg: #F3F4F6;
|
|
File without changes
|