Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.69 KB

developing-components.md

File metadata and controls

26 lines (19 loc) · 1.69 KB

🤓 Development

In order to work on the components you first need to clone the repo, install the dependencies by writing npm install and after that: npm start.

🔗 npm link

If you're working on both a project and the components at the same time, having to finish the component before publishing and installing the new version gets a bit tedious.

For a smoother workflow you can npm link the components into your project and work seamlessly-ish. Navigate your terminal to where you cloned this repository and write npm link. The terminal should say something like this:

/Users/kbrabrand/.nvm/versions/node/v8.11.4/lib/node_modules/@dfo/components -> /Users/kbrabrand/development/netlife/dfo/dfo-storybook

When that is done, you can go to a project where you've installed @dfo/components as a dependency and write npm link @dfo/components. NPM will replace the old folder with the dependency from npmjs.com with a symlink to the folder you just linked.

📋👮 Code rules and guidelines