A grunt wrapper for composer

npm install grunt-composer
19 downloads in the last day
49 downloads in the last week
327 downloads in the last month

grunt-composer Build Status

A Grunt task wrapper for composer to allow custom tasks to be configured to run composer as needed.

Getting Started

Installing the plugin:

npm install grunt-composer --save-dev

Loading the plugin via JavaScript:




Type: String Default value: .

The directory in which to execute the composer command.

Running Composer Commands


The first argument passed to the composer task becomes the command to run. Arguments are passed to tasks in Grunt by separating them via a colon, :.

grunt composer:update

Is equivalent to:

composer update
Command Options

Any arguments passed to the composer task after the command will get converted into options for the command.

grunt composer:install:no-dev

Is equivalent to:

composer install --no-dev
npm loves you