0.0.1-6 • Published 10 months ago
@janghood/config v0.0.1-6
@janghood/config
Janghood config loader
Document
Usage
Config File
You can use defineJhConfig to define your config.
config name maybe :
  'janghood.config.js',
  'janghood.config.mjs',
  'janghood.config.ts',
  'janghood.config.cjs',
  'janghood.config.mts',
  'janghood.config.cts'In this version, you can add config file in your package.json root path.
Load logic base on vite config, but without exhaustive testing, you can also explore the location of the config by
yourself.
Typescript
If use typescript, you can use defineJhConfig to define your config.
export default defineJhConfig({
  // ...
})API
haven't written yet.
you can see the type
JanghoodConfigdefinition intypes/config.d.ts.
baseoption will merge toapiExtractor,lint.eslint,lint.prettier.
prettiernot support right now.