npm vs npm + bower



npm vs npm + bower

0 0


npmVSbower


On Github lyttlegy / npmVSbower

npm vs npm + bower

dependencies

  a
  +-- b <-- depends on c@1.0.x
  `-- d <-- depends on c@~1.0.9

npm

  a
  +-- b <-- depends on c@1.0.x
  |   `-- c@1.0.3
  `-- d <-- depends on c@~1.0.9
      `-- c@1.0.10

bower

  a
  +-- b <-- depends on c@1.0.x
  `-- d <-- depends on c@~1.0.9
  `-- c@1.0.10

bower +1

bower is for front end

main

npm

package.json

main: string - single file

bower

bower.json

main: string|array - multiple files

bower +1

repos

npm

git

bower

git + shorthand

svn

url

bower +1

debugging / staging

npm

devDeps - node modules

deps - front end

npm + bower

npm devDeps - node modules (task runners, test ...)

npm deps - production server

bower devDeps - debug / test

bower deps - production

npm vs npm + bower