I'm using vim has an editor. JSX compiles the swap/temporary files. How can I avoid that ?
Command line :
jsx --extension js --watch src/ build/
What I see in stdout :
.helloworld.js.swp changed; rebuilding...
["helloworld"]
["helloworld"]
helloworld.js~ changed; rebuilding...
helloworld.js~ changed; rebuilding...
["helloworld"]
["helloworld"]
Thanks. :)
VIM solution:
You can set the swap folder to a different folder.
set directory^=$HOME/.vim/swap//
Grunt solution:
You can use one of the many plugin available to watch and rebuild the your jsx files. These plugins allow you to set which files to use in the build process. For example: https://www.npmjs.com/package/grunt-react
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With