Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (37 sloc) 1.27 KB
title layout contributors series permalink estimated-time
Publish it
series_item
David, Seb
101
101/publish_it/
5

{% alert danger %} Please do NOT publish the dummy tutorial package on npm. Have a look at this guide once you made a great package. {% endalert %}

1) Upload it on npm

{% hlblock check %} Make sure that in package.json

  • the main attribute is set to the path of your main file (Normally index.js.)
  • you have the biojs keyword
  • you have added other descriptive keywords
  • author information is correct (will be publicly visible)
  • repo url is correct
  • package name is correct
  • your npm test executes the correct command and is passing

{% endhlblock %}

Now type into the console:

npm adduser  # First login or create a new account with following command (only run this once).
npm publish  # Now it is time to publish!

{% hlblock info %}

Errare human est

If you have fixed them and want to deploy a new version of your component, run npm publish again. (you need to change package version for a new deployment) {% endhlblock %}

{% alert ok %} You made it. Get your coffee and celebrate. However the rest of this tutorial stays interesting. So just enjoy the rest. {% endalert %}