JSPM

  • Created
  • Published
  • Downloads 185
  • Score
    100M100P100Q74159F
  • License MIT

Author technology like a top leader

Package Exports

  • techor

Readme


Author technology like a top leader

NPM Version NPM package ( download / month ) Follow @aron1tw Github release actions

  • Support multi-format JavaScript module configuration import like master.css.{js,mjs,cjs,ts}
  • Ability to import ESM or Typescript modules in a CommonJS environment
  • Support for deep configuration extensions
  • Independent compilation options and user configuration

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<Options, Config>()

Extend the Techor

const defaultOptions = {}

class MyTech extends Techor<Options, 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