- yarn or npm
After confirming that your environment meets the above requirements, you can start this project by following the steps mentioned below:-
$ git clone https://github.com/vivek12345/webcamp-zagreb-demo.git
$ cd webcamp-zagreb-demo
When that's done, install the project dependencies. It is recommended that you use yarn.
$ cd babel-plugins
$ yarn # Install project dependencies
After completing the installation step, you're ready to start the project!
All our plugins are inside plugins/
directory and the source code on which these plugins will run are inside src/
directory.
To see the output of babel plugin transforming our code, the following command needs to be executed:
$ node run.js <file to run this plugin for>
For example
$ node run.js src/convertAlertToConsoleTest.js