feat: set up command to bundle engine's code

This commit is contained in:
Devessier 2024-07-16 16:13:55 +02:00
parent d6b1ca6acd
commit 7ccde0507e
No known key found for this signature in database
GPG Key ID: 85A1CCBCD3071EDA
4 changed files with 1649 additions and 20 deletions

View File

@ -219,6 +219,7 @@
"@nx/storybook": "18.3.3",
"@nx/vite": "18.3.3",
"@nx/web": "18.3.3",
"@nx/webpack": "^19.4.3",
"@sentry/types": "^7.109.0",
"@storybook/addon-actions": "^7.6.3",
"@storybook/addon-coverage": "^1.0.0",

View File

@ -50,6 +50,7 @@
"devDependencies": {
"@nestjs/cli": "10.3.0",
"@nx/js": "18.3.3",
"@nx/webpack": "^19.4.3",
"@types/jest": "^29.5.12",
"@types/lodash.differencewith": "^4.5.9",
"@types/lodash.isempty": "^4.4.7",
@ -63,7 +64,8 @@
"@types/lodash.upperfirst": "^4.3.7",
"@types/react": "^18.2.39",
"rimraf": "^5.0.5",
"typescript": "5.3.3"
"typescript": "5.3.3",
"webpack-ignore-dynamic-require": "^1.0.0"
},
"engines": {
"node": "^18.17.1",

View File

@ -20,6 +20,27 @@
"updateBuildableProjectDepsInPackageJson": true
}
},
"build-workflow-engine": {
"executor": "@nx/webpack:webpack",
"outputs": ["{options.outputPath}"],
"options": {
"target": "node",
"compiler": "tsc",
"outputPath": "packages/twenty-server/src/workflow-worker/activepieces/engine/dist",
"main": "packages/twenty-server/src/workflow-worker/activepieces/engine/src/main.ts",
"tsConfig": "packages/twenty-server/tsconfig.build.json",
"webpackConfig": "packages/twenty-server/src/workflow-worker/activepieces/engine/webpack.config.js",
"generatePackageJson": true,
"babelUpwardRootMode": true
},
"configurations": {
"production": {
"optimization": true,
"extractLicenses": true,
"inspect": false
}
}
},
"start": {
"executor": "nx:run-commands",
"dependsOn": ["build"],

1643
yarn.lock

File diff suppressed because it is too large Load Diff