uniweb 1.24.5 → 1.24.6
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 +2 -2
- package/partials/start.md +12 -2
- package/src/commands/start.js +1 -0
- package/src/framework-index.json +2 -2
- package/src/index.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.6",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.5.21",
|
|
44
44
|
"@uniweb/core": "~1.5.1",
|
|
45
|
-
"@uniweb/schemas": "~1.6.7",
|
|
46
45
|
"@uniweb/semantic-parser": "~1.13.0",
|
|
46
|
+
"@uniweb/schemas": "~1.6.7",
|
|
47
47
|
"@uniweb/content-writer": "~1.3.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
package/partials/start.md
CHANGED
|
@@ -28,7 +28,9 @@ prints an address to finish something in a browser, open it for them and say wha
|
|
|
28
28
|
for.
|
|
29
29
|
|
|
30
30
|
Uniweb needs Node.js 22.12 or later. If `node --version` shows an older one, install a
|
|
31
|
-
current one yourself.
|
|
31
|
+
current one yourself. Install Git too if `git --version` fails: it keeps the history of
|
|
32
|
+
your work, and it's what lets edits made in the app merge with yours. On a Mac, that
|
|
33
|
+
check can open a window offering the developer tools: tell them to accept it.
|
|
32
34
|
|
|
33
35
|
## Work with them
|
|
34
36
|
|
|
@@ -43,6 +45,8 @@ current one yourself.
|
|
|
43
45
|
- Keep anything they may want to change in markdown or in a param its `meta.js` declares,
|
|
44
46
|
not in a component's code. That is what they can edit in the app.
|
|
45
47
|
- Show them the site on their computer before you ask them to sign in.
|
|
48
|
+
- Commit each time something works, with a message that says what changed, so either of
|
|
49
|
+
you can go back to it.
|
|
46
50
|
{{#unless project}}
|
|
47
51
|
{{#if nearby}}
|
|
48
52
|
|
|
@@ -87,7 +91,7 @@ cd <name>
|
|
|
87
91
|
`<name>` is lowercase letters, digits and hyphens. `create .` takes its name from the
|
|
88
92
|
folder, or from `--name <name>`, replaces a `README.md` or `.gitignore` already there, and
|
|
89
93
|
stops if any other file is in its way. `create` asks no questions when it runs without a
|
|
90
|
-
terminal.
|
|
94
|
+
terminal, and starts the project's git repository.
|
|
91
95
|
{{/if}}
|
|
92
96
|
|
|
93
97
|
{{#if starter}}
|
|
@@ -95,6 +99,12 @@ terminal.
|
|
|
95
99
|
convention, to replace as you build. `--template none` is the same project without them.
|
|
96
100
|
{{else if none}}
|
|
97
101
|
`none` is a project with no section types or pages: you build them all.
|
|
102
|
+
{{else if paste}}
|
|
103
|
+
`paste` runs a React design as it is: replace `src/sections/App.jsx` with theirs, and the
|
|
104
|
+
site shows it. A picture or a web address you rebuild there instead. That is only the
|
|
105
|
+
start, because they can edit in the app only what has left the code. Take it apart as
|
|
106
|
+
[Converting Existing Designs](https://uniweb.io/docs/development/converting-existing.md)
|
|
107
|
+
says: named section types, their text in markdown, its colors in `theme.yml`.
|
|
98
108
|
{{else}}
|
|
99
109
|
`{{template}}` is a working site: its section types are in `src/`, its sample content in
|
|
100
110
|
`site/`. Keep what fits, replace all the sample content with what they asked for, and
|
package/src/commands/start.js
CHANGED
package/src/framework-index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-10-
|
|
3
|
+
"generatedAt": "2026-10-31T02:20:56.213Z",
|
|
4
4
|
"packages": {
|
|
5
5
|
"@uniweb/api": {
|
|
6
6
|
"version": "1.6.7"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"version": "1.1.2"
|
|
55
55
|
},
|
|
56
56
|
"@uniweb/templates": {
|
|
57
|
-
"version": "1.1.
|
|
57
|
+
"version": "1.1.9"
|
|
58
58
|
},
|
|
59
59
|
"@uniweb/theming": {
|
|
60
60
|
"version": "1.2.1"
|
package/src/index.js
CHANGED
|
@@ -1400,7 +1400,10 @@ async function main() {
|
|
|
1400
1400
|
)
|
|
1401
1401
|
}
|
|
1402
1402
|
} catch {
|
|
1403
|
-
//
|
|
1403
|
+
// ⛔ Said, not skipped: the project works without git, but it has no history to go back
|
|
1404
|
+
// to and a pull cannot merge, and an agent reading this output has no other way to know.
|
|
1405
|
+
log(` ${colors.yellow}Git is not installed, so this project has no version history.${colors.reset}`)
|
|
1406
|
+
log(` ${colors.dim}Install it, then run: git init && git add -A && git commit -m "Initial commit"${colors.reset}`)
|
|
1404
1407
|
}
|
|
1405
1408
|
}
|
|
1406
1409
|
}
|