The Ins-and-Outs of Publishing a Module to npm
summary
Shows how to create, test, build and publish a real npm package called transleg using npm init, mocha, Babel and npm scripts, automating build with a prepublish hook and excluding source with .npmignore. Demonstrates versioning with npm version, explains the surprising 1% rule (≈84,000 publishers vs ~4.5M users), and runs through npm login and the single command npm publish to get a working module onto the registry.
AI-written summary · about
chapters (6)
- 0:00Start
- 3:41How did you get permission to publish a module on npm?
- 5:59Let's make a little module for working with rectangles.
- 6:30Option A: Scoped modules.
- 18:19preinstall prestart
- 19:09npm run sandwich
related talks
42mPACKAGES FOR MASS CONSUMPTION - AN NPM STORY UNFOLDED
12mWriting a Webmodule
38mThe npm workflow
25mA How I learned to Stop Worrying and Let the Robot Publish to NPM
24mThe Complete Guide to packaging Libraries
24mPublishing in the JavaScript Ecosystem & Keeping Users Happy
23mPublishing in JavaScript Ecosystem: How to Keep Everyone Happy?
44mYou Don't Know npm
