targetprocess-ui-listsdeprecated

Targetprocess UI Lists component

Usage no npm install needed!

<script type="module">
  import targetprocessUiLists from 'https://cdn.skypack.dev/targetprocess-ui-lists';
</script>

README

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

pipeline status npm version

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