Clean, simple and somewhat opinionated React boilerplate.
Easy code splitting with react-imported-component on a component level. No server included.
Typed with Flow, built with Parcel with very little configuration. Styled Components are included for styling, but project supports scss to easily include third party designs.
-
Styled Components + sass/scss styling
-
entry - Entry point. Also includes HTML template on which app is built upon.
-
etc - Project setup files (jest)
-
flow-typed - Auto generated flow definitions for npm packages. Add more definitions with
flow-typed install -
src/components - Common/shared React components; building blocks for application
-
src/scenes - Routes/pages
-
src/static - Place for static assets
-
src/themes - Theme definitions supplied to
<ThemeProvider /> -
src/types - User defined shared Flow types
Dependency manager
https://yarnpkg.com/en/docs/install
Install parcel-bundler **Made for parcel v1.10.* **
yarn global add parcel-bundler
First, clone the repo and install dependencies
git clone [email protected]:akalajzi/rpg-boilerplate.git
cd rpg-boilerplate
yarn
And run:
yarn start
Starts the development version with hot reloading
yarn check-all
runs flow check, linter and unit tests, basically running each of the separate commands:
yarn flow:check
yarn lint
yarn test
- add/fix gql tests
- auto generating flow defs for graphql queries on the fly
- PWA
- static files copy