diff --git a/.github/workflows/ci-chromatic.yaml b/.github/workflows/ci-chromatic.yaml index fb0408e086ebe..8c87999e097dc 100644 --- a/.github/workflows/ci-chromatic.yaml +++ b/.github/workflows/ci-chromatic.yaml @@ -41,4 +41,4 @@ jobs: - name: Publish to Chromatic run: | cd packages/twenty-front - yarn nx chromatic:ci + npx nx chromatic:ci diff --git a/.github/workflows/ci-chrome-extension.yaml b/.github/workflows/ci-chrome-extension.yaml index c50ecbf0cef5b..f5c80ca95f7e9 100644 --- a/.github/workflows/ci-chrome-extension.yaml +++ b/.github/workflows/ci-chrome-extension.yaml @@ -69,4 +69,4 @@ jobs: key: root-node_modules-${{hashFiles('yarn.lock')}} restore-keys: root-node_modules- - name: Chrome Extension / Run build - run: yarn nx build twenty-chrome-extension + run: npx nx build twenty-chrome-extension diff --git a/.github/workflows/ci-docs.yaml b/.github/workflows/ci-docs.yaml index 27a18f5dbe70b..66a57f78c2713 100644 --- a/.github/workflows/ci-docs.yaml +++ b/.github/workflows/ci-docs.yaml @@ -28,7 +28,7 @@ jobs: - name: Docs / Install Dependencies run: yarn - name: Docs / Build Documentation - run: yarn nx build twenty-docs + run: npx nx build twenty-docs vale: name: runner / vale runs-on: ubuntu-latest diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index d295f182bf9a0..e48def7e729c3 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -76,9 +76,9 @@ jobs: run: cd packages/twenty-front && npx playwright install - name: Run storybook tests run: | - npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ - "STORYBOOK_SCOPE=pages npx nx run twenty-front:storybook:static" \ - "npx wait-on tcp:6006 && STORYBOOK_SCOPE=pages npx nx run twenty-front:storybook:test" + cd packages/twenty-front && npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ + "STORYBOOK_SCOPE=pages npx nx storybook:static" \ + "npx wait-on tcp:6006 && STORYBOOK_SCOPE=pages npx nx storybook:test" front-modules-sb-test: needs: front-yarn-install runs-on: ci-4-cores @@ -114,9 +114,9 @@ jobs: run: cd packages/twenty-front && npx playwright install - name: Run storybook tests run: | - npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ - "STORYBOOK_SCOPE=modules npx nx run twenty-front:storybook:static" \ - "npx wait-on tcp:6006 && STORYBOOK_SCOPE=modules npx nx run twenty-front:storybook:test" + cd packages/twenty-front && npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ + "STORYBOOK_SCOPE=modules npx nx storybook:static" \ + "npx wait-on tcp:6006 && STORYBOOK_SCOPE=modules npx nx storybook:test" front-lint-tsc: needs: front-yarn-install runs-on: ubuntu-latest diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml index b32016c8a6255..53f86ce00b118 100644 --- a/.github/workflows/ci-server.yaml +++ b/.github/workflows/ci-server.yaml @@ -36,14 +36,14 @@ jobs: - name: Server / Install Dependencies run: yarn - name: Server / Run linter - run: yarn nx lint twenty-server + run: npx nx lint twenty-server - name: Server / Run jest tests - run: yarn nx test:unit twenty-server + run: npx nx test:unit twenty-server - name: Server / Build - run: yarn nx build twenty-server + run: npx nx build twenty-server - name: Server / Write .env run: | cd packages/twenty-server cp .env.example .env - name: Worker / Run - run: MESSAGE_QUEUE_TYPE=sync yarn nx worker twenty-server + run: MESSAGE_QUEUE_TYPE=sync npx nx worker twenty-server diff --git a/.github/workflows/ci-utils.yaml b/.github/workflows/ci-utils.yaml index e77c430a05923..ac65a6c51734a 100644 --- a/.github/workflows/ci-utils.yaml +++ b/.github/workflows/ci-utils.yaml @@ -28,6 +28,6 @@ jobs: - name: Utils / Install Dependencies run: yarn - name: Utils / Run Danger.js - run: cd packages/twenty-utils && yarn nx danger:ci + run: cd packages/twenty-utils && npx nx danger:ci env: DANGER_GITHUB_API_TOKEN: ${{ github.token }} diff --git a/.github/workflows/ci-website.yaml b/.github/workflows/ci-website.yaml index 2bed055536abb..f925cb7189796 100644 --- a/.github/workflows/ci-website.yaml +++ b/.github/workflows/ci-website.yaml @@ -26,4 +26,4 @@ jobs: - name: Website / Install Dependencies run: yarn - name: Website / Build Website - run: yarn nx build twenty-website + run: npx nx build twenty-website diff --git a/packages/twenty-chrome-extension/README.md b/packages/twenty-chrome-extension/README.md index 749c477ef0799..64e92e4130ba3 100644 --- a/packages/twenty-chrome-extension/README.md +++ b/packages/twenty-chrome-extension/README.md @@ -22,7 +22,7 @@ VITE_FRONT_BASE_URL=http://localhost:3001 - STEP 4: Now, execute the following command in the root directory to start up the development server on Port 3002. This will create a `dist` folder in `twenty-chrome-extension`. ``` -yarn nx start twenty-chrome-extension +npx nx start twenty-chrome-extension ``` - STEP 5: Open Google Chrome and head to the extensions page by typing `chrome://extensions` in the address bar. @@ -57,4 +57,4 @@ yarn nx start twenty-chrome-extension
-To install the extension in production mode without hmr (hot module reload), replace the command in STEP FOUR with `yarn nx build twenty-chrome-extension`. You may or may not want to execute STEP THREE based on your requirements. \ No newline at end of file +To install the extension in production mode without hmr (hot module reload), replace the command in STEP FOUR with `npx nx build twenty-chrome-extension`. You may or may not want to execute STEP THREE based on your requirements. \ No newline at end of file diff --git a/packages/twenty-chrome-extension/package.json b/packages/twenty-chrome-extension/package.json index 237c74a514ad0..9cec9e87be77f 100644 --- a/packages/twenty-chrome-extension/package.json +++ b/packages/twenty-chrome-extension/package.json @@ -6,13 +6,13 @@ "type": "module", "scripts": { "nx": "NX_DEFAULT_PROJECT=twenty-chrome-extension node ../../node_modules/nx/bin/nx.js", - "clean": "rimraf ./dist", - "start": "yarn clean && vite", - "build": "yarn clean && tsc && 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\"", - "fmt:fix": "prettier --cache --write \"src/**/*.ts\" \"src/**/*.tsx\"" + "clean": "npx rimraf ./dist", + "start": "yarn clean && npx vite", + "build": "yarn clean && npx tsc && npx vite build", + "lint": "npx eslint . --report-unused-disable-directives --max-warnings 0 --config .eslintrc.cjs", + "graphql:generate": "npx graphql-codegen", + "fmt": "npx prettier --check \"src/**/*.ts\" \"src/**/*.tsx\"", + "fmt:fix": "npx prettier --cache --write \"src/**/*.ts\" \"src/**/*.tsx\"" }, "dependencies": { "@types/chrome": "^0.0.256" diff --git a/packages/twenty-docker/twenty-docs/Dockerfile b/packages/twenty-docker/twenty-docs/Dockerfile index 9e97d0967555d..d169292a9a6dc 100644 --- a/packages/twenty-docker/twenty-docs/Dockerfile +++ b/packages/twenty-docker/twenty-docs/Dockerfile @@ -14,7 +14,7 @@ COPY ./packages/twenty-ui /app/packages/twenty-ui RUN yarn COPY ./packages/twenty-docs /app/packages/twenty-docs -RUN yarn nx build twenty-docs +RUN npx nx build twenty-docs CMD ["tail", "-f", "/dev/null"] diff --git a/packages/twenty-docker/twenty-website/Dockerfile b/packages/twenty-docker/twenty-website/Dockerfile index 42d06289274c4..e3b7420ff76a4 100644 --- a/packages/twenty-docker/twenty-website/Dockerfile +++ b/packages/twenty-docker/twenty-website/Dockerfile @@ -13,7 +13,7 @@ COPY ./packages/twenty-website/package.json /app/packages/twenty-website/package RUN yarn COPY ./packages/twenty-website /app/packages/twenty-website -RUN yarn nx build twenty-website +RUN npx nx build twenty-website FROM node:18.17.1-alpine as twenty-website @@ -26,4 +26,4 @@ WORKDIR /app/packages/twenty-website LABEL org.opencontainers.image.source=https://github.com/twentyhq/twenty LABEL org.opencontainers.image.description="This image provides a consistent and reproducible environment for the website." -CMD ["/bin/sh", "-c", "yarn nx start"] \ No newline at end of file +CMD ["/bin/sh", "-c", "npx nx start"] \ No newline at end of file diff --git a/packages/twenty-docs/docs/contributor/server/server.mdx b/packages/twenty-docs/docs/contributor/server/server.mdx index 73292f3bbdcbc..4082d33ac41b2 100644 --- a/packages/twenty-docs/docs/contributor/server/server.mdx +++ b/packages/twenty-docs/docs/contributor/server/server.mdx @@ -14,30 +14,30 @@ import DocCardList from '@theme/DocCardList'; ## Useful commands These commands should be exectued from packages/twenty-server folder. -From any other folder you can run `yarn nx