auto starting dev server & babel parsing #dev #package #workflow
✓ Published0🌍 Public
TTimeBandit
Last edited Sep 22, 2018
Created on Sep 22, 2018
This example shows a development workflow where a React app automatically starts a live server and watches for JavaScript changes. The code runs the `dev` script, which uses `concurrently` to launch two processes side-by-side: `live-server` serves the `public` folder, while Babel watches `src/app.js` and compiles it with the `env` and `react` presets to `public/scripts/app.js`. The `package.json` defines the project as `indecision-app`, listing dependencies like `babel-preset-env`, `babel-preset-react`, and `save-dev` to enable ES2015+ and JSX transformation during development.
AI-generated descriptionISC Licensed