slushjs / gulp-install

Automatically install npm and bower packages if package.json or bower.json is found in the gulp file stream respectively
MIT License
106 stars 46 forks source link

Support passing configuration data (package.json, bower.json, ...) as object or string instead of using additional external configuration files #30

Closed alp82 closed 8 years ago

alp82 commented 8 years ago

Currently it's not possible to have a single-file configuration for frontend projects. If you use gulp and need package management, you have at least two configuration files.

What about passing a Javascript object to gulp-install instead of referencing an external file?

It could look like this:

{
  "package.json": {
    "name": "my-project",
    "version": "1.0.0",
    "author": "Your Name <your.name@example.org>",
    "license": "MIT"
  },
  "requirements.txt": [
    "some-framework==0.9.4",
    "another-library>=0.2"
  ]
}
tipok commented 8 years ago

+1

joakimbeng commented 8 years ago

-1

If you want to create virtual files like that I recommend creating those with vinyl and piping them to gulp-install.