1.0.0 • Published 4 years ago

@mushuledragon/tuto-npmjs-packages v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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