$ npm install
$ npm run dev
Parcel hot-reload dev server starts at localhost:1234
$ npm run build
Parcel builds to dist/
$ npm run storybook
Starts storybook
$ npm run build-storybook
Builds storybook to storybook-static/
Modify the npm scripts to customize dev and build options:
default: parcel index.html
customize: parcel <ENTRY_POINT> --port <YOUR_PORT_NUMBER>
default: parcel build index.html
customize: parcel build <ENTRY_POINT> --d <YOUR_BUILD_DIR>
Resources:
https://babeljs.io/docs/en/v7-migration
https://parceljs.org/recipes.html
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-react-project-with-parcel