@fougere/svelte 0.14.1-alpha.0 → 0.15.1-alpha.0
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 +4 -4
- package/template/scaffold.json +34 -0
- package/template/src/routes/+page.svelte +33 -18
- package/template/package.json +0 -25
- package/template/src/app.html +0 -12
- package/template/tsconfig.json +0 -7
- package/template/vite.config.ts +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fougere/svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1-alpha.0",
|
|
4
4
|
"description": "Fougere's four primitives as Svelte stores — host-independent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fougere",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"template"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@fougere/app": "0.
|
|
35
|
-
"@fougere/core": "0.
|
|
34
|
+
"@fougere/app": "0.15.1-alpha.0",
|
|
35
|
+
"@fougere/core": "0.15.1-alpha.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"svelte": "^5.53.4",
|
|
39
39
|
"vitest": "^4.1.0",
|
|
40
|
-
"@fougere/schema": "0.
|
|
40
|
+
"@fougere/schema": "0.15.1-alpha.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"svelte": "^5.0.0"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"create": [
|
|
3
|
+
"sv@0.17",
|
|
4
|
+
"create",
|
|
5
|
+
"{dir}",
|
|
6
|
+
"--template",
|
|
7
|
+
"minimal",
|
|
8
|
+
"--types",
|
|
9
|
+
"ts",
|
|
10
|
+
"--no-add-ons",
|
|
11
|
+
"--no-install"
|
|
12
|
+
],
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@fougere/core": "latest",
|
|
15
|
+
"@fougere/schema": "latest",
|
|
16
|
+
"@fougere/defaults": "latest",
|
|
17
|
+
"@fougere/container": "latest",
|
|
18
|
+
"better-sqlite3": "^13.0.3",
|
|
19
|
+
"kysely": "^0.28.17",
|
|
20
|
+
"@fougere/svelte": "latest"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@fougere/vite": "latest"
|
|
24
|
+
},
|
|
25
|
+
"wire": {
|
|
26
|
+
"kind": "vitePlugin",
|
|
27
|
+
"file": "vite.config.ts",
|
|
28
|
+
"from": "@fougere/vite",
|
|
29
|
+
"imported": "fougere",
|
|
30
|
+
"options": {
|
|
31
|
+
"root": "../.."
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,19 +1,34 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<main>
|
|
13
|
-
<h1>Fougere</h1>
|
|
14
|
-
{#if $rows.loading}<p>Loading…</p>{/if}
|
|
15
|
-
{#if $rows.error}<p style="color:#b00">{$rows.error.message}</p>{/if}
|
|
16
|
-
{#each $rows.items as row (row.id)}
|
|
17
|
-
<pre>{JSON.stringify(row, null, 2)}</pre>
|
|
18
|
-
{/each}
|
|
1
|
+
<main class="welcome">
|
|
2
|
+
<h1>🌿 Fougere</h1>
|
|
3
|
+
<p class="host">Your app is running on <strong>SvelteKit</strong>.</p>
|
|
4
|
+
<ol>
|
|
5
|
+
<li><a href="https://fougere.dev/docs/guides/business-logic">Handle your business logic <span>→</span></a></li>
|
|
6
|
+
<li><a href="https://fougere.dev/docs/guides/data">Store your data <span>→</span></a></li>
|
|
7
|
+
<li><a href="https://fougere.dev/docs/guides/topology">Shape your topology <span>→</span></a></li>
|
|
8
|
+
</ol>
|
|
9
|
+
<footer><a href="https://fougere.dev/docs">Docs</a></footer>
|
|
19
10
|
</main>
|
|
11
|
+
|
|
12
|
+
<style>
|
|
13
|
+
:global(:root) {
|
|
14
|
+
color-scheme: light dark;
|
|
15
|
+
--ink: #25372d; --muted: #65736a; --line: #dce3d9; --green: #38714c; --wash: #eaf0e6; --bg: #f7f8f4;
|
|
16
|
+
}
|
|
17
|
+
@media (prefers-color-scheme: dark) {
|
|
18
|
+
:global(:root) { --ink: #e0e8df; --muted: #9ca99e; --line: #303c32; --green: #9bc99d; --wash: #29392c; --bg: #151c18; }
|
|
19
|
+
}
|
|
20
|
+
:global(body) { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 system-ui, sans-serif; }
|
|
21
|
+
.welcome { max-width: 520px; margin: 0 auto; padding: 64px 24px 40px; }
|
|
22
|
+
.welcome h1 { margin: 0; font-size: 20px; font-weight: 600; }
|
|
23
|
+
.welcome .host { margin: 12px 0 40px; color: var(--muted); }
|
|
24
|
+
.welcome .host strong { color: var(--ink); font-weight: 500; }
|
|
25
|
+
.welcome ol { margin: 0; padding-left: 32px; }
|
|
26
|
+
.welcome li { padding-left: 8px; border-bottom: 1px solid var(--line); }
|
|
27
|
+
.welcome li::marker { color: var(--muted); font-size: 12px; }
|
|
28
|
+
.welcome li a { display: flex; justify-content: space-between; gap: 20px; padding: 17px 12px; border-radius: 6px; color: inherit; font-size: 18px; text-decoration: none; }
|
|
29
|
+
.welcome li a span { color: var(--muted); }
|
|
30
|
+
.welcome li:first-child a { background: var(--wash); color: var(--green); font-weight: 600; }
|
|
31
|
+
.welcome li a:hover { background: var(--wash); color: var(--green); }
|
|
32
|
+
.welcome footer { margin-top: 32px; font-size: 13px; }
|
|
33
|
+
.welcome footer a { color: var(--muted); }
|
|
34
|
+
</style>
|
package/template/package.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fougere-app",
|
|
3
|
-
"private": true,
|
|
4
|
-
"type": "module",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"dev": "vite dev",
|
|
7
|
-
"build": "vite build"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"@fougere/core": "latest",
|
|
11
|
-
"@fougere/schema": "latest",
|
|
12
|
-
"@fougere/svelte": "latest",
|
|
13
|
-
"@fougere/defaults": "latest",
|
|
14
|
-
"@fougere/container": "latest",
|
|
15
|
-
"better-sqlite3": "^13.0.3",
|
|
16
|
-
"kysely": "^0.28.17"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@fougere/vite": "latest",
|
|
20
|
-
"@sveltejs/kit": "^2.0.0",
|
|
21
|
-
"@sveltejs/vite-plugin-svelte": "^6.0.0",
|
|
22
|
-
"svelte": "^5.0.0",
|
|
23
|
-
"vite": "^8.0.0"
|
|
24
|
-
}
|
|
25
|
-
}
|
package/template/src/app.html
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<meta name="text-scale" content="scale" />
|
|
7
|
-
%sveltekit.head%
|
|
8
|
-
</head>
|
|
9
|
-
<body data-sveltekit-preload-data="hover">
|
|
10
|
-
<div style="display: contents">%sveltekit.body%</div>
|
|
11
|
-
</body>
|
|
12
|
-
</html>
|
package/template/tsconfig.json
DELETED
package/template/vite.config.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
2
|
-
import { fougere } from '@fougere/vite';
|
|
3
|
-
import { sveltekit } from '@sveltejs/kit/vite';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The same `fougere()` the React and TanStack starters use — it knows nothing about which
|
|
7
|
-
* host renders. It states the packages a boot loads at runtime, keeps class names through
|
|
8
|
-
* minification, and writes `@fronds/facade`.
|
|
9
|
-
*/
|
|
10
|
-
export default defineConfig({
|
|
11
|
-
// Fronds are shared at the workspace root, two levels up from apps/<name>.
|
|
12
|
-
plugins: [fougere({ root: '../..' }), sveltekit()],
|
|
13
|
-
});
|