Skip to content

Instantly share code, notes, and snippets.

@pinkhominid
Last active April 2, 2020 13:41
Show Gist options
  • Save pinkhominid/15253e0992569b74d4f3b3f25dee065d to your computer and use it in GitHub Desktop.
Save pinkhominid/15253e0992569b74d4f3b3f25dee065d to your computer and use it in GitHub Desktop.
2020 Minimal OSS npm pkg setup

2020 Minimal OSS npm pkg setup

  • New repository
  • Initialize this repository with a README
  • Add .gitignore Node
  • Add a license MIT License
  • Create repository
  • Clone or download
  • Copy to clipboard
# git clone <paste>

# git config user.name "<name>"
# git config user.email "<email>"

npm init -y

# edit package.json
# s/1.0.0/0.0.0
# "type": "module",
# s/ISC/MIT

# edit index.js

git add .
git commit -m "Initial pkg"
npm version minor
git push --follow-tags

npm publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment