Registering and Logging into Npm package manager library
1. If you already are an existing user login to https://www.npmjs.com/. Or sign up on site and then login.
Coding
1. npm init . This will create package.json.
2. Define dependent packages in package.json
3. Add Readme.md file to give information to users about 'how to use it'
Push your code to npm library
1. Open a command prompt locally and login from command prompt using command
npm login
2. npm publish
Release patches and new versions
npm version patchnpm publish
No comments:
Post a Comment