koala-framework / composer-extra-assets

Composer Plugin for installing Assets using native npm/bower
BSD 2-Clause "Simplified" License
42 stars 11 forks source link

.bowerrc from extra value #25

Open Punk-UnDeaD opened 8 years ago

Punk-UnDeaD commented 8 years ago

if we use composer.json for bower, why .bowerrc not from composer.json?

  "extra": {
    ".bowerrc": {
      "directory": "./libraries",
      "scripts": {
        "postinstall": "rm -rf ./jquery"
      }
    },
nsams commented 8 years ago

Why not use composer a script instead?

Punk-UnDeaD commented 8 years ago

Why not use special composer-extra-assets component? Read some value and write some value.

nsams commented 8 years ago

You can create a .bowerrc file and this plugin won't touch (overwrite) it. With that you can also change the directory or install scripts.

The reason why other values are read from composer.json is that they have to be merged from multiple composer.json

What do you think of that solution?