Last active
October 9, 2015 01:36
-
-
Save hankyates/1edf2c1d61ef12c0d823 to your computer and use it in GitHub Desktop.
its magic yo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -exec sed -i -e 's%../app/%./%g' {} \; | |
find . -type f -exec sed -i -e 's%../build/%./views/%g' {} \; | |
find . -type f -exec sed -i '' -e 's%this.getDOMNode()%ReactDOM.findDOMNode(this)%g' {} \; | |
// osx sed -i expects an extension | |
// Illegal command try export LANG=C |
find . -type f -exec sed -i '' -e 's%this.getDOMNode()%ReactDOM.findDOMNode(this)%g' {} ;
// osx sed -i expects an extension
// Illegal command try export LANG=C
find . -type f -exec jscodeshift -t findDOMNode.js {} ;
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
find . -type f -exec sed -i -e 's%/** @jsx React.DOM */%%g' {} ;