@icgc-argo/uikit
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

ARGO UIKit

Netlify Status Storybook npm version TypeScript

Reusable UI components for ARGO projects.

Development

Local Dev

UIKit:

  • Install dependencies: npm ci
  • Start watching: npm run watch

Consumer project:

  • npm i <root_path_to_uikit>/dist --legacy-peer-deps

Notes:

  • make sure to run watch first as dist folder is used
  • assets will require a restart of watcher
  • typescript changes often need vscode to restart the TS server
  • avoid default exports for anything that needs to be used by 3rd party

Testing

react-testing-lib with Jest test runner see Button.test.tsx for example

Storybook

  • npm run storybook
  • npm run build-storybook creates static storybook build in ./storybook-static

Component Boilerplate

  • creating a new component: npm run create-component

Type checking

  • npm run type-check: trigger TypeScript type check for whole repo
  • npm run type-check -- --watch: runs the above with watch mode
    • Any npm run type-check triggers tsc, so any flag layed out here can be used
  • If using vscode (recommended), tsc can also be run as a task in the editor:
    • Cmd+Shift+B, then select tsc:build - tsconfig.json
    • This will report errors in vscode's PROBLEMS tab

Publish to npm:

  1. Increase version under uikit/package.release.json
  • Automated process (recommended)

    1. Merge that change to develop, and let the Jenkins pipeline handle it
  • Manual process (discouraged, but available)

    1. Run npm run build-uikit which performs the following:
    2. Run npm run publish-uikit to publish latest version to npm

Dependencies

react/react-dom are needed as dependencies for storybook project does not work if they are just defined as peerDeps

Storybook

Stories are written in the older storiesOf style https://github.com/storybookjs/storybook/blob/master/lib/core/docs/storiesOf.md

  • No explicit export from module required
  • Use a constant string for story name
    • Stories can break easily when you use dynamic vars as story name ${__dirname} (too many '/', diff OS)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.00latest
1.15.0-alpha20alpha

Version History

VersionDownloads (Last 7 Days)Published
4.0.00
3.0.10
3.0.00
2.5.10
2.5.00
2.4.00
2.2.00
2.1.20
2.1.00
2.0.10
2.0.00
1.16.01
1.15.0-alpha20
1.14.20
1.14.10
1.14.00
1.13.00
1.12.10
1.12.00
1.11.00
1.10.60
1.10.50
1.10.40
1.10.30
1.10.20
1.10.10
1.10.00
1.9.10
1.9.00
1.8.00
1.7.00
1.6.00
1.5.00
1.4.00
1.3.00
1.2.00
1.1.00
1.0.130
1.0.120
1.0.110
1.0.100
1.0.1-0.alpha.ciaran.70
1.0.1-0.alpha.ciaran.60
1.0.1-0.alpha.ciaran.50
1.0.1-0.alpha.ciaran.40
1.0.1-0.alpha.ciaran.30
1.0.1-0.alpha.ciaran.20
1.0.1-0.alpha.ciaran.10
1.0.1-0.alpha.ciaran.00
1.0.1-0.alpha.ciaran0
1.0.9-alpha.ciaran.10
1.0.9-alpha.ciaran0
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.3-alpha.20
1.0.3-alpha.10
1.0.20
1.0.10
1.0.00
0.0.0-alpha-140
0.0.0-alpha-130
0.0.0-alpha-120
0.0.0-alpha-110
0.0.0-alpha-100
0.0.0-alpha-90
0.0.0-alpha-80
0.0.0-alpha-70
0.0.0-alpha-60
0.0.0-alpha-50
0.0.0-alpha-40
0.0.0-alpha-30
0.0.0-alpha-20
0.0.0-alpha-10
0.0.00

Package Sidebar

Install

npm i @icgc-argo/uikit

Weekly Downloads

1

Version

4.0.0

License

none

Unpacked Size

2.56 MB

Total Files

413

Last publish

Collaborators

  • justincorrigible
  • srichoicr
  • joneubank
  • devops.argo
  • ciaranschutte
  • anncatton