uniweb 0.12.20 → 0.12.22
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 +30 -1
- package/package.json +7 -7
- package/partials/agents.md +41 -11
- package/partials/config-reference.hbs +1 -2
- package/src/commands/add.js +1 -87
- package/src/commands/build.js +2 -2
- package/src/commands/clone.js +337 -0
- package/src/commands/content.js +199 -0
- package/src/commands/deploy.js +27 -6
- package/src/commands/docs.js +2 -3
- package/src/commands/doctor.js +24 -5
- package/src/commands/org.js +66 -0
- package/src/commands/publish.js +4 -3
- package/src/commands/pull.js +238 -0
- package/src/commands/push.js +400 -0
- package/src/commands/register.js +274 -0
- package/src/commands/rename.js +10 -5
- package/src/commands/update.js +211 -245
- package/src/commands/validate.js +288 -0
- package/src/framework-index.json +11 -10
- package/src/index.js +155 -26
- package/src/templates/processor.js +41 -19
- package/src/utils/config.js +30 -2
- package/src/utils/dep-survey.js +99 -0
- package/src/utils/json-file.js +68 -0
- package/src/utils/placement.js +100 -0
- package/src/utils/pm.js +29 -0
- package/src/utils/registry-auth.js +380 -0
- package/src/utils/registry-orgs.js +179 -0
- package/src/utils/scaffold.js +18 -5
- package/src/utils/site-content-refs.js +21 -0
- package/src/utils/update-check.js +4 -2
- package/src/versions.js +11 -4
- package/templates/foundation/_gitignore +5 -0
- package/templates/site/_gitignore +5 -0
- package/templates/site/package.json.hbs +2 -2
- package/templates/workspace/_gitignore +33 -0
package/src/versions.js
CHANGED
|
@@ -76,9 +76,16 @@ function getFrameworkRoot() {
|
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* Read the current on-disk version of a specific `@uniweb/*` package by
|
|
79
|
-
* looking up `framework/<last-segment>/package.json`. Returns
|
|
80
|
-
*
|
|
81
|
-
* disk (i.e. the CLI is running from npm, not from the workspace).
|
|
79
|
+
* looking up `framework/<last-segment>/package.json`. Returns the version
|
|
80
|
+
* string verbatim (e.g. `0.7.11`), or null if the package isn't present
|
|
81
|
+
* on disk (i.e. the CLI is running from npm, not from the workspace).
|
|
82
|
+
*
|
|
83
|
+
* Returns the version *exact*, not as a caret range, to match the shape
|
|
84
|
+
* published-CLI direct deps take after pnpm resolves `workspace:*` at
|
|
85
|
+
* publish time. Both modes converge on identical specs in
|
|
86
|
+
* `getResolvedVersions()`, so `uniweb update` and the scaffolder produce
|
|
87
|
+
* the same `package.json` whether the CLI ran from npm or from this
|
|
88
|
+
* monorepo.
|
|
82
89
|
*/
|
|
83
90
|
function readWorkspaceVersion(packageName) {
|
|
84
91
|
const root = getFrameworkRoot()
|
|
@@ -90,7 +97,7 @@ function readWorkspaceVersion(packageName) {
|
|
|
90
97
|
try {
|
|
91
98
|
const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'))
|
|
92
99
|
if (pkg.name === packageName && pkg.version) {
|
|
93
|
-
return
|
|
100
|
+
return pkg.version
|
|
94
101
|
}
|
|
95
102
|
} catch {}
|
|
96
103
|
return null
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@uniweb/runtime": "{{version "@uniweb/runtime"}}",
|
|
14
|
-
"{{foundationName}}": "{{foundationPath}}"
|
|
13
|
+
"@uniweb/runtime": "{{version "@uniweb/runtime"}}"{{#if foundationPath}},
|
|
14
|
+
"{{foundationName}}": "{{foundationPath}}"{{/if}}
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@tailwindcss/vite": "^4.0.0",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules/
|
|
3
|
+
|
|
4
|
+
# Build outputs
|
|
5
|
+
dist/
|
|
6
|
+
.uniweb/
|
|
7
|
+
|
|
8
|
+
# Generated entry (regenerated by `uniweb build`; never committed)
|
|
9
|
+
_entry.generated.js
|
|
10
|
+
|
|
11
|
+
# Local mock-cloud state (when running `uniweb publish --local` or
|
|
12
|
+
# the unicloud dev server inside this workspace)
|
|
13
|
+
.unicloud/
|
|
14
|
+
|
|
15
|
+
# Environment
|
|
16
|
+
.env
|
|
17
|
+
.env.local
|
|
18
|
+
.env.*.local
|
|
19
|
+
|
|
20
|
+
# IDE
|
|
21
|
+
.vscode/
|
|
22
|
+
.idea/
|
|
23
|
+
*.swp
|
|
24
|
+
*.swo
|
|
25
|
+
|
|
26
|
+
# OS
|
|
27
|
+
.DS_Store
|
|
28
|
+
Thumbs.db
|
|
29
|
+
|
|
30
|
+
# Logs
|
|
31
|
+
*.log
|
|
32
|
+
npm-debug.log*
|
|
33
|
+
pnpm-debug.log*
|