1.0.6 • Published 4 years ago

@vta/plugin-typescript v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@vta/plugin-typescript

typescript plugin for vta

npm Build Status

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");
  }
}

MIT License

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago