micro-ts-dev
Adds TypeScript support to micro-dev
Last updated a year ago by tkuminecz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install micro-ts-dev 
SYNC missed versions from official npm registry.

micro-ts-dev

This is a wrapper around micro-dev that adds support for TypeScript.

Usage

First, install micro-ts-dev:

npm install --save-dev micro-ts-dev

Next, add a new script property inside package.json:

"scripts": {
  "dev": "micro-ts-dev"
}

Finally, start the development server:

npm run dev

TypeScript Support

TypeScript support should work out of the box, but you can also create a tsconfig.json to specify configuration.

Babel Support

micro-ts-dev uses babel to compile TypeScript. By default it uses the env and typescript presets.

You can create a .babelrc file in your project to override the babel configuration. micro-ts-dev will perform a shallow merge of your custom configuration with the defaults.

Current Tags

  • 0.1.1                                ...           latest (a year ago)

2 Versions

  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 3
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |