mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 03:51:38 +03:00
chore: remove unused files (#3466)
This commit is contained in:
parent
cc7de52caf
commit
a3087d14d8
@ -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;
|
||||||
|
@ -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();
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
if (typeof window !== 'undefined') {
|
|
||||||
window.location.search = '?prefixUrl=http://127.0.0.1:3000/';
|
|
||||||
}
|
|
@ -1,2 +0,0 @@
|
|||||||
// do nothing
|
|
||||||
export {};
|
|
@ -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'),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user