@vta/plugin-typescript
v1.0.6
Published
typescript plugin
Downloads
3
Readme
@vta/plugin-typescript
typescript plugin for vta
Main Features
- regist @babel/preset-typescript for babel
- build source code through @vta/tsc if not using webpack
- export a base tsconfig for you to extend.
@vta/plugin-typescript/tsconfig
Install
yarn add @vta/plugin-typescript --dev
Usage
{
"plugins": [["@vta/typescript"]]
}
Options
export declare interface Options {
project?: string;
exclude?: string[];
}
project
typescript config file. default tsconfig.json
exclude
the patterns of glob to exclude.
Registed Vta Feature
regist feature typescript
with nothing options. only tell other plugins that typescript is used.
class TypescriptPlugin extends Plugin {
prepare(helpers) {
helpers.registFeature("typescript");
}
}