Skip to content

Instantly share code, notes, and snippets.

@fengmk2
Created June 15, 2014 15:26
Show Gist options
  • Select an option

  • Save fengmk2/d95011af77b732b3dc75 to your computer and use it in GitHub Desktop.

Select an option

Save fengmk2/d95011af77b732b3dc75 to your computer and use it in GitHub Desktop.
How I use npm
  • day: private module, private npm

  • night: public module, public npm

  • company private project, use both public and private modules, install them from private npm registry

  • open source project, use only public modules, install them from public npm registry

  • private npm registry auto full sync public registry in 10 mins

  • When I publish a module to public registry, and I will use git hook to do the publish and sync actions:

$ git release 0.1.0
=> git tag 0.1.0 && git push --tags
=> npm publsih
=> cnpm sync
=> alinpm sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment