Layout components for React applications.
To install the library, run:
npm i @atwright147/react-layout
To install dependencies using a clean slate, run:
npm ci
To run the development server, use the following command:
npm run dev
This will start the development server and you can view the application at http://localhost:5173
.
To build the library, run:
npm run build:lib
This will create a dist
folder with the compiled library.
To start Storybook for developing and testing components, run:
npm run storybook
This will start the Storybook server, and you can view the component stories in your browser at http://localhost:6006
.
To lint the codebase, run:
npm run lint
To check the TypeScript types, run:
npm run typecheck
To build the demo site, run:
npm run build:demo
This will compile the TypeScript files and bundle the demo site using Vite. The output will be in the dist
directory.
To preview the demo site, run:
npm run preview
This will start the Vite preview server, and you can view the demo site in your browser at http://localhost:5000
.