@poi/plugin-typescript
Official TypeScript plugin for Poi.
Last updated 5 months ago by egoist .
Original npm · Tarball · package.json
$ cnpm install @poi/plugin-typescript 
SYNC missed versions from official npm registry.

@poi/plugin-typescript

Official TypeScript plugin for Poi.

Introduction

This plugin use ts-loader to transpile TypeScript files, it also uses fork-ts-checker-webpack-plugin to perform type-checking. .ts .tsx and .vue files are supported.

It's possible to run Babel alongside TypeScript using the babel option. When used with Babel, it's recommended to set compilerOptions.target to es2015 or later in tsconfig.json to delegate the rest to Babel for auto polyfill based on browser targets.

Install

yarn add @poi/plugin-typescript typescript --dev

How to use

module.exports = {
  plugins: [
    {
      resolve: '@poi/plugin-typescript',
      options: {}
    }
  ]
}

Then add a tsconfig.json in your project:

{
  "compilerOptions": {
    "target": "es5",
    "strict": true,
    "module": "es2015",
    "moduleResolution": "node"
  }
}

Options

babel

  • Type: boolean
  • Default: false

Use Babel after the TypeScript compiler.

lintOnSave

  • Type: boolean
  • Default: true

Lint TS files with ts-lint at compile time, note that it will only work when you have a tslint.json in your project root.

configFile

  • Type: string
  • Default: tsconfig.json

The path to the TypeScript config file.

loaderOptions

  • Type: any

Addtional options for ts-loader.

tscheckerOptions

  • Type: any

Additional options for fork-ts-checker-webpack-plugin.

Current Tags

  • 12.2.2-canary.585.f015dbf.0                                ...           canary (a year ago)
  • 12.0.0-alpha.2                                ...           future (2 years ago)
  • 12.3.1                                ...           latest (5 months ago)
  • 12.0.0-beta.2                                ...           next (2 years ago)

31 Versions

  • 12.3.1                                ...           5 months ago
  • 12.3.0                                ...           6 months ago
  • 12.2.2-canary.585.f015dbf.0                                ...           a year ago
  • 12.2.1                                ...           a year ago
  • 12.2.0                                ...           2 years ago
  • 12.1.0                                ...           2 years ago
  • 12.0.1                                ...           2 years ago
  • 12.0.0                                ...           2 years ago
  • 12.0.0-beta.2                                ...           2 years ago
  • 12.0.0-beta.1                                ...           2 years ago
  • 12.0.0-beta.0                                ...           2 years ago
  • 12.0.0-alpha.7                                ...           2 years ago
  • 12.0.0-alpha.6                                ...           2 years ago
  • 12.0.0-alpha.5                                ...           2 years ago
  • 12.0.0-alpha.4                                ...           2 years ago
  • 12.0.0-alpha.3                                ...           2 years ago
  • 12.0.0-alpha.2                                ...           2 years ago
  • 10.2.0                                ...           2 years ago
  • 10.1.4                                ...           2 years ago
  • 10.1.3                                ...           2 years ago
  • 10.1.2                                ...           2 years ago
  • 10.1.1                                ...           2 years ago
  • 10.1.0                                ...           2 years ago
  • 10.0.0                                ...           2 years ago
  • 10.0.0-rc.1                                ...           2 years ago
  • 10.0.0-rc.0                                ...           2 years ago
  • 10.0.0-beta.10                                ...           2 years ago
  • 10.0.0-beta.9                                ...           2 years ago
  • 10.0.0-beta.8                                ...           3 years ago
  • 10.0.0-beta.7                                ...           3 years ago
  • 10.0.0-beta.2                                ...           3 years ago
Downloads
Today 0
This Week 44
This Month 58
Last Day 3
Last Week 7
Last Month 35
Dependencies (4)
Dev Dependencies (1)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |