@adukiorg/anza 0.2.6 → 0.2.8

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/CHANGELOG.md CHANGED
@@ -17,6 +17,26 @@ Versioning follows [Semantic Versioning](https://semver.org/).
17
17
 
18
18
  ---
19
19
 
20
+ ## [0.2.8] — 2026-06-09
21
+
22
+ ### Fixed
23
+
24
+ - Remove empty `importmap.json` from scaffold — HTML now points to `/dist/importmap.json`
25
+ - Category barrel files for generated doc pages (`docs/*/index.js`)
26
+ - Docs root route (`/docs`) uses `entry/` folder like other pages
27
+
28
+ ---
29
+
30
+ ## [0.2.7] — 2026-06-09
31
+
32
+ ### Fixed
33
+
34
+ - Scaffold structure: landing page moved to `src/pages/entry/` instead of `src/pages/index/`
35
+ - Node.js and Rust create commands generate consistent `src/pages/index.js` barrel file
36
+ - Docs conversion task (`tasks/docs.js`) for markdown-to-anza-page generation
37
+
38
+ ---
39
+
20
40
  ## [0.2.6] — 2026-06-09
21
41
 
22
42
  ### Fixed
Binary file
Binary file
Binary file
Binary file
Binary file
package/bin/create/run.js CHANGED
@@ -13,7 +13,7 @@ import * as write from './write.js';
13
13
  const DIRS = [
14
14
  'src',
15
15
  'src/pages',
16
- 'src/pages/index',
16
+ 'src/pages/entry',
17
17
  'src/docks',
18
18
  'src/views',
19
19
  'src/parts',
@@ -22,8 +22,6 @@ const DIRS = [
22
22
  'src/styles',
23
23
  ];
24
24
 
25
- const MAP = JSON.stringify({ imports: {} }, null, 2) + '\n';
26
-
27
25
  const HTML = (name) => `<!DOCTYPE html>
28
26
  <html lang="en">
29
27
  <head>
@@ -31,7 +29,7 @@ const HTML = (name) => `<!DOCTYPE html>
31
29
  <meta name="viewport" content="width=device-width, initial-scale=1" />
32
30
  <title>${name}</title>
33
31
 
34
- <script type="importmap" src="/importmap.json"></script>
32
+ <script type="importmap" src="/dist/importmap.json"></script>
35
33
 
36
34
  <link rel="stylesheet" href="/dist/tokens/index.css" />
37
35
  <link rel="stylesheet" href="/dist/styles/index.css" />
@@ -56,7 +54,7 @@ navigator.serviceWorker.register('/dist/sw.js');
56
54
  dock('main', { parent: 'body' });
57
55
 
58
56
  // Pages
59
- import './pages/index/index.js';
57
+ import './pages/index.js';
60
58
  `;
61
59
 
62
60
  const SW = `/**
@@ -86,7 +84,7 @@ self.addEventListener('fetch', (e) => {
86
84
  `;
87
85
 
88
86
  const PAGE = `/**
89
- * src/pages/index/index.js — welcome page
87
+ * src/entry/index.js — landing page
90
88
  */
91
89
  import { page } from '@adukiorg/anza/ui';
92
90
 
@@ -97,6 +95,14 @@ page('/', {
97
95
  }, import.meta.url);
98
96
  `;
99
97
 
98
+ const BARREL = `/**
99
+ * src/pages/index.js
100
+ *
101
+ * Barrel — imports all app pages.
102
+ */
103
+ import './entry/index.js';
104
+ `;
105
+
100
106
  const MARKUP = (name) => `<article class="welcome">
101
107
  <h1>Welcome to ${name}</h1>
102
108
  <p>Your anza app is running.</p>
@@ -177,13 +183,13 @@ export function run(target, name, library) {
177
183
  }
178
184
  }
179
185
 
180
- write.write(join(target, 'importmap.json'), MAP);
181
186
  write.write(join(target, 'src', 'index.html'), HTML(name));
182
187
  write.write(join(target, 'src', 'app.js'), APP);
183
188
  write.write(join(target, 'src', 'sw.js'), SW);
184
- write.write(join(target, 'src', 'pages', 'index', 'index.js'), PAGE);
185
- write.write(join(target, 'src', 'pages', 'index', 'index.html'), MARKUP(name));
186
- write.write(join(target, 'src', 'pages', 'index', 'index.css'), STYLE);
189
+ write.write(join(target, 'src', 'pages', 'entry', 'index.js'), PAGE);
190
+ write.write(join(target, 'src', 'pages', 'entry', 'index.html'), MARKUP(name));
191
+ write.write(join(target, 'src', 'pages', 'entry', 'index.css'), STYLE);
192
+ write.write(join(target, 'src', 'pages', 'index.js'), BARREL);
187
193
 
188
194
  const manifest = JSON.stringify({
189
195
  name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adukiorg/anza",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Anza web platform library — reactive state, networking, offline, animations, custom elements. Zero build step. Pure browser ESM.",
5
5
  "author": "fescii",
6
6
  "license": "MIT",