From 0168deb50f6e22c020145e4f5cb8031a65453cb5 Mon Sep 17 00:00:00 2001 From: aditya pimpalkar Date: Tue, 30 Apr 2024 05:54:54 +0100 Subject: [PATCH] add nx/project.json to twenty-chrome-extension --- packages/twenty-chrome-extension/package.json | 4 ---- packages/twenty-chrome-extension/project.json | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 packages/twenty-chrome-extension/project.json diff --git a/packages/twenty-chrome-extension/package.json b/packages/twenty-chrome-extension/package.json index da51364e5fe5e..e01a896760b43 100644 --- a/packages/twenty-chrome-extension/package.json +++ b/packages/twenty-chrome-extension/package.json @@ -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\"", diff --git a/packages/twenty-chrome-extension/project.json b/packages/twenty-chrome-extension/project.json new file mode 100644 index 0000000000000..cc3bbd317e9a5 --- /dev/null +++ b/packages/twenty-chrome-extension/project.json @@ -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" + } + } + } +}