When you publish a new version of your package on npmjs.com with npm version, you can automatically push the version upgrade to your upstream repository as well – thanks to npm scripts! Add a npm script postversion: git push –follow-tags and you are good to go. Whenever you made a npm version major, npm version […]
Category Archives: npm
My first npm package
I published my very own, first npm package yesterday. It’s a very simple JavaScript app that takes in one’s input and echoes it out. It’s available here on the npm registry. While I originally wanted to publish it with the slug hello-world, it was already taken by someone else – obviously! Thankfully npm allows re-usage […]
Baby steps with npm!
I been been reading about npm, node.js and JavaScript for a while. I never understood npm all these days, and used to run commands as I saw. After reading and taking multiple lessons, I feel more confident about working with npm packages now. A few resources that I found helpful so far: npm basics on […]