Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nicholasdigital/react-web-boilerplate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Web Boilerplate
A modern React web application boilerplate using Webpack, Babel, ESLint, Prettier, and Jest.
Features
- React 19 with functional components
- Webpack 5 for bundling and dev server
- Babel for ESNext and JSX transpilation
- Sass support for styling
- ESLint (Airbnb + Prettier) for code linting
- Prettier for code formatting
- Jest for unit testing
- React Router v5 for routing
- Redux and Redux Saga for state management
- Husky and lint-staged for pre-commit hooks
- Commitlint for commit message linting
Getting Started
Installation
npm installDevelopment
npm startRuns the app in development mode at http://localhost:8080.
Build
npm run buildBuilds the app for production to the dist folder.
Lint & Format
npm run lint
npm run formatTest
npm testProject Structure
src/
Pages/
Home/
Home.component.jsx
index.js
App.component.jsx
Router.component.jsx
index.jsx
index.sass
routes.js
__tests__/
index.test.jsScripts
npm start— Start dev servernpm run build— Build for productionnpm run lint— Lint codenpm run format— Format codenpm test— Run tests
License
ISC
Boilerplate by Nick Pray