@poi/plugin-typescript
Last updated 8 years ago by egoist .
Original npm · Tarball · package.json
$ npm 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 (7 years ago)
  • 12.0.0-alpha.2                                ...           future (8 years ago)
  • 12.3.1                                ...           latest (7 years ago)
  • 12.0.0-beta.2                                ...           next (8 years ago)

31 Versions

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

© 2010 - cnpmjs.org x YWFE | Home | YWFE