pixelfear / composer-dist-plugin

Composer package that downloads distributable assets to be used in packages so you don't have to commit them.
MIT License
28 stars 2 forks source link

Usage in projects managed by Composer #3

Closed szepeviktor closed 5 years ago

szepeviktor commented 5 years ago

AFAIK composer-dist-plugin works in published libs. Would it be possible to use it in projects?

{
  "name": "company/project",
  "type": "project",
  "license": "proprietary",
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/pixelfear/composer-dist-plugin.git"
    }
  ],
  "require": {
    "pixelfear/composer-dist-plugin": "dev-master"
  },
  "extra": {
    "download-dist": {
      "url": "https://www.szepe.net/assets.zip",
      "path": "app/assets"
    }
  }
}

This does not work (yet).

jasonvarga commented 5 years ago

I'm sure it's possible but is it really needed? You likely have more control over your build pipeline in a project.

szepeviktor commented 5 years ago

You're right.