Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stripTypes option to npm docs #2223

Merged
merged 1 commit into from
Sep 22, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions npm-react-tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ This package installs a `jsx` executable that can be used to transform JSX into
--output-charset <utf8 | win1252 | ...> Charset of output (default: utf8)
--harmony Turns on JS transformations such as ES6 Classes etc.
--source-map-inline Embed inline sourcemap in transformed source
--strip-types Strips out type annotations

## API

Expand All @@ -37,6 +38,7 @@ option | values | default
`sourceMap` | `true`: append inline source map at the end of the transformed source | `false`
`harmony` | `true`: enable ES6 features | `false`
`filename` | the output filename for the source map | `"source.js"`
`stripTypes` | `true`: strips out type annotations | `false`

```js
var reactTools = require('react-tools');
Expand Down