From fe237ed883d99a9224d2a9dccd2fffac3402eb9f Mon Sep 17 00:00:00 2001 From: Arthur Green Date: Fri, 20 Dec 2024 23:19:24 +0400 Subject: [PATCH] chore: rename --- apps/client/package.json | 6 +++--- apps/client/vite.config.ts | 4 +--- lighthouserc.yml | 8 ++++---- playwright.config.ts | 4 ++-- tests/render.e2e.spec.ts | 2 +- 5 files changed, 11 insertions(+), 13 deletions(-) diff --git a/apps/client/package.json b/apps/client/package.json index 651dad8a..b2dc3b7c 100644 --- a/apps/client/package.json +++ b/apps/client/package.json @@ -2,7 +2,7 @@ "name": "client", "version": "2.12.1", "main": "apps/client/app/index.tsx", - "homepage": "https://pure-js.github.io/local-microblogging-client/", + "homepage": "https://pure-js.github.io/self-hosted-microblogging/", "type": "module", "scripts": { "preinstall": "npx only-allow pnpm", @@ -21,12 +21,12 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/pure-js/local-microblogging-client.git" + "url": "git+https://github.com/pure-js/self-hosted-microblogging.git" }, "author": "pure-js", "license": "MIT", "bugs": { - "url": "https://github.com/pure-js/local-microblogging-client/issues" + "url": "https://github.com/pure-js/self-hosted-microblogging/issues" }, "devDependencies": { "@nx/eslint": "20.1.4", diff --git a/apps/client/vite.config.ts b/apps/client/vite.config.ts index cf0a7907..f226e50f 100644 --- a/apps/client/vite.config.ts +++ b/apps/client/vite.config.ts @@ -14,9 +14,7 @@ const ReactCompilerConfig = { export default defineConfig({ base: - process.env.NODE_ENV === 'production' - ? '/local-microblogging-client/' - : '/', + process.env.NODE_ENV === 'production' ? '/self-hosted-microblogging/' : '/', build: { emptyOutDir: true, cssMinify: 'lightningcss', diff --git a/lighthouserc.yml b/lighthouserc.yml index f5cff420..50d6ddb2 100644 --- a/lighthouserc.yml +++ b/lighthouserc.yml @@ -3,10 +3,10 @@ ci: numberOfRuns: 5 startServerCommand: pnpm run preview url: - - 'http://localhost:4173/local-microblogging-client/' - - 'http://localhost:4173/local-microblogging-client/posts/1' - - 'http://localhost:4173/local-microblogging-client/posts/1/edit' - - 'http://localhost:4173/local-microblogging-client/posts/new' + - 'http://localhost:4173/self-hosted-microblogging/' + - 'http://localhost:4173/self-hosted-microblogging/posts/1' + - 'http://localhost:4173/self-hosted-microblogging/posts/1/edit' + - 'http://localhost:4173/self-hosted-microblogging/posts/new' # staticDistDir: './dist' isSinglePageApplication: true assert: diff --git a/playwright.config.ts b/playwright.config.ts index 73cc670e..70b1a51d 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -39,7 +39,7 @@ const config: PlaywrightTestConfig = { /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */ actionTimeout: 0, /* Base URL to use in actions like `await page.goto('/')`. */ - baseURL: 'http:/localhost:4173/local-microblogging-client/', + baseURL: 'http:/localhost:4173/self-hosted-microblogging/', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', }, @@ -103,7 +103,7 @@ const config: PlaywrightTestConfig = { webServer: { cwd: './apps/client', command: 'pnpm run build && pnpm run preview', - url: 'http://localhost:4173/local-microblogging-client/', + url: 'http://localhost:4173/self-hosted-microblogging/', reuseExistingServer: !process.env.CI, }, }; diff --git a/tests/render.e2e.spec.ts b/tests/render.e2e.spec.ts index 591a9165..a7d004ac 100644 --- a/tests/render.e2e.spec.ts +++ b/tests/render.e2e.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test'; -const BASE_PATH = '/local-microblogging-client'; +const BASE_PATH = '/self-hosted-microblogging'; test('homepage has Micrblogging in title and get started link linking to the new post page', async ({ page,