jamesknelson / starter-kit

Project boilerplate using React, Redux and Uniloc
http://unicornstandard.com/packages/boilerplate.html
462 stars 42 forks source link

no need for gulp to be installed globally #3

Closed ghost closed 8 years ago

ghost commented 8 years ago

NPM is clever enough, to find gulp in projects node_modules folder.

Just add a gulp script into scripts section.

{
  "scripts": {
    "start": "gulp serve",
    "open": "gulp open",
    "gulp": "gulp"
  }
}

Now its possible to execute npm run gulp dist without having gulp (or anything else) installed globally. No version conflict between projects anymore. We need to remove global dendencies everywhere.

jamesknelson commented 8 years ago

Thanks, had no idea you could do this!