uniweb 0.7.8 → 0.7.9

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 CHANGED
@@ -38,13 +38,7 @@ Edit files in `site/pages/` and `foundation/src/sections/` to see changes instan
38
38
 
39
39
  **See them live:** [View all template demos](https://uniweb.github.io/templates/)
40
40
 
41
- You can also skip the interactive prompt with `--template`:
42
-
43
- ```bash
44
- npm create uniweb my-site -- --template docs
45
- ```
46
-
47
- or
41
+ Or skip the interactive prompt:
48
42
 
49
43
  ```bash
50
44
  pnpm create uniweb my-site --template docs
@@ -259,13 +253,13 @@ The workspace grows organically. `add` handles placement, wires dependencies, up
259
253
  **Or start blank and build up:**
260
254
 
261
255
  ```bash
262
- npm create uniweb acme -- --template blank
256
+ pnpm create uniweb acme --template blank
263
257
  cd acme
264
- npm install
258
+ pnpm install
265
259
  npx uniweb add foundation
266
260
  npx uniweb add site
267
- npm install
268
- npm run dev
261
+ pnpm install
262
+ pnpm dev
269
263
  ```
270
264
 
271
265
  ## The Bigger Picture
@@ -364,8 +358,9 @@ packages:
364
358
  - site
365
359
  ```
366
360
 
361
+ In `package.json` (for npm compatibility):
362
+
367
363
  ```json
368
- // package.json (for npm compatibility)
369
364
  {
370
365
  "workspaces": ["foundation", "site"]
371
366
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uniweb",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "Create structured Vite + React sites with content/code separation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,9 +41,9 @@
41
41
  "js-yaml": "^4.1.0",
42
42
  "prompts": "^2.4.2",
43
43
  "tar": "^7.0.0",
44
- "@uniweb/build": "0.7.5",
45
44
  "@uniweb/kit": "0.6.1",
46
- "@uniweb/runtime": "0.6.1",
47
- "@uniweb/core": "0.5.1"
45
+ "@uniweb/build": "0.7.5",
46
+ "@uniweb/core": "0.5.1",
47
+ "@uniweb/runtime": "0.6.1"
48
48
  }
49
49
  }
@@ -316,6 +316,11 @@ async function addSite(rootDir, projectName, opts, pm = 'pnpm') {
316
316
  }
317
317
  log('')
318
318
  log(`Next: ${colors.cyan}${installCmd(pm)} && ${filterCmd(pm, siteName, 'dev')}${colors.reset}`)
319
+ if (!opts.from) {
320
+ log('')
321
+ log(`${colors.dim}To add your first page, create ${target}/pages/home/page.yml and a .md file.${colors.reset}`)
322
+ log(`${colors.dim}Or use --from to start with template content: uniweb add site --from starter${colors.reset}`)
323
+ }
319
324
  }
320
325
 
321
326
  /**
@@ -475,19 +480,6 @@ async function resolveFoundation(rootDir, foundationFlag) {
475
480
  }
476
481
 
477
482
  if (foundations.length === 0) {
478
- const response = await prompts({
479
- type: 'select',
480
- name: 'choice',
481
- message: 'No foundations found. Proceed without one?',
482
- choices: [
483
- { title: 'None', value: 'none', description: 'Proceed without a foundation' },
484
- ],
485
- }, {
486
- onCancel: () => {
487
- log('\nCancelled.')
488
- process.exit(0)
489
- },
490
- })
491
483
  return null
492
484
  }
493
485