grunt-composer

A grunt wrapper for composer

npm install grunt-composer
7 downloads in the last day
113 downloads in the last week
325 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:

grunt.loadNpmTasks('grunt-composer');

Options

options.cwd

Type: String Default value: .

The directory in which to execute the composer command.

Running Composer Commands

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