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
5 changed files with 4 additions and 17 deletions
-7
View File
@@ -50,13 +50,6 @@ export default {
coverage: false,
}),
},
resolve: {
alias: {
'dotenv/config': fileURLToPath(
new URL('../../../scripts/vitest/dotenv-config.ts', import.meta.url)
),
},
},
});
},
} as StorybookConfig;
+4
View File
@@ -8,4 +8,8 @@ globalThis.runtimeConfig = getRuntimeConfig({
channel: 'canary',
});
if (typeof window !== 'undefined') {
window.location.search = '?prefixUrl=http://127.0.0.1:3010/';
}
setupGlobal();
-3
View File
@@ -1,3 +0,0 @@
if (typeof window !== 'undefined') {
window.location.search = '?prefixUrl=http://127.0.0.1:3000/';
}
-2
View File
@@ -1,2 +0,0 @@
// do nothing
export {};
-5
View File
@@ -6,7 +6,6 @@ import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vitest/config';
const rootDir = fileURLToPath(new URL('.', import.meta.url));
const pluginOutputDir = resolve(rootDir, './apps/electron/dist/plugins');
export default defineConfig({
plugins: [react(), vanillaExtractPlugin()],
@@ -17,14 +16,10 @@ export default defineConfig({
yjs: resolve(rootDir, 'node_modules/yjs'),
},
},
define: {
'process.env.PLUGIN_DIR': JSON.stringify(pluginOutputDir),
},
test: {
setupFiles: [
resolve(rootDir, './scripts/setup/lit.ts'),
resolve(rootDir, './scripts/setup/i18n.ts'),
resolve(rootDir, './scripts/setup/search.ts'),
resolve(rootDir, './scripts/setup/lottie-web.ts'),
resolve(rootDir, './scripts/setup/global.ts'),
],