Reusable UI components for ARGO projects.
UIKit:
npm ci
npm run watch
Consumer project:
npm i <root_path_to_uikit>/dist --legacy-peer-deps
Notes:
watch
first as dist
folder is usedreact-testing-lib with Jest test runner see Button.test.tsx for example
npm run storybook
npm run build-storybook
creates static storybook build in ./storybook-static
npm run create-component
npm run type-check
: trigger TypeScript type check for whole reponpm run type-check -- --watch
: runs the above with watch mode
npm run type-check
triggers tsc
, so any flag layed out here can be usedtsc
can also be run as a task in the editor:
Cmd+Shift+B
, then select tsc:build - tsconfig.json
PROBLEMS
tabversion
under uikit/package.release.json
Automated process (recommended)
develop
, and let the Jenkins pipeline handle itManual process (discouraged, but available)
npm run build-uikit
which performs the following:npm run publish-uikit
to publish latest version to npmreact/react-dom are needed as dependencies for storybook project does not work if they are just defined as peerDeps
Stories are written in the older storiesOf
style
https://github.com/storybookjs/storybook/blob/master/lib/core/docs/storiesOf.md
${__dirname}
(too many '/', diff OS)