We will use this icon to mark check points.
A check point is a way for you to check how you are doing.
For most of the steps in this tutorial we will
provide the code as it should look after the task. It is tempting, we
know, but please, please, do not go for the “copy&paste” way.
We will use this icon to challenge you
with additional code-related tasks so you can go further at your own
pace. No inline answer will be provide for those challenges but we will
give you some guidelines and tips. By the way, within the instructions
we will use an italic font to refer to variables and pieces of code.
We will use this icon to ask you some questions related to the task your are working on.
Additional info and resources - this is not essential to complete the tutorial, but very interesting.
Tips that might help you on this task.
If you are following this tutorial as part of a workshop, do not hesitate to
raise your hand and share any questions or comments you may have.
If you are doing it by your own, you still can raise your hand in our
mailing list, just join our Google Group.
×
Please do
NOT publish the dummy tutorial package on npm.
Have a look at this guide once you made a great package.
1) Upload it on npm
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
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!
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)
×
You made it. Get your coffee and celebrate. However the rest of this tutorial stays interesting.
So just enjoy the rest.