0.1.1 • Published 7 years ago

shipit-composer-simple v0.1.1

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
7 years ago

# shipit-composer-simple

This shipit task helps you run Composer commands on your distant server.

Install

npm install shipit-composer-simple

Usage

With shipit-cli

Example shipitfile.js:

/*jslint node: true*/
module.exports = function (shipit) {
    'use strict';
    require('shipit-composer-simple')(shipit);

    shipit.initConfig({
        staging: {
            deployTo: '/path/to/working/copy/',
            servers: 'user@example.com',
            composer: {
                noDev: true
            }
        }
    });
};

Then run:

shipit staging composer:install

With grunt

Example Gruntfile.js:

/*jslint node: true*/
module.exports = function (grunt) {
    'use strict';

    grunt.loadNpmTasks('grunt-shipit');
    grunt.loadNpmTasks('shipit-composer-simple');

    grunt.initConfig({
        shipit: {
            staging: {
                deployTo: '/path/to/working/copy/',
                servers: 'user@example.com',
                composer: {
                    noDev: true
                }
            }
        }
    });
};

Then run:

grunt shipit:staging composer:install
0.1.1

7 years ago

0.1.0

8 years ago