-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


npm link

, 19 2017 . 12:32 +

npm link + steroids = npmy


npm-. : , npm init, , npm link ( ) api .


Babel, Rollup, Webpack .. , , , . , , . , npmy, . .


, , scripts/ (prepublish, prepublishOnly ..), npm link , , npm unlink.


, :


  1. .
  2. .
  3. - ( ).
  4. .



package.json, , , .npmyrc, .gitignore.


, JSON-, :


  • key package.json;
  • value ( ).

, .




.npmyrc npmy, :


  1. .npmrc.
  2. :
    • NPM;
    • .
  3. NPM.
  4. - .npmrc.
  5. .
  6. (watch).


-


, . , npm.


npm install && npm publish


, , prepublish prepare npm publish, npm install ( ). , prepublishOnly, 5 . 4, , , .


, ( node_modules):


  1. rsync .
  2. package.json, npm test, -.
  3. .
  4. : , files.
  5. Profit.

, , npm. , .


, npmy bin package.json .




  • npm install -g npmy
  • .npmrc
  • npmy

, . :]



P.S. , .

Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/333580/

:  

: [1] []
 

:
: 

: ( )

:

  URL