Package Exports
- techor
Readme
Getting Started
npm i techor
First, define your Options
and Config
:
import type { TechorOptions } from 'techor'
interface Options extends TechorOptions<Config> {
...
}
interface Config {
...
}
Usage
import Techor from 'techor'
Create a techor instance
const techor = new Techor<Config>()
Extend the Techor
const defaultOptions = {}
class MyTech extends Techor<Config> {
constructor (
options: Options
) {
super(defaultOptions, options)
}
...
}
Properties
Read user config file by options.config
readConfig(): Config
Get user config path
get configPath(): string
Get resolved user config path
get resolvedConfigPath(): string