Guitar-site
Stack
- Create React App
- React Router
- React Context API
- CSS Modules (scss)
- React-hook-form
- Code splitting (React.lazy & Suspense)
- Ant-design
- Jest
- react-testing-library
- ESLint - AirBnB Styleguide
- Husky - v4
- StyleLint
- Storybook
Devops
- DigitalOcean spaces for blob storage
Dev Setup
- Install Yarn package manager v1
- Install VSCode ESLint plugin
- Install VSCode StyleLint plugin
- run
yarn
in the console to install dependencies - run
yarn start
to launch the React dev server - run
yarn storybook
to launch the Storybook dev server
Deployment
- Netlify
- Husky (pre-commit linting and error messages)
Production setup (local)
- run
yarn build
to build the React app - run
build-storybook
to build the Storybook app
Scripts
yarn start
- Start the React development serveryarn storybook
- Start the Storybook development serveryarn lint
- Lint.js
&.jsx
filesyarn lint:fix
- Fix problems in.js
&.jsx
filesyarn stylelint
- Lint.css
filesyarn stylelint:fix
- Fix problems in.scss
files