meno-astro 0.1.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/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # meno-astro
2
+
3
+ Runtime helpers + the round-trippable `.astro` dialect (`emit`/`parse`) that lets
4
+ [Meno](https://github.com/meno-so) use Astro files as a project's source-of-truth format.
5
+
6
+ Meno-generated Astro projects depend on this package. It provides:
7
+
8
+ - **`meno-astro/integration`** — the Astro integration that maps a project's i18n
9
+ config into Astro's native i18n routing and injects the locale middleware.
10
+ - **`meno-astro/components`** — shared `.astro` components (BaseLayout, Link, …).
11
+ - **`meno-astro/runtime/localeMiddleware`** — the per-render locale context.
12
+ - **`meno-astro`** / **`meno-astro/dialect`** — runtime helpers and the dialect codec.
13
+
14
+ ## Usage
15
+
16
+ ```js
17
+ // astro.config.mjs
18
+ import { defineConfig } from 'astro/config';
19
+ import meno from 'meno-astro/integration';
20
+
21
+ export default defineConfig({
22
+ integrations: [meno()],
23
+ });
24
+ ```
25
+
26
+ Requires `astro` (peer) and pulls in `meno-core`.