@samitouri / QOS-React-2 / commits / 7597cfc5fb

Add stripTypes option to npm docs

Stefan Dombrowski committed Sep 21, 2014 at 19:22 UTC 7597cfc5fba90b33d7191b53997cc772de31d426
1 file changed +2
npm-react-tools/README.md
+2
@@ -27,6 +27,7 @@ This package installs a `jsx` executable that can be used to transform JSX into
27 --output-charset <utf8 | win1252 | ...> Charset of output (default: utf8)
28 --harmony Turns on JS transformations such as ES6 Classes etc.
29 --source-map-inline Embed inline sourcemap in transformed source
30 + --strip-types Strips out type annotations
31
32 ## API
33
@@ -37,6 +38,7 @@ option | values | default
38 `sourceMap` | `true`: append inline source map at the end of the transformed source | `false`
39 `harmony` | `true`: enable ES6 features | `false`
40 `filename` | the output filename for the source map | `"source.js"`
41 +`stripTypes` | `true`: strips out type annotations | `false`
42
43 ```js
44 var reactTools = require('react-tools');