Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Private npm - What can you do with your own npm registry

Private npm - What can you do with your own npm registry

My talk for the NodeBp meetup, November 2014

Szabolcs Szabolcsi-Toth

November 19, 2014
Tweet

Other Decks in Programming

Transcript

  1. NPM

  2. NPM IS GREAT but "what if" you want to do

    sensitive stuff you want to do proprietary stuff you want to use npm, but internally distribute modules you don’t trust availability
  3. SYSOP REQUIREMENT “what happens when an npm install dies during

    a major deployment?” “we're f**ked”
  4. PUBLISH - UNPUBLISH n p m p u b l

    i s h - - r e g i s t r y h t t p : / / y o u r - o w n . r e g i s t r y . u r l m o d u l e n a m e n p m u n p u b l i s h - - f o r c e - - r e g i s t r y h t t p : / / y o u r - o w n . r e g i s t r y . u r l m o d u l e n a m e
  5. YOU CAN... Prepare for the open source world Test, use,

    then go open source Get used to the tools, workflow and mindset
  6. BUILD & DEPLOYMENT GIT NPM FEATURE BETA LIVE FEATURE BETA

    LIVE MODULE v0.2.4 MODULE v0.1.2 MODULE v0.2.1 MODULE v0.1.1
  7. BUILD & DEPLOYMENT GIT NPM FEATURE BETA LIVE FEATURE BETA

    LIVE MODULE v0.2.4 MODULE v0.1.2 MODULE v0.2.1 MODULE v0.1.1
  8. BUILD & DEPLOYMENT GIT NPM FEATURE BETA LIVE FEATURE BETA

    LIVE MODULE v0.2.4 MODULE v0.1.2 MODULE v0.2.1 MODULE v0.1.1
  9. BUILD & DEPLOYMENT GIT NPM FEATURE BETA LIVE FEATURE BETA

    LIVE MODULE v0.2.4 MODULE v0.1.2 MODULE v0.2.1 MODULE v0.1.1
  10. BUILD & DEPLOYMENT GIT NPM FEATURE BETA LIVE FEATURE BETA

    LIVE MODULE v0.2.4 MODULE v0.1.2 MODULE v0.2.1 MODULE v0.1.1
  11. BUILD & DEPLOYMENT GIT NPM FEATURE BETA LIVE FEATURE BETA

    LIVE MODULE v0.2.4 MODULE v0.1.2 MODULE v0.2.1 MODULE v0.1.1
  12. FRONT-END MODULES Internal ‘bower’ using our private npm registry Flat

    dep tree cli, or package.json This is also a problem at npm
  13. NPME npme (as enterprise) use it like npm you host

    it selective mirror OAuth2, more is coming developed by npm - no feature lag still in trial