/webcamp-zagreb-demo

babel plugins demo for my talk at webcamp zagreb 2019

Primary LanguageJavaScript

Babel plugins made for webcamp zagreb talk

Prettier

💼 Requirements

  • yarn or npm

💾 Installation

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

▶️ Running the Project

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