create-avocado-site 0.9.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 (49) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +65 -0
  3. package/assets/generated-images/gdrive_1ql_bdk2KM_27u01rkMd8KoiCRJ_R7UOy.webp +0 -0
  4. package/assets/generated-images/gen_1774991902955_0p1i2o.webp +0 -0
  5. package/assets/generated-images/gen_1776458907692_zlrbkg.webp +0 -0
  6. package/assets/generated-images/gen_1788955681679_454dc316.webp +0 -0
  7. package/assets/generated-images/var_1773434968055_8g99nk.webp +0 -0
  8. package/assets/generated-images/var_1773435042084_wvet78.webp +0 -0
  9. package/assets/generated-images/var_1773435061562_6hf8s6.webp +0 -0
  10. package/assets/generated-images/var_1773435080764_6ocahu.webp +0 -0
  11. package/assets/generated-images/var_1773435101045_1y544z.webp +0 -0
  12. package/assets/generated-images/var_1773872370443_poycxy.webp +0 -0
  13. package/assets/generated-images/var_1776858715876_iuu72w.webp +0 -0
  14. package/assets/logos/avocado-hub.svg +7 -0
  15. package/dist/cms-config.d.ts +34 -0
  16. package/dist/cms-config.js +103 -0
  17. package/dist/generator.d.ts +22 -0
  18. package/dist/generator.js +92 -0
  19. package/dist/index.d.ts +2 -0
  20. package/dist/index.js +109 -0
  21. package/dist/instructions.d.ts +19 -0
  22. package/dist/instructions.js +82 -0
  23. package/dist/next-version.d.ts +15 -0
  24. package/dist/next-version.js +43 -0
  25. package/dist/ports.d.ts +11 -0
  26. package/dist/ports.js +61 -0
  27. package/dist/prompts.d.ts +13 -0
  28. package/dist/prompts.js +119 -0
  29. package/dist/templates/assets.d.ts +2 -0
  30. package/dist/templates/assets.js +41 -0
  31. package/dist/templates/common.d.ts +45 -0
  32. package/dist/templates/common.js +174 -0
  33. package/dist/templates/contentful.d.ts +2 -0
  34. package/dist/templates/contentful.js +379 -0
  35. package/dist/templates/demo-app.d.ts +3 -0
  36. package/dist/templates/demo-app.js +465 -0
  37. package/dist/templates/demo-content.d.ts +2 -0
  38. package/dist/templates/demo-content.js +7 -0
  39. package/dist/templates/sanity.d.ts +2 -0
  40. package/dist/templates/sanity.js +289 -0
  41. package/dist/templates/static.d.ts +2 -0
  42. package/dist/templates/static.js +81 -0
  43. package/dist/templates/strapi.d.ts +2 -0
  44. package/dist/templates/strapi.js +235 -0
  45. package/dist/types.d.ts +48 -0
  46. package/dist/types.js +1 -0
  47. package/dist/versions.d.ts +32 -0
  48. package/dist/versions.js +32 -0
  49. package/package.json +51 -0
@@ -0,0 +1,32 @@
1
+ /**
2
+ * What a scaffolded project depends on.
3
+ *
4
+ * Every version here is pinned, and that is the point rather than an
5
+ * oversight. `nextjs-integration.mdx` named `better-sqlite3` without a range
6
+ * for one release, and the clean-room integration that followed installed it
7
+ * twice at two different majors — a native module, loaded from whichever copy
8
+ * resolved first. An unpinned range in a scaffold is not "staying current",
9
+ * it is a different dependency tree for every person who runs the command.
10
+ *
11
+ * `AVOCADO` is checked against the workspace's own version by
12
+ * scaffold-versions.test.ts, so a release that bumps the packages and forgets
13
+ * this file fails the suite rather than shipping a scaffold that installs the
14
+ * previous release.
15
+ *
16
+ * `better-sqlite3` is deliberately absent. It arrives as a dependency of
17
+ * `@avocadostudio-ai/orchestrator-core`, already pinned there; naming it again
18
+ * here is how a project ends up with two.
19
+ */
20
+ export declare const AVOCADO = "0.9.0";
21
+ /**
22
+ * Next 15.5.15 rather than 16, because that is the version every example app
23
+ * and the demo site in this repository build and test against. The SDK
24
+ * supports 16 — `createEditorProxy` exists for exactly that — but a first run
25
+ * should be on the version CI proves, not the newest one.
26
+ */
27
+ export declare const NEXT = "15.5.15";
28
+ export declare const REACT = "^19.0.0";
29
+ export declare const TYPESCRIPT = "^5.7.3";
30
+ export declare const TYPES_NODE = "^22.13.10";
31
+ export declare const TYPES_REACT = "^19.0.10";
32
+ export declare const TYPES_REACT_DOM = "^19.0.4";
@@ -0,0 +1,32 @@
1
+ /**
2
+ * What a scaffolded project depends on.
3
+ *
4
+ * Every version here is pinned, and that is the point rather than an
5
+ * oversight. `nextjs-integration.mdx` named `better-sqlite3` without a range
6
+ * for one release, and the clean-room integration that followed installed it
7
+ * twice at two different majors — a native module, loaded from whichever copy
8
+ * resolved first. An unpinned range in a scaffold is not "staying current",
9
+ * it is a different dependency tree for every person who runs the command.
10
+ *
11
+ * `AVOCADO` is checked against the workspace's own version by
12
+ * scaffold-versions.test.ts, so a release that bumps the packages and forgets
13
+ * this file fails the suite rather than shipping a scaffold that installs the
14
+ * previous release.
15
+ *
16
+ * `better-sqlite3` is deliberately absent. It arrives as a dependency of
17
+ * `@avocadostudio-ai/orchestrator-core`, already pinned there; naming it again
18
+ * here is how a project ends up with two.
19
+ */
20
+ export const AVOCADO = "0.9.0";
21
+ /**
22
+ * Next 15.5.15 rather than 16, because that is the version every example app
23
+ * and the demo site in this repository build and test against. The SDK
24
+ * supports 16 — `createEditorProxy` exists for exactly that — but a first run
25
+ * should be on the version CI proves, not the newest one.
26
+ */
27
+ export const NEXT = "15.5.15";
28
+ export const REACT = "^19.0.0";
29
+ export const TYPESCRIPT = "^5.7.3";
30
+ export const TYPES_NODE = "^22.13.10";
31
+ export const TYPES_REACT = "^19.0.10";
32
+ export const TYPES_REACT_DOM = "^19.0.4";
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "create-avocado-site",
3
+ "version": "0.9.0",
4
+ "description": "Bootstrap a runnable Avocado Studio demo site, or wire Avocado into an existing Next.js project",
5
+ "type": "module",
6
+ "bin": {
7
+ "create-avocado-site": "./dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "assets",
12
+ "README.md",
13
+ "LICENSE"
14
+ ],
15
+ "keywords": [
16
+ "avocado",
17
+ "avocado-studio",
18
+ "cms",
19
+ "nextjs",
20
+ "scaffold",
21
+ "ai"
22
+ ],
23
+ "engines": {
24
+ "node": ">=22"
25
+ },
26
+ "publishConfig": {
27
+ "registry": "https://registry.npmjs.org",
28
+ "access": "public"
29
+ },
30
+ "dependencies": {
31
+ "@clack/prompts": "^0.9.1"
32
+ },
33
+ "devDependencies": {
34
+ "@types/node": "^22.13.10",
35
+ "tsx": "^4.19.0",
36
+ "typescript": "^5.7.3",
37
+ "@avocadostudio-ai/site-sdk": "0.9.0",
38
+ "@avocadostudio-ai/shared": "0.9.0"
39
+ },
40
+ "license": "Apache-2.0",
41
+ "homepage": "https://docs.avocadostudio.dev",
42
+ "bugs": {
43
+ "url": "https://docs.avocadostudio.dev"
44
+ },
45
+ "scripts": {
46
+ "build": "tsc",
47
+ "dev": "tsx src/index.ts",
48
+ "typecheck": "tsc --noEmit",
49
+ "test": "NODE_ENV=test node ../../scripts/run-tests.mjs"
50
+ }
51
+ }