Skip to content

TypeScript Compiler for Makit Depends on Incremental Compilation.

License

Notifications You must be signed in to change notification settings

searchfe/makit-recipe-tsc

Repository files navigation

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

About

TypeScript Compiler for Makit Depends on Incremental Compilation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •