Publishing a Javascript package to the NPM registry is quite easy, but there are some gotchas and things to know along the way. I'll show creating a super simple package, creating an NPM account, and then publishing a package. Then I'll go over unpublishing packages and how to publish a scoped package and why.
No repository for this one, since the only code is a console.log in an index.js file.
~~~~~~
00:00 - What we'll cover
00:48 - Setting up the package project
02:51 - Creating an NPM account
04:38 - Disclaimer about following along
05:54 - Trying to publish without verified email
06:28 - Successful publish of unscoped package
07:21 - Installing our new package in a new project
08:33 - Aside about the ease of publishing packages
09:22 - Why I set the version to 0.1.0
10:00 - Unpublishing then publishing a scoped package
12:57 - Wrap-up
~~~~~~
Follow Jimmy Cleveland's doings:
twitter: / jimmydcleveland
blog: blog.jimmydc.com/
#javascript #npm
Негізгі бет How to Create and Publish an NPM Package
Пікірлер: 23