Skip to content

Commit

Permalink
add nx/project.json to twenty-chrome-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaPimpalkar authored and thaisguigon committed May 2, 2024
1 parent 27a3d7e commit 0168deb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/twenty-chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
"version": "0.0.1",
"type": "module",
"scripts": {
"nx": "NX_DEFAULT_PROJECT=twenty-chrome-extension node ../../node_modules/nx/bin/nx.js",
"clean": "npx rimraf ./dist",
"start": "yarn clean && VITE_MODE=development vite",
"build": "yarn clean && npx tsc && npx vite build",
"lint": "eslint . --report-unused-disable-directives --max-warnings 0 --config .eslintrc.cjs",
"graphql:generate": "graphql-codegen",
"fmt": "prettier --check \"src/**/*.ts\" \"src/**/*.tsx\"",
Expand Down
22 changes: 22 additions & 0 deletions packages/twenty-chrome-extension/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "twenty-chrome-extension",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"targets": {
"build": {
"executor": "nx:run-commands",
"options": {
"cwd": "packages/twenty-chrome-extension",
"commands": ["rimraf ./dist", "tsc", "vite build"]
}
},
"start": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"cwd": "packages/twenty-chrome-extension",
"command": "VITE_MODE=development vite"
}
}
}
}

0 comments on commit 0168deb

Please sign in to comment.