2017 © Pedro Peláez
 

composer-plugin composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

image

koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  • Wednesday, September 7, 2016
  • by nsams
  • Repository
  • 16 Watchers
  • 40 Stars
  • 67,478 Installations
  • PHP
  • 15 Dependents
  • 0 Suggesters
  • 8 Forks
  • 5 Open issues
  • 21 Versions
  • 4 % Grown

The README.md

Composer Plugin for installing Assets using native npm/bower

This Composer plugin installs assets using native npm/bower. Not only the root package can have dependencies., (*1)

Npm packages will be installed in package folder, bower will be installed in root - with all dependencies merged., (*2)

Introduction, (*3)

Example usage

composer.json, (*4)

"require": {
    "koala-framework/composer-extra-assets": "~1.1"
},
"extra": {
    "require-npm": {
        "grunt": "0.4.*"
    },
    "require-bower": {
        "jquery": "*"
    },
    "require-dev-bower": {
        "qunit": "*"
    },
    "require-dev-npm": {
    }
}

Bower dependencies

Bower dependencies will be installed in the vendor/bower_components directory., (*5)

NPM dependencies

NPM dependencies will be installed in the node_modules directory of the package that requires the dependency. Some NPM packages provide binary files (for instance gulp and grunt)., (*6)

NPM binaries will be exposed in the vendor/bin directory if the NPM dependency is declared in the root Composer package., (*7)

If you are writing a package and want a NPM package to be available in the node_modules directory of Composer's root (instead of the node_modules directory of your package), you can add the expose-npm-packages attribute to the composer extra session of your package:, (*8)

 "require": {
     "koala-framework/composer-extra-assets": "~1.1"
 },
 "extra": {
     "require-npm": {
         "gulp": "*"
     },
     "expose-npm-packages": true
 }

Generated files

This plugin will automatically generate 3 files: .bowerrc, bower.json, package.json/, (*9)

Unless you have special requirements, you can ignore those 3 files in your VCS. If you are using GIT, add this to your .gitignore:, (*10)

.gitignore, (*11)

vendor/
.bowerrc
bower.json
package.json

Lock

This plugin will generate a file named composer-extra-assets.lock which can be used just like composer.lock. Put it under version control if you want to be able to install the exact same dependencies., (*12)

Warning

This plugins removes (and re-installs) the complete node_modules folder. Any changes will be lost., (*13)

The Versions

07/09 2016

dev-master

9999999-dev https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

07/09 2016

v2.0.8

2.0.8.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

30/08 2016

v2.0.7

2.0.7.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

30/08 2016

v2.0.6

2.0.6.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

25/05 2016

v2.0.5

2.0.5.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

13/05 2016

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

13/05 2016

v1.1.2

1.1.2.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

13/05 2016

1.2.x-dev

1.2.9999999.9999999-dev https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

13/05 2016

v1.2.1

1.2.1.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

19/04 2016

v1.1.1

1.1.1.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

19/04 2016

v2.0.4

2.0.4.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

24/03 2016

v2.0.3

2.0.3.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

21/01 2016

v2.0.1

2.0.1.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

21/01 2016

v2.0.2

2.0.2.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

25/08 2015

v2.0.0

2.0.0.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

25/08 2015

dev-assets-lock

dev-assets-lock https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

26/03 2015

v1.2.0

1.2.0.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

19/03 2015

v1.1.0

1.1.0.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

 

12/03 2015

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

  • composer-plugin-api 1.0.0

 

23/02 2015

v1.0.1

1.0.1.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

  • composer-plugin-api 1.0.0

 

14/09 2014

v1.0.0

1.0.0.0 https://github.com/koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

  Sources   Download

BSD-2-Clause

The Requires

  • composer-plugin-api 1.0.0