mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-06 14:50:21 -05:00
49 lines
999 B
TypeScript
49 lines
999 B
TypeScript
/// <reference types='vitest' />
|
|
import { defineConfig } from 'vite';
|
|
|
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
|
|
export default defineConfig({
|
|
root: __dirname,
|
|
cacheDir: '../../node_modules/.vite/apps/example-styles',
|
|
|
|
server: {
|
|
port: 4201,
|
|
host: '0.0.0.0',
|
|
},
|
|
|
|
preview: {
|
|
port: 4201,
|
|
host: '0.0.0.0',
|
|
},
|
|
|
|
plugins: [nxViteTsPaths()],
|
|
|
|
// Uncomment this if you are using workers.
|
|
// worker: {
|
|
// plugins: [ nxViteTsPaths() ],
|
|
// },
|
|
|
|
build: {
|
|
outDir: '../../dist/apps/example-styles',
|
|
reportCompressedSize: true,
|
|
commonjsOptions: {
|
|
transformMixedEsModules: true,
|
|
},
|
|
},
|
|
|
|
test: {
|
|
globals: true,
|
|
cache: {
|
|
dir: '../../node_modules/.vitest',
|
|
},
|
|
environment: 'jsdom',
|
|
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
|
|
reporters: ['default'],
|
|
coverage: {
|
|
reportsDirectory: '../../coverage/apps/example-styles',
|
|
provider: 'v8',
|
|
},
|
|
},
|
|
});
|