create-twenty-app 0.7.0-canary.0 → 0.7.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.
package/README.md CHANGED
@@ -43,7 +43,7 @@ yarn twenty auth:login
43
43
  yarn twenty entity:add
44
44
 
45
45
  # Start dev mode: watches, builds, and syncs local changes to your workspace
46
- # (also auto-generates typed API clients CoreApiClient and MetadataApiClientin node_modules/twenty-sdk/generated)
46
+ # (also auto-generates typed CoreApiClientMetadataApiClient ships pre-built with the SDK both available via `twenty-sdk/clients`)
47
47
  yarn twenty app:dev
48
48
 
49
49
  # Watch your application's function logs
@@ -58,6 +58,12 @@ yarn twenty function:execute --preInstall
58
58
  # Execute the post-install function
59
59
  yarn twenty function:execute --postInstall
60
60
 
61
+ # Build the app for distribution
62
+ yarn twenty app:build
63
+
64
+ # Publish the app to npm or directly to a Twenty server
65
+ yarn twenty app:publish
66
+
61
67
  # Uninstall the application from the current workspace
62
68
  yarn twenty app:uninstall
63
69
  ```
@@ -107,31 +113,42 @@ npx create-twenty-app@latest my-app -m
107
113
  - Use `yarn twenty auth:login` to authenticate with your Twenty workspace.
108
114
  - Explore the generated project and add your first entity with `yarn twenty entity:add` (logic functions, front components, objects, roles, views, navigation menu items, skills).
109
115
  - Use `yarn twenty app:dev` while you iterate — it watches, builds, and syncs changes to your workspace in real time.
110
- - Two typed API clients are autogenerated by `yarn twenty app:dev` and stored in `node_modules/twenty-sdk/generated`: `CoreApiClient` (for workspace data via `/graphql`) and `MetadataApiClient` (for workspace configuration and file uploads via `/metadata`).
116
+ - `CoreApiClient` (for workspace data via `/graphql`) is auto-generated by `yarn twenty app:dev`. `MetadataApiClient` (for workspace configuration and file uploads via `/metadata`) ships pre-built with the SDK. Both are available via `import { CoreApiClient, MetadataApiClient } from 'twenty-sdk/clients'`.
117
+
118
+ ## Build and publish your application
119
+
120
+ Once your app is ready, build and publish it using the CLI:
121
+
122
+ ```bash
123
+ # Build the app (output goes to .twenty/output/)
124
+ yarn twenty app:build
125
+
126
+ # Build and create a tarball (.tgz) for distribution
127
+ yarn twenty app:build --tarball
111
128
 
112
- ## Publish your application
129
+ # Publish to npm (requires npm login)
130
+ yarn twenty app:publish
113
131
 
114
- Applications are currently stored in `twenty/packages/twenty-apps`.
132
+ # Publish with a dist-tag (e.g. beta, next)
133
+ yarn twenty app:publish --tag beta
115
134
 
116
- You can share your application with all Twenty users:
135
+ # Publish directly to a Twenty server (builds, uploads, and installs in one step)
136
+ yarn twenty app:publish --server https://app.twenty.com
137
+ ```
138
+
139
+ ### Publish to the Twenty marketplace
140
+
141
+ You can also contribute your application to the curated marketplace:
117
142
 
118
143
  ```bash
119
- # pull the Twenty project
120
144
  git clone https://github.com/twentyhq/twenty.git
121
145
  cd twenty
122
-
123
- # create a new branch
124
146
  git checkout -b feature/my-awesome-app
125
147
  ```
126
148
 
127
149
  - Copy your app folder into `twenty/packages/twenty-apps`.
128
150
  - Commit your changes and open a pull request on https://github.com/twentyhq/twenty
129
151
 
130
- ```bash
131
- git commit -m "Add new application"
132
- git push
133
- ```
134
-
135
152
  Our team reviews contributions for quality, security, and reusability before merging.
136
153
 
137
154
  ## Troubleshooting