mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 21:47:38 +00:00
# Introduction Important note: for the moment testing this locally will require some hack due to latest twenty-sdk not being published. You will need to build twenty-cli and `cd packages/twenty-cli && yarn link` To finally sync the app in your app folder as `cd app-folder && twenty app sync` close https://github.com/twentyhq/core-team-issues/issues/1863 In this PR is introduced the generate sdk programmatic call to [genql](https://genql.dev/) exposed in a `client` barrel of `twenty-sdk` located in this package as there's high chances that will add a codegen layer above it at some point ? The cli calls this method after a sync application and writes a client in a generated folder. It will make a graql introspection query on the whole workspace. We should later improve that and only filter by current applicationId and its dependencies ( when twenty-standard application is introduced ) Fully typesafe ( input, output, filters etc ) auto-completed client ## Hello-world app serverless refactor <img width="2480" height="1326" alt="image" src="https://github.com/user-attachments/assets/b18ea372-b21d-4560-8fbc-1dc348427a95" /> --------- Co-authored-by: martmull <martmull@hotmail.fr>
62 lines
1.4 KiB
JSON
62 lines
1.4 KiB
JSON
{
|
|
"name": "twenty-cli",
|
|
"version": "0.2.2",
|
|
"description": "Command-line interface for Twenty application development",
|
|
"main": "dist/cli.js",
|
|
"bin": {
|
|
"twenty": "dist/cli.js"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"!dist/**/*.e2e-spec.*",
|
|
"!dist/**/__tests__/**"
|
|
],
|
|
"scripts": {
|
|
"build": "echo 'use npx nx build'",
|
|
"dev": "tsx src/cli.ts",
|
|
"start": "node dist/cli.js"
|
|
},
|
|
"keywords": [
|
|
"twenty",
|
|
"cli",
|
|
"crm",
|
|
"application",
|
|
"development"
|
|
],
|
|
"license": "AGPL-3.0",
|
|
"dependencies": {
|
|
"@genql/cli": "^3.0.3",
|
|
"ajv": "^8.12.0",
|
|
"ajv-formats": "^2.1.1",
|
|
"axios": "^1.6.0",
|
|
"chalk": "^5.3.0",
|
|
"chokidar": "^4.0.0",
|
|
"commander": "^12.0.0",
|
|
"dotenv": "^16.4.0",
|
|
"fs-extra": "^11.2.0",
|
|
"graphql": "^16.8.1",
|
|
"inquirer": "^10.0.0",
|
|
"jsonc-parser": "^3.2.0",
|
|
"lodash.camelcase": "^4.3.0",
|
|
"lodash.capitalize": "^4.2.1",
|
|
"lodash.kebabcase": "^4.1.1",
|
|
"typescript": "^5.9.2",
|
|
"uuid": "^13.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/fs-extra": "^11.0.0",
|
|
"@types/inquirer": "^9.0.0",
|
|
"@types/jest": "^29.5.0",
|
|
"@types/lodash.camelcase": "^4.3.7",
|
|
"@types/lodash.capitalize": "^4",
|
|
"@types/lodash.kebabcase": "^4.1.7",
|
|
"@types/node": "^20.0.0",
|
|
"jest": "^29.5.0",
|
|
"tsx": "^4.7.0",
|
|
"wait-on": "^7.2.0"
|
|
},
|
|
"engines": {
|
|
"node": "^24.5.0",
|
|
"yarn": "^4.0.2"
|
|
}
|
|
}
|