@navinc/reports
v33.0.0
Published
A fully portable -- across Nav's standard environments -- reports for the web
Maintainers
Keywords
Readme
@navinc/reports
A set of report based components. Written in Typescript.
You can view the current build of Storybook here.
Quick start
Please run all of the following commands from the monorepo root:
pnpm dlx lerna run start --stream --scope=@navinc/reports- Make changes and watch them at http://localhost:9009/- Watch and run your tests with
pnpm dlx lerna run test:watch --stream --scope=@navinc/reports - Test in pipsqueak with
./bin/copy-package reports pip. - When it works as you need it to, build it:
pnpm dlx lerna run build --stream --scope=@navinc/reports - Run the tests post build:
pnpm dlx lerna run test --stream --scope=@navinc/reports
Getting Started with Storybook
To start Storybook, go to the monorepo root and run the following:
pnpm dlx lerna run start --stream --scope=@navinc/reportsAnd go to http://localhost:9009/
Building
Base Components
pnpm dlx lerna run build --stream --scope=@navinc/reportsStorybooks
pnpm dlx lerna run build:storybook --stream --scope=@navinc/reportsAnd open /public/reports/index.html to test storybook.
Testing
pnpm dlx lerna run test --stream --scope=@navinc/reportsThis will run Jest and our linter.
Using reports in your own projects
- Install it in your project
npm i @navinc/reports - Use it! Ex:
import { Copy } from '@navinc/reports' - Refer to Storybook for implementation details for each component.
