Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fi3ework/rollup-plugin-fork-ts-checker
🚀 Rollup plugin that runs typescript type checker on a separate process.
https://github.com/fi3ework/rollup-plugin-fork-ts-checker
eslint rollup rollup-plugin speedup typescript
Last synced: 19 days ago
JSON representation
🚀 Rollup plugin that runs typescript type checker on a separate process.
- Host: GitHub
- URL: https://github.com/fi3ework/rollup-plugin-fork-ts-checker
- Owner: fi3ework
- License: mit
- Created: 2020-05-06T09:34:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T13:55:33.000Z (almost 4 years ago)
- Last Synced: 2024-10-03T09:26:23.433Z (about 1 month ago)
- Topics: eslint, rollup, rollup-plugin, speedup, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/rollup-plugin-fork-ts-checker
- Size: 562 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rollup-plugin-fork-ts-checker
> The project is currently in alpha phase.
[fork-ts-checker-webpack-plugin](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin) is a great Webpack plugin that saves time from waiting for type checking. This repo heavily relies on fork-ts-checker-webpack-plugin, core logic of type checking is directly imported from it, with a adapation for Rollup.
![npm](https://img.shields.io/npm/v/rollup-plugin-fork-ts-checker) ![CI](https://github.com/fi3ework/rollup-plugin-fork-ts-checker/workflows/CI/badge.svg) ![npm](https://img.shields.io/npm/dw/rollup-plugin-fork-ts-checker)
## Usage
Install with NPM
```bash
npm i fork-ts-checker-webpack-plugin -D
```or with Yarn
```bash
yarn add fork-ts-checker-webpack-plugin -D
```The original idea for this plugin was to work with [rollup-plugin-typescript2](https://github.com/ezolenko/rollup-plugin-typescript2). It also could work with any none type checking TypeScript compile tool.
Here's a simple Rollup config example work with rpt2:
```js
const rpt2 = require('rollup-plugin-typescript2')
const ftc = require('rollup-plugin-fork-ts-checker').defaultexport default {
input: 'src/index.ts',
plugins: [
ftc({
// Plugin options, mostly same as fork-ts-checker-webpack-plugin.
// See https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#options
// Some options can't be supported. See Caveat section for detail.
}),
rpt2({
// Disable type checking of compiler, leave it to ftc.
check: false
})
],
output: {
file: 'bundle.js',
format: 'cjs'
}
}
```## Caveat
Most options are completely same as [fork-ts-checker-webpack-plugin](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#options). But some functionality can not be supported.
- Webpack related configurations (e.g. ts-loader, happypack).
- vue (could be supported, still WIP).## License
MIT