1.0.4 • Published 6 years ago

@naretini/npm-hello-world v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

Basics on How to publish packages to npm

  • create a npm account and login
npm login
unername: naretini
  • create npm project:
  mkdir npm-hello-world && cd $_
  npm init --scope=naretini
 npm publish --access public
  • create a repo on github and link to it:
   git init
   git remote add origin git@github.com:naretini/npm-hello-world.git

Best practice before (npm) publish:

Steps:

  • Run tests (if there are any)
  • Update version in package.json according to Semver
  • Create a git tag according to Semver
  • Push the package to Github
  • Push the package to npm
  • Create release notes for every update

Or use np https://github.com/sindresorhus/np - A better npm publish

 npm install --global np
 np --help
  • add repo info to package.json to publish release / tags on github
"repository": {
    "type": "git",
    "url": "git@github.com:naretini/npm-hello-world.git"
  }
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago