Developer experience is an often overlooked aspect of software development but it is crucial to keeping developers productive. This repository demonstrates how to setup a React web app stack with Vite centric tools that dramatically decrease boot, build and test times. If you have any questions regarding this repository, contact Sunny Golovine.
This project uses the following development tools:
-
PNPM: A package manager that is faster and more disk space efficient than NPM or Yarn.
Below are several code examples for testing and stories:
To run this project, you should first make sure that you have NodeJS installed, then install PNPM via NPM:
npm install -g pnpm
From there clone the repository, install dependencies and then run the project.
# Clone the respository
git clone git@github.com:vora/nextgen-react.git
# Install dependencies
pnpm install
# Run the app in development mode
pnpm run dev
Ladle is an alterative to Storybook that supports CSF (Component Story Format). To run Ladle, make sure you have followed Getting Started. From there, start or build ladle.
# Will start ladle
pnpm run ladle
# Will build ladle (production build)
pnpm run build-ladle
This app can also be build for production. In order to build for production make sure you follow Getting Started, then run the following:
# build a production bundle to /dist
pnpm run build
# (optional) serve the production bundle
pnpm run serve