@navinc/reports
v3.5.52
Published
A fully portable -- across Nav's standard environments -- reports for the web
Downloads
2,294
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:
npx lerna run start --stream --scope=@navinc/reports
- Make changes and watch them at http://localhost:9009/- Watch and run your tests with
npx 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:
npx lerna run build --stream --scope=@navinc/reports
- Run the tests post build:
npx lerna run test --stream --scope=@navinc/reports
Getting Started with Storybook
To start Storybook, go to the monorepo root and run the following:
npx lerna run start --stream --scope=@navinc/reports
And go to http://localhost:9009/
Building
Base Components
npx lerna run build --stream --scope=@navinc/reports
Storybooks
npx lerna run build:storybook --stream --scope=@navinc/reports
And open /public/reports/index.html
to test storybook.
Testing
npx lerna run test --stream --scope=@navinc/reports
This 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.