https://github.com/quantizor/deproptypeify
:scissors: searches for <componentName>.propTypes and removes the block
https://github.com/quantizor/deproptypeify
Last synced: about 2 months ago
JSON representation
:scissors: searches for <componentName>.propTypes and removes the block
- Host: GitHub
- URL: https://github.com/quantizor/deproptypeify
- Owner: quantizor
- License: mit
- Created: 2016-01-13T19:27:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-14T05:14:24.000Z (over 9 years ago)
- Last Synced: 2025-08-24T01:50:00.324Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# deproptypeify
Searches for .propTypes and removes the block, because ifdef is annoying.
## Install
```bash
npm install deproptypeify
```
## browserify
```bash
browserify your_file.js -t deproptypeify
```
### included files
If you wish to run deproptypeify on files with extensions other than `*.js *.jsx *.es6`, add `extension` options. The API mirrors how Browserify handles adding extra extensions:
_compile-to-js languages should be preprocessed before running through this transform, as it makes use of a JS AST parser_
via CLI
```bash
browserify your_file.js -t [ deproptypeify --extension html --extension haml ]
```
via JS
```js
.transform({ extensions: ['html', 'haml'] }, deproptypeify)
```
MIT License