diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index 4d27922..4896742 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -13,26 +13,29 @@ inputs: runs: using: composite steps: + - name: 🏗 Install Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ inputs.node-version }} + - name: 🏗 Setup pnpm uses: pnpm/action-setup@v2 with: version: ${{ inputs.pnpm-version }} - - name: 🏗 Setup pnpm cache - uses: actions/setup-node@v3 - with: - node-version: ${{ inputs.node-version }} - cache: pnpm + - name: 🏗 Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - name: 🏗 Setup turbo cache + - name: 🏗 Setup pnpm cache uses: actions/cache@v3 with: - path: | - node_modules/.cache/turbo - .turbo - key: ${{ runner.os }}-turbo-${{ github.sha }} + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | - ${{ runner.os }}-turbo- + ${{ runner.os }}-pnpm-store- - name: 📦 Install deps run: pnpm install diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index b067d40..f9f7a59 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -5,9 +5,6 @@ on: [pull_request] jobs: validate: runs-on: ubuntu-latest - strategy: - matrix: - node: ['18'] steps: - name: 🏗 Setup Repository @@ -16,8 +13,20 @@ jobs: - name: 📦 Install uses: ./.github/actions/install with: - node-version: ${{ matrix.node }} + node-version: 18 pnpm-version: 8.3.1 - - name: 🦺 validate - run: pnpm validate + - name: 🚨 Lint + run: pnpm lint + + - name: 🎨 Format + run: pnpm format + + - name: 🏷️ Check Types + run: pnpm check-types + + - name: ✅ Test + run: pnpm coverage + + - name: 🧱 Build + run: pnpm build diff --git a/.gitignore b/.gitignore index ece3b24..523015a 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,3 @@ coverage # vite vite.config.ts.*.mjs - -# turbo -.turbo diff --git a/.vscode/settings.json b/.vscode/settings.json index 8489dd5..7960d78 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,7 +7,6 @@ "Parens", "pnpm", "tailwindcss", - "turborepo", "vite", "vitest", "zustand" diff --git a/README.md b/README.md index e91a13d..8e26653 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,6 @@ [![Playwright](https://img.shields.io/badge/Playwright-45ba4b?style=for-the-badge&logo=Playwright&logoColor=white)][Playwright] [![eslint](https://img.shields.io/badge/eslint-3A33D1?style=for-the-badge&logo=eslint&logoColor=white)][eslint] [![prettier](https://img.shields.io/badge/prettier-1A2C34?style=for-the-badge&logo=prettier&logoColor=F7BA3E)][prettier] -[![Turborepo](https://img.shields.io/badge/-Turborepo-EF4444?logo=turborepo&style=for-the-badge&logoColor=white)][turborepo] [![pnpm](https://img.shields.io/badge/pnpm-%234a4a4a.svg?style=for-the-badge&logo=pnpm&logoColor=f69220)][pnpm] [![Github Actions](https://img.shields.io/badge/GitHub_Actions-2088FF?style=for-the-badge&logo=github-actions&logoColor=white)][Github Actions] @@ -33,7 +32,6 @@ - 🩺 [eslint][eslint] for static analysis, with: - [eslint-config-jimmy-guzman](https://github.com/jimmy-guzman/eslint-config-jimmy-guzman) for opinionated guidelines - 🎨 [prettier][prettier] for formatting -- ⚡️ [turborepo][turborepo] for high performant tasks - ⚡️ [pnpm][pnpm] for fast and consistent installs - 👷 [Github Actions][Github Actions] for easy workflow automation @@ -59,30 +57,16 @@ First install dependencies with [pnpm](https://pnpm.io/installation), by running pnpm install ``` -Install [turborepo](https://turbo.build/repo/docs/installing#install-globally), by running the following command: - -``` -pnpm add turbo --global -``` - Then to run the development server, run the following command: ``` pnpm dev ``` -Or with turborepo: - -``` -turbo dev -``` - Your application will be available at http://localhost:5173/ ❤️ ## Available Tasks -**_Each of the following tasks can be ran with `turbo` instead of `pnpm`, which will be [cached](https://turbo.build/repo/docs/core-concepts/caching)_** - To build for production, run the following command: ``` @@ -155,7 +139,6 @@ If you need to do more, I recommend the following libraries: [Testing Library]: https://testing-library.com/docs/guiding-principles [Playwright]: https://playwright.dev [prettier]: https://prettier.io -[turborepo]: https://turbo.build/repo [pnpm]: https://pnpm.io [Github Actions]: https://github.com/features/actions diff --git a/package.json b/package.json index 99b7052..f1ef963 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,7 @@ "format:fix": "prettier --write .", "test": "vitest", "coverage": "vitest run --coverage", - "e2e": "playwright test", - "validate": "turbo format lint coverage build" + "e2e": "playwright test" }, "dependencies": { "clsx": "1.2.1", @@ -43,7 +42,6 @@ "prettier": "2.8.8", "prettier-plugin-tailwindcss": "0.2.7", "tailwindcss": "3.3.1", - "turbo": "1.9.3", "typescript": "5.0.4", "vite": "4.3.1", "vitest": "0.30.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 85ed5dc..22bcd9a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -72,9 +72,6 @@ devDependencies: tailwindcss: specifier: 3.3.1 version: 3.3.1(postcss@8.4.23) - turbo: - specifier: 1.9.3 - version: 1.9.3 typescript: specifier: 5.0.4 version: 5.0.4 @@ -3973,67 +3970,6 @@ packages: typescript: 5.0.4 dev: true - /turbo-darwin-64@1.9.3: - resolution: {integrity: sha512-0dFc2cWXl82kRE4Z+QqPHhbEFEpUZho1msHXHWbz5+PqLxn8FY0lEVOHkq5tgKNNEd5KnGyj33gC/bHhpZOk5g==} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /turbo-darwin-arm64@1.9.3: - resolution: {integrity: sha512-1cYbjqLBA2zYE1nbf/qVnEkrHa4PkJJbLo7hnuMuGM0bPzh4+AnTNe98gELhqI1mkTWBu/XAEeF5u6dgz0jLNA==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /turbo-linux-64@1.9.3: - resolution: {integrity: sha512-UuBPFefawEwpuxh5pM9Jqq3q4C8M0vYxVYlB3qea/nHQ80pxYq7ZcaLGEpb10SGnr3oMUUs1zZvkXWDNKCJb8Q==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /turbo-linux-arm64@1.9.3: - resolution: {integrity: sha512-vUrNGa3hyDtRh9W0MkO+l1dzP8Co2gKnOVmlJQW0hdpOlWlIh22nHNGGlICg+xFa2f9j4PbQlWTsc22c019s8Q==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /turbo-windows-64@1.9.3: - resolution: {integrity: sha512-0BZ7YaHs6r+K4ksqWus1GKK3W45DuDqlmfjm/yuUbTEVc8szmMCs12vugU2Zi5GdrdJSYfoKfEJ/PeegSLIQGQ==} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /turbo-windows-arm64@1.9.3: - resolution: {integrity: sha512-QJUYLSsxdXOsR1TquiOmLdAgtYcQ/RuSRpScGvnZb1hY0oLc7JWU0llkYB81wVtWs469y8H9O0cxbKwCZGR4RQ==} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /turbo@1.9.3: - resolution: {integrity: sha512-ID7mxmaLUPKG/hVkp+h0VuucB1U99RPCJD9cEuSEOdIPoSIuomcIClEJtKamUsdPLhLCud+BvapBNnhgh58Nzw==} - hasBin: true - requiresBuild: true - optionalDependencies: - turbo-darwin-64: 1.9.3 - turbo-darwin-arm64: 1.9.3 - turbo-linux-64: 1.9.3 - turbo-linux-arm64: 1.9.3 - turbo-windows-64: 1.9.3 - turbo-windows-arm64: 1.9.3 - dev: true - /type-check@0.3.2: resolution: {integrity: sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==} engines: {node: '>= 0.8.0'} diff --git a/turbo.json b/turbo.json deleted file mode 100644 index 4edb571..0000000 --- a/turbo.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "https://turbo.build/schema.json", - "pipeline": { - "build": { - "outputs": ["dist/**"] - }, - "check-types": {}, - "lint": {}, - "format": {}, - "test": {}, - "coverage": { - "outputs": ["coverage/**"] - }, - "e2e": { - "outputs": ["playwright-report/**", "test-results"] - } - } -}