1.0.0 • Published 4 years ago
@mushuledragon/tuto-npmjs-packages v1.0.0
tuto-npmjs-packages
- Link to the official tutorial : here
- Link to my first NPM repository : @mushuledragon/tuto-npmjs-packages
Here are steps to host package for a user (for an organization please refer to the link documentation ahead):
npm -v
cd tuto-npmjs-packages
# Create .gitignore file
echo '# NPM packages
node_modules/
' > .gitignore
npm whoami
# npm init --scope=@my-username
npm init --scope=@mushuledragon
# Test the package before publishing
npm install my-package
# Publish to npmjs.org
## Move to the root directory package
cd /path/to/package
npm publish --access public
1.0.0
4 years ago