Skip to content

✂️ searches for <componentName>.propTypes and removes the block

License

Notifications You must be signed in to change notification settings

quantizor/deproptypeify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deproptypeify

Searches for .propTypes and removes the block, because ifdef is annoying.

Install

npm install deproptypeify

browserify

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

browserify your_file.js -t [ deproptypeify --extension html --extension haml ]

via JS

.transform({ extensions: ['html', 'haml'] }, deproptypeify)

MIT License

About

✂️ searches for <componentName>.propTypes and removes the block

Resources

License

Stars

Watchers

Forks

Packages

No packages published