uniweb 0.13.16 → 0.14.0

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.
Files changed (65) hide show
  1. package/README.md +1 -1
  2. package/package.json +7 -7
  3. package/partials/agents.md +51 -0
  4. package/src/backend/client.js +173 -40
  5. package/src/backend/data-bundle.js +15 -3
  6. package/src/backend/foundation-bring-along.js +76 -21
  7. package/src/backend/payment-handoff.js +28 -9
  8. package/src/backend/site-media.js +147 -19
  9. package/src/backend/site-sync.js +362 -40
  10. package/src/commands/add.js +575 -273
  11. package/src/commands/build.js +160 -57
  12. package/src/commands/clone.js +79 -26
  13. package/src/commands/content.js +11 -7
  14. package/src/commands/deploy.js +80 -32
  15. package/src/commands/dev.js +39 -17
  16. package/src/commands/docs.js +44 -16
  17. package/src/commands/doctor.js +338 -82
  18. package/src/commands/export.js +15 -7
  19. package/src/commands/handoff.js +6 -2
  20. package/src/commands/i18n.js +248 -99
  21. package/src/commands/inspect.js +48 -19
  22. package/src/commands/invite.js +9 -3
  23. package/src/commands/org.js +19 -5
  24. package/src/commands/publish.js +229 -60
  25. package/src/commands/pull.js +157 -48
  26. package/src/commands/push.js +144 -42
  27. package/src/commands/refresh.js +37 -10
  28. package/src/commands/register.js +235 -64
  29. package/src/commands/rename.js +126 -46
  30. package/src/commands/runtime.js +74 -24
  31. package/src/commands/status.js +48 -15
  32. package/src/commands/sync.js +7 -2
  33. package/src/commands/template.js +12 -4
  34. package/src/commands/update.js +263 -87
  35. package/src/commands/validate.js +115 -32
  36. package/src/framework-index.json +16 -14
  37. package/src/index.js +298 -145
  38. package/src/templates/fetchers/github.js +7 -7
  39. package/src/templates/fetchers/npm.js +3 -3
  40. package/src/templates/fetchers/release.js +21 -18
  41. package/src/templates/index.js +34 -12
  42. package/src/templates/processor.js +44 -12
  43. package/src/templates/resolver.js +42 -15
  44. package/src/templates/validator.js +14 -7
  45. package/src/utils/asset-upload.js +90 -22
  46. package/src/utils/code-upload.js +62 -37
  47. package/src/utils/config.js +31 -10
  48. package/src/utils/dep-survey.js +33 -7
  49. package/src/utils/destination-prompt.js +27 -17
  50. package/src/utils/git.js +66 -22
  51. package/src/utils/host-prompt.js +4 -3
  52. package/src/utils/install-integrity.js +8 -4
  53. package/src/utils/interactive.js +3 -3
  54. package/src/utils/json-file.js +6 -2
  55. package/src/utils/names.js +15 -6
  56. package/src/utils/placement.js +16 -8
  57. package/src/utils/registry-auth.js +185 -57
  58. package/src/utils/registry-orgs.js +142 -53
  59. package/src/utils/runtime-upload.js +52 -14
  60. package/src/utils/scaffold.js +55 -14
  61. package/src/utils/site-content-refs.js +3 -1
  62. package/src/utils/update-check.js +43 -17
  63. package/src/utils/workspace.js +13 -7
  64. package/src/versions.js +18 -7
  65. package/templates/site/_gitignore +5 -0
@@ -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(` ${c.dim}Upload the contents of ${c.reset}${c.cyan}dist/${c.reset}${c.dim} to your static host. Examples:${c.reset}`)
103
- console.log(` ${c.dim}Netlify:${c.reset} ${c.cyan}netlify deploy --prod --dir=dist${c.reset}`)
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(` ${c.dim}S3:${c.reset} ${c.cyan}aws s3 sync dist/ s3://your-bucket/${c.reset}`)
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(` ${c.dim}For Uniweb hosting instead, use ${c.reset}${c.cyan}uniweb publish${c.reset}${c.dim}.${c.reset}`)
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
  }
@@ -8,8 +8,12 @@
8
8
  */
9
9
 
10
10
  export async function handoff() {
11
- console.error("\x1b[31m✗\x1b[0m `uniweb handoff` isn't available on the new backend yet.")
12
- console.error(' The legacy site-handoff flow was retired with the PHP backend.')
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
  }