create-twenty-app 0.6.4-canary.1 → 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 +28 -11
- package/dist/cli.cjs +157 -53
- package/dist/cli.mjs +23671 -3015
- package/dist/constants/base-application/LLMS.md +1 -1
- package/dist/create-app.command.d.ts +9 -1
- package/dist/types/scaffolding-options.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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
|
```
|
|
@@ -109,29 +115,40 @@ npx create-twenty-app@latest my-app -m
|
|
|
109
115
|
- Use `yarn twenty app:dev` while you iterate — it watches, builds, and syncs changes to your workspace in real time.
|
|
110
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'`.
|
|
111
117
|
|
|
112
|
-
##
|
|
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
|
|
128
|
+
|
|
129
|
+
# Publish to npm (requires npm login)
|
|
130
|
+
yarn twenty app:publish
|
|
113
131
|
|
|
114
|
-
|
|
132
|
+
# Publish with a dist-tag (e.g. beta, next)
|
|
133
|
+
yarn twenty app:publish --tag beta
|
|
115
134
|
|
|
116
|
-
|
|
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
|