@fluixi/cdn 0.1.0-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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Fluixi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @fluixi/cdn
2
+
3
+ This package provides import maps for the @fluixi framework, pre-generated and ready to use in the browser. It lists all the bare specifiers a browser needs to resolve, ensuring that every transitive subpath is included. These maps are pinned to the version of this package, ensuring consistency and reliability.
4
+
5
+ - `min.json` — includes `@fluixi/core`, `@fluixi/dom`, `@fluixi/utils`, and the graph behind them. Enough to write components by hand; `@fluixi/core` re-exports most of the DOM and reactive surface, so one import covers most of it.
6
+ - `templates.json` — adds compiling `html`` in the page. Load it with `min.json`.
7
+ - `full.json` — everything a browser can use, in one file.
8
+
9
+ The contents of the maps should be placed inline in a `<script type="importmap">` tag. Here is an example:
10
+
11
+ ```html
12
+ <script type="importmap">
13
+ { "imports": { "…": "paste the contents of min.json here" } }
14
+ </script>
15
+ <script type="module">
16
+ import { render, signal } from '@fluixi/core';
17
+ </script>
18
+ ```
19
+
20
+ A page that would rather not paste can fetch the file and add the map itself, which works because a map may be added before the first module loads:
21
+
22
+ ```html
23
+ <script type="module">
24
+ const map = await fetch('https://unpkg.com/@fluixi/cdn/dist/min.json').then((r) => r.json());
25
+ const tag = document.createElement('script');
26
+ tag.type = 'importmap';
27
+ tag.textContent = JSON.stringify(map);
28
+ document.head.appendChild(tag);
29
+
30
+ const { render, signal } = await import('@fluixi/core');
31
+ </script>
32
+ ```
33
+
34
+ Several maps in one page need Chromium 133 or newer, and `full.json` is the single-file way around that.
package/dist/full.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "imports": {
3
+ "@fluixi/compiler/compile": "https://unpkg.com/@fluixi/compiler@1.0.0-alpha.81/dist/lower/compile-template.mjs",
4
+ "@fluixi/core": "https://unpkg.com/@fluixi/core@1.0.0-alpha.81/dist/src/index.mjs",
5
+ "@fluixi/dom": "https://unpkg.com/@fluixi/dom@1.0.0-alpha.81/dist/index.mjs",
6
+ "@fluixi/head": "https://unpkg.com/@fluixi/head@1.0.0-alpha.48/dist/index.js",
7
+ "@fluixi/reactive": "https://unpkg.com/@fluixi/reactive@1.0.0-alpha.81/dist/lib/index.mjs",
8
+ "@fluixi/reactive/signal": "https://unpkg.com/@fluixi/reactive@1.0.0-alpha.81/dist/lib/signal/index.mjs",
9
+ "@fluixi/reactive/version": "https://unpkg.com/@fluixi/reactive@1.0.0-alpha.81/dist/version.generated.mjs",
10
+ "@fluixi/router": "https://unpkg.com/@fluixi/router@0.1.2-alpha.3/dist/index.js",
11
+ "@fluixi/template-parser": "https://unpkg.com/@fluixi/template-parser@0.1.0-alpha.4/dist/index.mjs",
12
+ "@fluixi/template-runtime": "https://unpkg.com/@fluixi/template-runtime@0.1.0-alpha.1/dist/index.mjs",
13
+ "@fluixi/utils": "https://unpkg.com/@fluixi/utils@1.0.0-alpha.81/dist/index.mjs",
14
+ "@fluixi/utils/array": "https://unpkg.com/@fluixi/utils@1.0.0-alpha.81/dist/lib/array/index.mjs",
15
+ "@fluixi/utils/functions": "https://unpkg.com/@fluixi/utils@1.0.0-alpha.81/dist/lib/functions/index.mjs",
16
+ "@fluixi/utils/object": "https://unpkg.com/@fluixi/utils@1.0.0-alpha.81/dist/lib/object/index.mjs",
17
+ "@fluixi/utils/primitive": "https://unpkg.com/@fluixi/utils@1.0.0-alpha.81/dist/lib/primitive/index.mjs"
18
+ }
19
+ }
package/dist/min.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "imports": {
3
+ "@fluixi/core": "https://unpkg.com/@fluixi/core@1.0.0-alpha.81/dist/src/index.mjs",
4
+ "@fluixi/dom": "https://unpkg.com/@fluixi/dom@1.0.0-alpha.81/dist/index.mjs",
5
+ "@fluixi/reactive": "https://unpkg.com/@fluixi/reactive@1.0.0-alpha.81/dist/lib/index.mjs",
6
+ "@fluixi/reactive/signal": "https://unpkg.com/@fluixi/reactive@1.0.0-alpha.81/dist/lib/signal/index.mjs",
7
+ "@fluixi/reactive/version": "https://unpkg.com/@fluixi/reactive@1.0.0-alpha.81/dist/version.generated.mjs",
8
+ "@fluixi/utils": "https://unpkg.com/@fluixi/utils@1.0.0-alpha.81/dist/index.mjs",
9
+ "@fluixi/utils/array": "https://unpkg.com/@fluixi/utils@1.0.0-alpha.81/dist/lib/array/index.mjs",
10
+ "@fluixi/utils/functions": "https://unpkg.com/@fluixi/utils@1.0.0-alpha.81/dist/lib/functions/index.mjs",
11
+ "@fluixi/utils/object": "https://unpkg.com/@fluixi/utils@1.0.0-alpha.81/dist/lib/object/index.mjs",
12
+ "@fluixi/utils/primitive": "https://unpkg.com/@fluixi/utils@1.0.0-alpha.81/dist/lib/primitive/index.mjs"
13
+ }
14
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "imports": {
3
+ "@fluixi/compiler/compile": "https://unpkg.com/@fluixi/compiler@1.0.0-alpha.81/dist/lower/compile-template.mjs",
4
+ "@fluixi/template-parser": "https://unpkg.com/@fluixi/template-parser@0.1.0-alpha.4/dist/index.mjs",
5
+ "@fluixi/template-runtime": "https://unpkg.com/@fluixi/template-runtime@0.1.0-alpha.1/dist/index.mjs"
6
+ }
7
+ }
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@fluixi/cdn",
3
+ "version": "0.1.0-alpha.0",
4
+ "license": "MIT",
5
+ "private": false,
6
+ "description": "pre-generated import maps for loading the framework from a CDN: the minimum for writing components by hand, the addition that compiles html`` in the page, and everything",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/",
9
+ "access": "public"
10
+ },
11
+ "type": "module",
12
+ "files": [
13
+ "dist",
14
+ "README.md",
15
+ "LICENSE"
16
+ ],
17
+ "exports": {
18
+ "./package.json": "./package.json",
19
+ "./min.json": "./dist/min.json",
20
+ "./templates.json": "./dist/templates.json",
21
+ "./full.json": "./dist/full.json"
22
+ },
23
+ "devDependencies": {
24
+ "@fluixi/template-runtime": "0.1.0-alpha.1"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/fluixi/core.git",
29
+ "directory": "packages/cdn"
30
+ },
31
+ "scripts": {
32
+ "build": "node scripts/build-maps.mjs"
33
+ }
34
+ }