1.1.2 • Published 3 years ago

makit-recipe-tsc v1.1.2

Weekly downloads
58
License
MIT
Repository
github
Last release
3 years ago

makit-recipe-tsc

Language Build Status Coveralls npm package npm downloads semantic-release

makit-recipe-tsc

Install

npm i makit-recipe-tsc --save-dev

Get Start

In the following code, ctx is the context of makit.

const compiler = new CustomCompiler({
    baseDir: `${__dirname}/src2`,
    outDir: `${__dirname}/src2/dist`
});

await compiler.compile(ctx);

Add a plugin

interface Plugin {
    getDepencies?: (context: PluginContext) => string[]
    beforeMakeDepencies?: (filePaths: string[], baseDir: string, outDir: string) => string[]
    onPreCompile?:  (context: PluginContext) => string
    afterCompile?:  (context: PluginContext) => string
    onDest?: (context: PluginContext) => boolean
}

const plugin: Plugin = {
    // ...
}

compiler.addPlugin(plugin);

API

API DOC

1.1.3-0

3 years ago

1.1.2

3 years ago

1.1.2-0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago