2016-01-16 13:09:33 +00:00
|
|
|
# npmts
|
2016-01-16 13:20:14 +00:00
|
|
|
Write npm modules with TypeScript without hassle.
|
2016-01-16 13:09:33 +00:00
|
|
|
|
|
|
|
## How to use npmts
|
|
|
|
|
|
|
|
### Install
|
|
|
|
First install npmts as dev dependency:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
npm install npmts --save-dev
|
|
|
|
```
|
|
|
|
|
|
|
|
Then use it in package.json's script section to trigger a build:
|
|
|
|
|
|
|
|
```json
|
|
|
|
"scripts": {
|
|
|
|
"test": "npmts"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Default behaviour
|
2016-01-16 13:20:14 +00:00
|
|
|
by default npmts looks for an `./ts/index.ts` and a `./ts/test.ts` that will compile to
|
|
|
|
`./index.js` and `./test.js`
|
|
|
|
|
|
|
|
## Dev Readme
|
|
|
|
There is a dev [README-dev.md](README-dev.md) in the repo.
|