From 414733a2a116d83f622d47850c39d8052b921ec4 Mon Sep 17 00:00:00 2001 From: arlo Date: Sat, 15 Jun 2024 00:43:46 +0800 Subject: [PATCH] chore: rename browser-extension to chrome-extension --- .eslintignore | 4 ++-- .gitignore | 4 ++-- package.json | 4 ++-- .../README.md | 0 .../icons/128-gray.png | Bin .../icons/128.nuxt.png | Bin .../icons/128.png | Bin .../icons/16-gray.png | Bin .../icons/16.nuxt.png | Bin .../icons/16.png | Bin .../icons/48-gray.png | Bin .../icons/48.nuxt.png | Bin .../icons/48.png | Bin .../manifest.json | 0 .../package.json | 2 +- .../pages/devtools-background.html | 0 .../pages/devtools-panel.html | 0 .../popups/devtools-screenshot.png | Bin .../popups/disabled.html | 0 .../popups/disabled.nuxt.html | 0 .../popups/enabled.html | 0 .../popups/enabled.nuxt.html | 0 .../popups/not-found.html | 0 .../popups/popup.css | 0 .../src/background.ts | 0 .../src/detector.ts | 0 .../src/devtools-background.ts | 0 .../src/devtools-overlay.ts | 0 .../src/devtools-panel.ts | 0 .../src/prepare.ts | 0 .../src/proxy.ts | 0 .../src/user-app.ts | 0 .../tsup.config.ts | 0 packages/client/scripts/pre-build.ts | 2 +- packages/client/vite.lib.config.ts | 2 +- packages/overlay/vite.config.ts | 2 +- pnpm-lock.yaml | 2 +- scripts/extension-zip.ts | 2 +- turbo.json | 4 ++-- 39 files changed, 14 insertions(+), 14 deletions(-) rename packages/{browser-extension => chrome-extension}/README.md (100%) rename packages/{browser-extension => chrome-extension}/icons/128-gray.png (100%) rename packages/{browser-extension => chrome-extension}/icons/128.nuxt.png (100%) rename packages/{browser-extension => chrome-extension}/icons/128.png (100%) rename packages/{browser-extension => chrome-extension}/icons/16-gray.png (100%) rename packages/{browser-extension => chrome-extension}/icons/16.nuxt.png (100%) rename packages/{browser-extension => chrome-extension}/icons/16.png (100%) rename packages/{browser-extension => chrome-extension}/icons/48-gray.png (100%) rename packages/{browser-extension => chrome-extension}/icons/48.nuxt.png (100%) rename packages/{browser-extension => chrome-extension}/icons/48.png (100%) rename packages/{browser-extension => chrome-extension}/manifest.json (100%) rename packages/{browser-extension => chrome-extension}/package.json (91%) rename packages/{browser-extension => chrome-extension}/pages/devtools-background.html (100%) rename packages/{browser-extension => chrome-extension}/pages/devtools-panel.html (100%) rename packages/{browser-extension => chrome-extension}/popups/devtools-screenshot.png (100%) rename packages/{browser-extension => chrome-extension}/popups/disabled.html (100%) rename packages/{browser-extension => chrome-extension}/popups/disabled.nuxt.html (100%) rename packages/{browser-extension => chrome-extension}/popups/enabled.html (100%) rename packages/{browser-extension => chrome-extension}/popups/enabled.nuxt.html (100%) rename packages/{browser-extension => chrome-extension}/popups/not-found.html (100%) rename packages/{browser-extension => chrome-extension}/popups/popup.css (100%) rename packages/{browser-extension => chrome-extension}/src/background.ts (100%) rename packages/{browser-extension => chrome-extension}/src/detector.ts (100%) rename packages/{browser-extension => chrome-extension}/src/devtools-background.ts (100%) rename packages/{browser-extension => chrome-extension}/src/devtools-overlay.ts (100%) rename packages/{browser-extension => chrome-extension}/src/devtools-panel.ts (100%) rename packages/{browser-extension => chrome-extension}/src/prepare.ts (100%) rename packages/{browser-extension => chrome-extension}/src/proxy.ts (100%) rename packages/{browser-extension => chrome-extension}/src/user-app.ts (100%) rename packages/{browser-extension => chrome-extension}/tsup.config.ts (100%) diff --git a/.eslintignore b/.eslintignore index 342d2741..c325d4dc 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,7 +3,7 @@ node_modules ci.yml release.yml **.svg -packages/browser-extension/overlay/* +packages/chrome-extension/overlay/* packages/vite/src/overlay/* -packages/browser-extension/client/* +packages/chrome-extension/client/* eslint.config.js diff --git a/.gitignore b/.gitignore index cc1b2b7e..e3eeca6a 100644 --- a/.gitignore +++ b/.gitignore @@ -89,8 +89,8 @@ components.d.ts # Project -packages/browser-extension/overlay/**/* -packages/browser-extension/client/**/* +packages/chrome-extension/overlay/**/* +packages/chrome-extension/client/**/* packages/electron/client/**/* packages/vite/src/overlay/**/* packages/vite/client/**/* diff --git a/package.json b/package.json index d9cbdb52..49d16ae1 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,8 @@ "build:ui": "turbo build --filter=./packages/ui...", "build:vite": "turbo build --filter=./packages/vite...", "build:devtools-api": "turbo build --filter=./packages/devtools-api...", - "build:browser-extension": "turbo build --filter=./packages/browser-extension...", - "dev:browser-extension": "turbo dev --filter=./packages/browser-extension", + "build:chrome-extension": "turbo build --filter=./packages/chrome-extension...", + "dev:chrome-extension": "turbo dev --filter=./packages/chrome-extension", "dev:ui-story": "turbo dev --filter=./packages/ui-story", "prepare:type": "turbo prepare:type --filter='./packages/*'", "dev": "NODE_OPTIONS=\"--max-old-space-size=8192\" nr prepare:type && nr build:ui && turbo stub --concurrency 20", diff --git a/packages/browser-extension/README.md b/packages/chrome-extension/README.md similarity index 100% rename from packages/browser-extension/README.md rename to packages/chrome-extension/README.md diff --git a/packages/browser-extension/icons/128-gray.png b/packages/chrome-extension/icons/128-gray.png similarity index 100% rename from packages/browser-extension/icons/128-gray.png rename to packages/chrome-extension/icons/128-gray.png diff --git a/packages/browser-extension/icons/128.nuxt.png b/packages/chrome-extension/icons/128.nuxt.png similarity index 100% rename from packages/browser-extension/icons/128.nuxt.png rename to packages/chrome-extension/icons/128.nuxt.png diff --git a/packages/browser-extension/icons/128.png b/packages/chrome-extension/icons/128.png similarity index 100% rename from packages/browser-extension/icons/128.png rename to packages/chrome-extension/icons/128.png diff --git a/packages/browser-extension/icons/16-gray.png b/packages/chrome-extension/icons/16-gray.png similarity index 100% rename from packages/browser-extension/icons/16-gray.png rename to packages/chrome-extension/icons/16-gray.png diff --git a/packages/browser-extension/icons/16.nuxt.png b/packages/chrome-extension/icons/16.nuxt.png similarity index 100% rename from packages/browser-extension/icons/16.nuxt.png rename to packages/chrome-extension/icons/16.nuxt.png diff --git a/packages/browser-extension/icons/16.png b/packages/chrome-extension/icons/16.png similarity index 100% rename from packages/browser-extension/icons/16.png rename to packages/chrome-extension/icons/16.png diff --git a/packages/browser-extension/icons/48-gray.png b/packages/chrome-extension/icons/48-gray.png similarity index 100% rename from packages/browser-extension/icons/48-gray.png rename to packages/chrome-extension/icons/48-gray.png diff --git a/packages/browser-extension/icons/48.nuxt.png b/packages/chrome-extension/icons/48.nuxt.png similarity index 100% rename from packages/browser-extension/icons/48.nuxt.png rename to packages/chrome-extension/icons/48.nuxt.png diff --git a/packages/browser-extension/icons/48.png b/packages/chrome-extension/icons/48.png similarity index 100% rename from packages/browser-extension/icons/48.png rename to packages/chrome-extension/icons/48.png diff --git a/packages/browser-extension/manifest.json b/packages/chrome-extension/manifest.json similarity index 100% rename from packages/browser-extension/manifest.json rename to packages/chrome-extension/manifest.json diff --git a/packages/browser-extension/package.json b/packages/chrome-extension/package.json similarity index 91% rename from packages/browser-extension/package.json rename to packages/chrome-extension/package.json index e8793261..e068b228 100644 --- a/packages/browser-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,5 +1,5 @@ { - "name": "@vue/devtools-browser-extension", + "name": "@vue/devtools-chrome-extension", "type": "module", "version": "7.3.0-beta.3", "private": true, diff --git a/packages/browser-extension/pages/devtools-background.html b/packages/chrome-extension/pages/devtools-background.html similarity index 100% rename from packages/browser-extension/pages/devtools-background.html rename to packages/chrome-extension/pages/devtools-background.html diff --git a/packages/browser-extension/pages/devtools-panel.html b/packages/chrome-extension/pages/devtools-panel.html similarity index 100% rename from packages/browser-extension/pages/devtools-panel.html rename to packages/chrome-extension/pages/devtools-panel.html diff --git a/packages/browser-extension/popups/devtools-screenshot.png b/packages/chrome-extension/popups/devtools-screenshot.png similarity index 100% rename from packages/browser-extension/popups/devtools-screenshot.png rename to packages/chrome-extension/popups/devtools-screenshot.png diff --git a/packages/browser-extension/popups/disabled.html b/packages/chrome-extension/popups/disabled.html similarity index 100% rename from packages/browser-extension/popups/disabled.html rename to packages/chrome-extension/popups/disabled.html diff --git a/packages/browser-extension/popups/disabled.nuxt.html b/packages/chrome-extension/popups/disabled.nuxt.html similarity index 100% rename from packages/browser-extension/popups/disabled.nuxt.html rename to packages/chrome-extension/popups/disabled.nuxt.html diff --git a/packages/browser-extension/popups/enabled.html b/packages/chrome-extension/popups/enabled.html similarity index 100% rename from packages/browser-extension/popups/enabled.html rename to packages/chrome-extension/popups/enabled.html diff --git a/packages/browser-extension/popups/enabled.nuxt.html b/packages/chrome-extension/popups/enabled.nuxt.html similarity index 100% rename from packages/browser-extension/popups/enabled.nuxt.html rename to packages/chrome-extension/popups/enabled.nuxt.html diff --git a/packages/browser-extension/popups/not-found.html b/packages/chrome-extension/popups/not-found.html similarity index 100% rename from packages/browser-extension/popups/not-found.html rename to packages/chrome-extension/popups/not-found.html diff --git a/packages/browser-extension/popups/popup.css b/packages/chrome-extension/popups/popup.css similarity index 100% rename from packages/browser-extension/popups/popup.css rename to packages/chrome-extension/popups/popup.css diff --git a/packages/browser-extension/src/background.ts b/packages/chrome-extension/src/background.ts similarity index 100% rename from packages/browser-extension/src/background.ts rename to packages/chrome-extension/src/background.ts diff --git a/packages/browser-extension/src/detector.ts b/packages/chrome-extension/src/detector.ts similarity index 100% rename from packages/browser-extension/src/detector.ts rename to packages/chrome-extension/src/detector.ts diff --git a/packages/browser-extension/src/devtools-background.ts b/packages/chrome-extension/src/devtools-background.ts similarity index 100% rename from packages/browser-extension/src/devtools-background.ts rename to packages/chrome-extension/src/devtools-background.ts diff --git a/packages/browser-extension/src/devtools-overlay.ts b/packages/chrome-extension/src/devtools-overlay.ts similarity index 100% rename from packages/browser-extension/src/devtools-overlay.ts rename to packages/chrome-extension/src/devtools-overlay.ts diff --git a/packages/browser-extension/src/devtools-panel.ts b/packages/chrome-extension/src/devtools-panel.ts similarity index 100% rename from packages/browser-extension/src/devtools-panel.ts rename to packages/chrome-extension/src/devtools-panel.ts diff --git a/packages/browser-extension/src/prepare.ts b/packages/chrome-extension/src/prepare.ts similarity index 100% rename from packages/browser-extension/src/prepare.ts rename to packages/chrome-extension/src/prepare.ts diff --git a/packages/browser-extension/src/proxy.ts b/packages/chrome-extension/src/proxy.ts similarity index 100% rename from packages/browser-extension/src/proxy.ts rename to packages/chrome-extension/src/proxy.ts diff --git a/packages/browser-extension/src/user-app.ts b/packages/chrome-extension/src/user-app.ts similarity index 100% rename from packages/browser-extension/src/user-app.ts rename to packages/chrome-extension/src/user-app.ts diff --git a/packages/browser-extension/tsup.config.ts b/packages/chrome-extension/tsup.config.ts similarity index 100% rename from packages/browser-extension/tsup.config.ts rename to packages/chrome-extension/tsup.config.ts diff --git a/packages/client/scripts/pre-build.ts b/packages/client/scripts/pre-build.ts index c21fee29..df32aac2 100644 --- a/packages/client/scripts/pre-build.ts +++ b/packages/client/scripts/pre-build.ts @@ -5,7 +5,7 @@ import fse from 'fs-extra' const __dirname = fileURLToPath(new URL('.', import.meta.url)) async function run() { - ;['../../browser-extension/client', '../../electron/client', '../../vite/client'].forEach((dir) => { + ;['../../chrome-extension/client', '../../electron/client', '../../vite/client'].forEach((dir) => { const absoluteDir = resolve(__dirname, dir) if (fse.existsSync(absoluteDir)) fse.removeSync(absoluteDir) diff --git a/packages/client/vite.lib.config.ts b/packages/client/vite.lib.config.ts index 7ce912d9..753c1fa2 100644 --- a/packages/client/vite.lib.config.ts +++ b/packages/client/vite.lib.config.ts @@ -44,7 +44,7 @@ export default defineConfig(mergeConfig(baseConfig, { closeBundle() { // copy const clientFile = resolve(__dirname, './dist/devtools-client-lib') - ;['../browser-extension/client', '../electron/client'].forEach((dir) => { + ;['../chrome-extension/client', '../electron/client'].forEach((dir) => { fse.copySync(clientFile, resolve(__dirname, dir)) }) }, diff --git a/packages/overlay/vite.config.ts b/packages/overlay/vite.config.ts index a1bf242c..52a7ca32 100644 --- a/packages/overlay/vite.config.ts +++ b/packages/overlay/vite.config.ts @@ -47,7 +47,7 @@ export default defineConfig({ // Browser extension keep using js file fse.copySync( overlayFile, - resolve(__dirname, '../browser-extension/overlay'), + resolve(__dirname, '../chrome-extension/overlay'), { filter: (file) => { return !file.endsWith('.mjs') diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 14d9a946..18526332 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -193,7 +193,7 @@ importers: specifier: ^4.3.3 version: 4.3.3(vue@3.4.27(typescript@5.4.5)) - packages/browser-extension: + packages/chrome-extension: dependencies: '@vue/devtools-core': specifier: workspace:^ diff --git a/scripts/extension-zip.ts b/scripts/extension-zip.ts index 5772909b..a885af5e 100644 --- a/scripts/extension-zip.ts +++ b/scripts/extension-zip.ts @@ -6,7 +6,7 @@ import readdirGlob from 'readdir-glob' import ProgressBar from 'progress' const __dirname = path.dirname(fileURLToPath(import.meta.url)) -const targetPkgDir = path.join(__dirname, '../packages/browser-extension') +const targetPkgDir = path.join(__dirname, '../packages/chrome-extension') const INCLUDE_FILES = [ 'client/**', 'dist/**', diff --git a/turbo.json b/turbo.json index d054dbf5..3e81143c 100644 --- a/turbo.json +++ b/turbo.json @@ -8,7 +8,7 @@ "@vue/devtools-electron#stub" ] }, - "@vue/devtools-browser-extension#build": { + "@vue/devtools-chrome-extension#build": { "dependsOn": [ "@vue/devtools-client#build", "^build" @@ -24,7 +24,7 @@ "outputs": [ "dist/**", "../electron/client/**", - "../browser-extension/client/**", + "../chrome-extension/client/**", "../vite/client/**" ] },