@lndrstrll/pomuku-config
v0.1.2
Published
pomuku's presets for an app's web build: typescript, oxlint, vite and vitest
Readme
@lndrstrll/pomuku-config
the settings an app's web build shares with the others, so that they stop drifting apart.
// tsconfig.app.json
{ "extends": "@lndrstrll/pomuku-config/tsconfig/app.json", "compilerOptions": { "paths": { "@/*": ["./src/*"] } }, "include": ["src"] }
// tsconfig.node.json
{ "extends": "@lndrstrll/pomuku-config/tsconfig/node.json", "include": ["vite.config.ts"] }
// .oxlintrc.json
{ "extends": ["./node_modules/@lndrstrll/pomuku-config/oxlint.json"] }// vite.config.ts
import { pomukuVite } from '@lndrstrll/pomuku-config/vite'
export default defineConfig(pomukuVite({ root: import.meta.dirname }))
// vitest.config.ts
import { pomukuVitest } from '@lndrstrll/pomuku-config/vitest'
export default defineConfig(pomukuVitest({ root: import.meta.dirname }))- vite: react, tailwind, and
@for the app's ownsrc.readParent: truelets the dev server read the folder above, for an about page that shows the repo's readme. - vitest: the backend's address and the sign-in client id are forced empty, so that tests never read a developer's
.env.localand reach a real backend. - typescript: strict, bundler resolution, no emit.
pathsandincludestay in the app's own file, since they're relative to it.
