Re-usable Javascript components primarily written by the National Research Council for use within GCTools and other GoC sites.
The gctools-nrc-components
repo is managed as a monorepo that is composed of many npm packages. These packages are controlled by lerna.
To get started, install lerna.
yarn global add lerna
Prepare the development environment.
lerna bootstrap
Most components use storybook to ease development. Simply go into the package you want to work on, and start storybook.
yarn run storybook
A new component helper exists at the base of the repo to help you create a new component with minimal effort. From the base of the repo run the following:
yarn new component my-component
The reference implementation contains documentation and examples for all
components in this repo and can be found in packages/reference-implementation
. The reference implementation doesn't use storybook, start it as shown below.
yarn start
© Her Majesty the Queen in Right of Canada, as represented by the Minister of the National Research Council, 2017
Unless otherwise specified, all packages in this monorepo is licensed under the
terms of the MIT license, available at the root of the repo in the LICENSE
file.