diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index d61fd7bf..a304b2f9 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -7,7 +7,7 @@ To set up the project GitHub-Stats-Extended locally, run the following commands: ```bash ./vercel-preparation.sh pnpm install -pnpm --filter frontend run build-trends +pnpm --filter frontend run build ``` The easiest way to run and test the project is to deploy it to Vercel as described in the [deployment guide](../docs/deploy.md). diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff0b186d..8cbc5279 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: ./vercel-preparation.sh - name: Build frontend - run: pnpm --filter frontend run build-trends + run: pnpm --filter frontend run build code-checks: name: Code checks diff --git a/apps/frontend/README.md b/apps/frontend/README.md deleted file mode 100644 index 7ddf0889..00000000 --- a/apps/frontend/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# Frontend - -## Installation - -``` -yarn install -``` - -## Run Locally - -``` -yarn start-trends -``` - -## Build - -``` -yarn build-trends -``` - -Then, just commit on the main branch (Vercel takes care of the rest) - -## Adding a Secret - -Update .env, .env-template, and Vercel. diff --git a/apps/frontend/package.json b/apps/frontend/package.json index 0535d4ac..a0f88811 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -37,7 +37,6 @@ "scripts": { "dev": "vite", "build": "vite build", - "build-trends": "vite build", "preview": "vite preview", "typecheck": "tsc --noEmit" }, diff --git a/apps/frontend/vercel.json b/apps/frontend/vercel.json index c41c8e63..3baa54fd 100644 --- a/apps/frontend/vercel.json +++ b/apps/frontend/vercel.json @@ -1,6 +1,6 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", "installCommand": "cd ../../ && pnpm install && rm -rf ./apps/frontend/node_modules && ./vercel-preparation.sh && pnpm --filter ./apps/frontend/ --legacy deploy ./apps/deployment/ && mv ./apps/deployment/node_modules/ ./apps/frontend/node_modules/", - "buildCommand": "pnpm run build-trends", + "buildCommand": "pnpm run build", "outputDirectory": "build" } diff --git a/apps/frontend/vite.config.ts b/apps/frontend/vite.config.ts index 63965298..07ad3988 100644 --- a/apps/frontend/vite.config.ts +++ b/apps/frontend/vite.config.ts @@ -41,7 +41,6 @@ export default defineConfig({ }, ], build: { - minify: false, outDir: "build", /** @todo use chunks to split bundle? */