chore: remove unused files (#3466)

This commit is contained in:
Alex Yang 2023-07-29 23:35:00 -07:00 committed by GitHub
parent cc7de52caf
commit a3087d14d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 17 deletions

View File

@ -50,13 +50,6 @@ export default {
coverage: false, coverage: false,
}), }),
}, },
resolve: {
alias: {
'dotenv/config': fileURLToPath(
new URL('../../../scripts/vitest/dotenv-config.ts', import.meta.url)
),
},
},
}); });
}, },
} as StorybookConfig; } as StorybookConfig;

View File

@ -8,4 +8,8 @@ globalThis.runtimeConfig = getRuntimeConfig({
channel: 'canary', channel: 'canary',
}); });
if (typeof window !== 'undefined') {
window.location.search = '?prefixUrl=http://127.0.0.1:3010/';
}
setupGlobal(); setupGlobal();

View File

@ -1,3 +0,0 @@
if (typeof window !== 'undefined') {
window.location.search = '?prefixUrl=http://127.0.0.1:3000/';
}

View File

@ -1,2 +0,0 @@
// do nothing
export {};

View File

@ -6,7 +6,6 @@ import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vitest/config'; import { defineConfig } from 'vitest/config';
const rootDir = fileURLToPath(new URL('.', import.meta.url)); const rootDir = fileURLToPath(new URL('.', import.meta.url));
const pluginOutputDir = resolve(rootDir, './apps/electron/dist/plugins');
export default defineConfig({ export default defineConfig({
plugins: [react(), vanillaExtractPlugin()], plugins: [react(), vanillaExtractPlugin()],
@ -17,14 +16,10 @@ export default defineConfig({
yjs: resolve(rootDir, 'node_modules/yjs'), yjs: resolve(rootDir, 'node_modules/yjs'),
}, },
}, },
define: {
'process.env.PLUGIN_DIR': JSON.stringify(pluginOutputDir),
},
test: { test: {
setupFiles: [ setupFiles: [
resolve(rootDir, './scripts/setup/lit.ts'), resolve(rootDir, './scripts/setup/lit.ts'),
resolve(rootDir, './scripts/setup/i18n.ts'), resolve(rootDir, './scripts/setup/i18n.ts'),
resolve(rootDir, './scripts/setup/search.ts'),
resolve(rootDir, './scripts/setup/lottie-web.ts'), resolve(rootDir, './scripts/setup/lottie-web.ts'),
resolve(rootDir, './scripts/setup/global.ts'), resolve(rootDir, './scripts/setup/global.ts'),
], ],