Repository URL to install this package:
|
Version:
4.6.0 ▾
|
https://design-system.doodle-test.com/
React Components, styleguide, component library
echo @doodle:registry=https://npm-proxy.fury.io/tmf/ >> .npmrc yarn add --save --exact @doodle/components
You will need Node 8 to start this application
Install the dependencies
yarn
Start the styleguide app
yarn start
Create a link for @doodle/components
Run yarn build
From the ./dist/library, run yarn link
Use the link in your project by running yarn link @doodle/components
Run the unit tests
yarn test
Tags tab on lib-componentsBuild with parameters, select the correct target environment from the list (i.e production) and click on the Build button in the same pageKeep the version in the package.json file to 0.0.0. We keep track of the version number using tags.
All javascript files must be inside the components folder. When the library is built for production, the components folder is exported in the base path. This means that javascript files outside of the components folder would be unreachable in the production build.
Some components in this library rely on babel-polyfill. This might cause your unit tests to fail with the following error:
ReferenceError: regeneratorRuntime is not defined
To prevent this, add the following to your jest setup file:
import 'babel-polyfill';