create-vanillaforge 1.0.1 → 1.0.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vanillaforge",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Scaffold a new VanillaForge project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,7 +26,7 @@ export class HomeComponent extends BaseComponent {
26
26
  getTemplate() {
27
27
  return `
28
28
  <div style="max-width:520px;margin:80px auto;text-align:center">
29
- <h1 style="margin-bottom:8px">{{project-name}}</h1>
29
+ <h1 style="margin-bottom:8px">${this.app?.config?.appName ?? '{{project-name}}'}</h1>
30
30
  <p style="color:var(--vf-text-muted);margin-bottom:32px">
31
31
  Count: <strong>${this.state.count}</strong>
32
32
  </p>
@@ -10,7 +10,7 @@ class HomeComponent extends BaseComponent {
10
10
  getTemplate() {
11
11
  return `
12
12
  <div style="font-family:system-ui;max-width:480px;margin:80px auto;text-align:center">
13
- <h1>VanillaForge</h1>
13
+ <h1>${this.app?.config?.appName ?? 'VanillaForge'}</h1>
14
14
  <p style="color:#666;margin-bottom:32px">Count: <strong>${this.state.count}</strong></p>
15
15
  <button data-action="increment"
16
16
  style="padding:10px 24px;border:none;border-radius:6px;background:#3b82f6;color:#fff;cursor:pointer;font-size:1rem">