/react_boilerplate

bare-bones minimal React boilerplate with Parcel

Primary LanguageJavaScriptThe UnlicenseUnlicense

Minimal React setup with Parcel and Babel 7

dev

$ npm install
$ npm run dev

Parcel hot-reload dev server starts at localhost:1234

build

$ npm run build

Parcel builds to dist/

storybook

$ npm run storybook

Starts storybook

build-storybook

$ npm run build-storybook

Builds storybook to storybook-static/

Options:

Modify the npm scripts to customize dev and build options:

DEV

default: parcel index.html

customize: parcel <ENTRY_POINT> --port <YOUR_PORT_NUMBER>

BUILD

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