Remove unused configs
This commit is contained in:
		@ -1,40 +0,0 @@
 | 
			
		||||
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
 | 
			
		||||
const { FuseV1Options, FuseVersion } = require('@electron/fuses');
 | 
			
		||||
 | 
			
		||||
module.exports = {
 | 
			
		||||
  packagerConfig: {
 | 
			
		||||
    asar: true,
 | 
			
		||||
  },
 | 
			
		||||
  rebuildConfig: {},
 | 
			
		||||
  makers: [
 | 
			
		||||
    {
 | 
			
		||||
      name: '@electron-forge/maker-squirrel',
 | 
			
		||||
      config: {},
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      name: '@electron-forge/maker-zip',
 | 
			
		||||
      platforms: ['darwin'],
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      name: '@electron-forge/maker-deb',
 | 
			
		||||
      config: {},
 | 
			
		||||
    },
 | 
			
		||||
  ],
 | 
			
		||||
  plugins: [
 | 
			
		||||
    {
 | 
			
		||||
      name: '@electron-forge/plugin-auto-unpack-natives',
 | 
			
		||||
      config: {},
 | 
			
		||||
    },
 | 
			
		||||
    // Fuses are used to enable/disable various Electron functionality
 | 
			
		||||
    // at package time, before code signing the application
 | 
			
		||||
    new FusesPlugin({
 | 
			
		||||
      version: FuseVersion.V1,
 | 
			
		||||
      [FuseV1Options.RunAsNode]: false,
 | 
			
		||||
      [FuseV1Options.EnableCookieEncryption]: true,
 | 
			
		||||
      [FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
 | 
			
		||||
      [FuseV1Options.EnableNodeCliInspectArguments]: false,
 | 
			
		||||
      [FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
 | 
			
		||||
      [FuseV1Options.OnlyLoadAppFromAsar]: true,
 | 
			
		||||
    }),
 | 
			
		||||
  ],
 | 
			
		||||
};
 | 
			
		||||
@ -1,69 +0,0 @@
 | 
			
		||||
import react from '@vitejs/plugin-react'
 | 
			
		||||
import viteTsconfigPaths from 'vite-tsconfig-paths'
 | 
			
		||||
import eslint from 'vite-plugin-eslint'
 | 
			
		||||
import { defineConfig, configDefaults } from 'vitest/config'
 | 
			
		||||
import version from 'vite-plugin-package-version'
 | 
			
		||||
// @ts-ignore: No types available
 | 
			
		||||
import { lezer } from '@lezer/generator/rollup'
 | 
			
		||||
 | 
			
		||||
const config = defineConfig({
 | 
			
		||||
  server: {
 | 
			
		||||
    open: true,
 | 
			
		||||
    port: 3000,
 | 
			
		||||
    watch: {
 | 
			
		||||
      ignored: [
 | 
			
		||||
        '**/target/**',
 | 
			
		||||
        '**/dist/**',
 | 
			
		||||
        '**/build/**',
 | 
			
		||||
        '**/test-results/**',
 | 
			
		||||
        '**/playwright-report/**',
 | 
			
		||||
      ],
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  test: {
 | 
			
		||||
    globals: true,
 | 
			
		||||
    pool: 'forks',
 | 
			
		||||
    poolOptions: {
 | 
			
		||||
      forks: {
 | 
			
		||||
        maxForks: 2,
 | 
			
		||||
        minForks: 1,
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
    setupFiles: ['src/setupTests.ts', '@vitest/web-worker'],
 | 
			
		||||
    environment: 'happy-dom',
 | 
			
		||||
    coverage: {
 | 
			
		||||
      provider: 'istanbul', // or 'v8'
 | 
			
		||||
    },
 | 
			
		||||
    exclude: [...configDefaults.exclude, '**/e2e/**/*'],
 | 
			
		||||
    deps: {
 | 
			
		||||
      optimizer: {
 | 
			
		||||
        web: {
 | 
			
		||||
          include: ['vitest-canvas-mock'],
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
    clearMocks: true,
 | 
			
		||||
    restoreMocks: true,
 | 
			
		||||
    mockReset: true,
 | 
			
		||||
    reporters: process.env.GITHUB_ACTIONS
 | 
			
		||||
      ? ['dot', 'github-actions']
 | 
			
		||||
      : ['verbose', 'hanging-process'],
 | 
			
		||||
    testTimeout: 1000,
 | 
			
		||||
    hookTimeout: 1000,
 | 
			
		||||
    teardownTimeout: 1000,
 | 
			
		||||
  },
 | 
			
		||||
  build: {
 | 
			
		||||
    outDir: 'build',
 | 
			
		||||
  },
 | 
			
		||||
  resolve: {
 | 
			
		||||
    alias: {
 | 
			
		||||
      '@kittycad/codemirror-lsp-client': '/packages/codemirror-lsp-client/src',
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  plugins: [react(), viteTsconfigPaths(), eslint(), version(), lezer()],
 | 
			
		||||
  worker: {
 | 
			
		||||
    plugins: () => [viteTsconfigPaths()],
 | 
			
		||||
  },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
export default config
 | 
			
		||||
		Reference in New Issue
	
	Block a user