Skip to content
Michael Hulse edited this page Aug 10, 2018 · 5 revisions

Publishing as an npm package:

# If not already, login:
$ npm adduser
# Bump version number in `package.json` …
# … and publish on npm:
$ npm publish

Symlink to /usr/local/bin/

During development it’s convenient to make the symlink on our path point to the entry point for the app:

$ npm link
# When done, remove link:
$ npm unlink

Updating to latest deps

  1. Clone repo
  2. cd to repo
  3. Run npm update
  4. Run npm audit fix --force
  5. Run npm audit to make sure you’re up-to-date
  6. Run npm outdated to see what needs updating
  7. If packages are old, use npm i <package-name>@latest
  8. To test, run npm link
  9. When done testing, run npm unlink
  10. Install (from GitHub) production CLI code using npm i [USER]/[REPO] -g
  11. Rinse. Wash. Repeat.

Install using ssh

For users with access to this repo:

$ npm i git+ssh://[email protected]/mhulse/node-boilerplate-cli.git#master -g

Links

Clone this wiki locally