create-twenty-app 0.6.1 → 0.6.3-canary

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 CHANGED
@@ -50,6 +50,9 @@ yarn twenty function:logs
50
50
  # Execute a function with a JSON payload
51
51
  yarn twenty function:execute -n my-function -p '{"key": "value"}'
52
52
 
53
+ # Execute the pre-install function
54
+ yarn twenty function:execute --preInstall
55
+
53
56
  # Execute the post-install function
54
57
  yarn twenty function:execute --postInstall
55
58
 
@@ -86,12 +89,14 @@ In interactive mode, you can pick from:
86
89
  - **Example view** — a saved view for the example object (`views/example-view.ts`)
87
90
  - **Example navigation menu item** — a sidebar link (`navigation-menu-items/example-navigation-menu-item.ts`)
88
91
  - **Example skill** — an AI agent skill definition (`skills/example-skill.ts`)
92
+ - **Integration test** — a vitest integration test verifying app installation (`__tests__/app-install.integration-test.ts`)
89
93
 
90
94
  ## What gets scaffolded
91
95
 
92
96
  **Core files (always created):**
93
97
  - `application-config.ts` — Application metadata configuration
94
98
  - `roles/default-role.ts` — Default role for logic functions
99
+ - `logic-functions/pre-install.ts` — Pre-install logic function (runs before app installation)
95
100
  - `logic-functions/post-install.ts` — Post-install logic function (runs after app installation)
96
101
  - TypeScript configuration, ESLint, package.json, .gitignore
97
102
  - A prewired `twenty` script that delegates to the `twenty` CLI from twenty-sdk
@@ -104,6 +109,7 @@ In interactive mode, you can pick from:
104
109
  - `views/example-view.ts` — Example saved view for the example object
105
110
  - `navigation-menu-items/example-navigation-menu-item.ts` — Example sidebar navigation link
106
111
  - `skills/example-skill.ts` — Example AI agent skill definition
112
+ - `__tests__/app-install.integration-test.ts` — Integration test that builds, installs, and verifies the app (includes `vitest.config.ts`, `tsconfig.spec.json`, and a setup file)
107
113
 
108
114
  ## Next steps
109
115
  - Run `yarn twenty help` to see all available commands.