uniweb 0.13.17 → 0.14.1
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 +1 -1
- package/package.json +7 -7
- package/partials/agents.md +51 -0
- package/src/backend/client.js +173 -40
- package/src/backend/data-bundle.js +15 -3
- package/src/backend/foundation-bring-along.js +76 -21
- package/src/backend/payment-handoff.js +28 -9
- package/src/backend/site-media.js +147 -19
- package/src/backend/site-sync.js +362 -40
- package/src/commands/add.js +575 -273
- package/src/commands/build.js +160 -57
- package/src/commands/clone.js +79 -26
- package/src/commands/content.js +11 -7
- package/src/commands/deploy.js +80 -32
- package/src/commands/dev.js +39 -17
- package/src/commands/docs.js +44 -16
- package/src/commands/doctor.js +338 -82
- package/src/commands/export.js +15 -7
- package/src/commands/handoff.js +6 -2
- package/src/commands/i18n.js +248 -99
- package/src/commands/inspect.js +48 -19
- package/src/commands/invite.js +9 -3
- package/src/commands/org.js +19 -5
- package/src/commands/publish.js +229 -60
- package/src/commands/pull.js +157 -48
- package/src/commands/push.js +144 -42
- package/src/commands/refresh.js +37 -10
- package/src/commands/register.js +235 -64
- package/src/commands/rename.js +126 -46
- package/src/commands/runtime.js +74 -24
- package/src/commands/status.js +48 -15
- package/src/commands/sync.js +7 -2
- package/src/commands/template.js +12 -4
- package/src/commands/update.js +263 -87
- package/src/commands/validate.js +115 -32
- package/src/framework-index.json +15 -13
- package/src/index.js +298 -145
- package/src/templates/fetchers/github.js +7 -7
- package/src/templates/fetchers/npm.js +3 -3
- package/src/templates/fetchers/release.js +21 -18
- package/src/templates/index.js +34 -12
- package/src/templates/processor.js +44 -12
- package/src/templates/resolver.js +42 -15
- package/src/templates/validator.js +14 -7
- package/src/utils/asset-upload.js +90 -22
- package/src/utils/code-upload.js +62 -37
- package/src/utils/config.js +31 -10
- package/src/utils/dep-survey.js +33 -7
- package/src/utils/destination-prompt.js +27 -17
- package/src/utils/git.js +66 -22
- package/src/utils/host-prompt.js +4 -3
- package/src/utils/install-integrity.js +8 -4
- package/src/utils/interactive.js +3 -3
- package/src/utils/json-file.js +6 -2
- package/src/utils/names.js +15 -6
- package/src/utils/placement.js +16 -8
- package/src/utils/registry-auth.js +185 -57
- package/src/utils/registry-orgs.js +142 -53
- package/src/utils/runtime-upload.js +52 -14
- package/src/utils/scaffold.js +55 -14
- package/src/utils/site-content-refs.js +3 -1
- package/src/utils/update-check.js +43 -17
- package/src/utils/workspace.js +13 -7
- package/src/versions.js +18 -7
- package/templates/site/_gitignore +5 -0
package/src/commands/export.js
CHANGED
|
@@ -36,13 +36,13 @@ const c = {
|
|
|
36
36
|
dim: '\x1b[2m',
|
|
37
37
|
cyan: '\x1b[36m',
|
|
38
38
|
green: '\x1b[32m',
|
|
39
|
-
red: '\x1b[31m'
|
|
39
|
+
red: '\x1b[31m'
|
|
40
40
|
}
|
|
41
41
|
const say = {
|
|
42
42
|
ok: (m) => console.log(`${c.green}✓${c.reset} ${m}`),
|
|
43
43
|
info: (m) => console.log(`${c.cyan}→${c.reset} ${m}`),
|
|
44
44
|
err: (m) => console.error(`${c.red}✗${c.reset} ${m}`),
|
|
45
|
-
dim: (m) => console.log(` ${c.dim}${m}${c.reset}`)
|
|
45
|
+
dim: (m) => console.log(` ${c.dim}${m}${c.reset}`)
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export async function exportSite(args = []) {
|
|
@@ -81,7 +81,7 @@ export async function exportSite(args = []) {
|
|
|
81
81
|
try {
|
|
82
82
|
execSync(`node ${JSON.stringify(process.argv[1])} ${buildArgs.join(' ')}`, {
|
|
83
83
|
cwd: siteDir,
|
|
84
|
-
stdio: 'inherit'
|
|
84
|
+
stdio: 'inherit'
|
|
85
85
|
})
|
|
86
86
|
} catch {
|
|
87
87
|
say.err('Build failed. See output above.')
|
|
@@ -99,10 +99,18 @@ export async function exportSite(args = []) {
|
|
|
99
99
|
console.log('')
|
|
100
100
|
console.log(` ${c.dim}Artifact:${c.reset} ${c.cyan}${distDir}${c.reset}`)
|
|
101
101
|
console.log('')
|
|
102
|
-
console.log(
|
|
103
|
-
|
|
102
|
+
console.log(
|
|
103
|
+
` ${c.dim}Upload the contents of ${c.reset}${c.cyan}dist/${c.reset}${c.dim} to your static host. Examples:${c.reset}`
|
|
104
|
+
)
|
|
105
|
+
console.log(
|
|
106
|
+
` ${c.dim}Netlify:${c.reset} ${c.cyan}netlify deploy --prod --dir=dist${c.reset}`
|
|
107
|
+
)
|
|
104
108
|
console.log(` ${c.dim}Vercel:${c.reset} ${c.cyan}vercel --prod${c.reset}`)
|
|
105
|
-
console.log(
|
|
109
|
+
console.log(
|
|
110
|
+
` ${c.dim}S3:${c.reset} ${c.cyan}aws s3 sync dist/ s3://your-bucket/${c.reset}`
|
|
111
|
+
)
|
|
106
112
|
console.log('')
|
|
107
|
-
console.log(
|
|
113
|
+
console.log(
|
|
114
|
+
` ${c.dim}For Uniweb hosting instead, use ${c.reset}${c.cyan}uniweb publish${c.reset}${c.dim}.${c.reset}`
|
|
115
|
+
)
|
|
108
116
|
}
|
package/src/commands/handoff.js
CHANGED
|
@@ -8,8 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
export async function handoff() {
|
|
11
|
-
console.error(
|
|
12
|
-
|
|
11
|
+
console.error(
|
|
12
|
+
"\x1b[31m✗\x1b[0m `uniweb handoff` isn't available on the new backend yet."
|
|
13
|
+
)
|
|
14
|
+
console.error(
|
|
15
|
+
' The legacy site-handoff flow was retired with the PHP backend.'
|
|
16
|
+
)
|
|
13
17
|
console.error(' Manage client sites from the Uniweb app for now.')
|
|
14
18
|
process.exit(1)
|
|
15
19
|
}
|