targetprocess-ui-lists v0.1.0
DEPRECATED
This package is deprecated and repository is archived. Current version is available via package @targetprocess/ui-lists
, and its sources were moved to targetprocess-ui-components monorepo.
Targetprocess List UI Component
A reusable component for rendering multi-level lists.
Primary goals:
- Reusable and not opinionated about the data
- Extendable (within sane limits, of course)
- Configurable
Installation
> npm install targetprocess-ui-lists
Usage
WIP.
Here be dragons.
Development
Primary development platform is Storybook. To run a local dev server, use the following commands:
> yarn install # optional, first time only
> npm run storybook
This runs a development and live doc server on http://localhost:8081. All components and their usage patterns are described in their respective stories. Dev server acts as a file watcher and supports hot-reload of TypeScript/JavaScript and CSS modules.
Testing
To run tests use
> npm run test
To find files with tests by specific pattern
> npm run test -- <pattern>
For example to run tests from ColumnHeader.tests.tsx
> npm run test -- ColumnHeader
To debug test in Chrome inspector write debugger
command in test and run
> npm run test:debug
for specific file
> npm run test:debug -- ColumnHeader
Release build
Generate a static build (for publishing).
Production build:
> yarn install
> npm run build:production
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago