GithubHelp home page GithubHelp logo

shipit-bower's Introduction

shipit-bower

A set of tasks for Shipit used for bower specific tasks on deploy.

This is a modified version of the shipit-npm extension by @callerc1. This extension was forked from the 0.2.0 tag and is feature matched to that version. The majority of the work was undertaken by @callerc1 who set up a well written plug-in that was easy to repurpose.

Features:

Install

$ npm install shipit-bower

Usage

Just simply run: (This triggers the bower task on the deploy updated or fetched event. No additional config necessary.)

$ shipit staging deploy

Or you can run the tasks separatly :

$ shipit staging bower:init bower:install
$ shipit staging bower:run --cmd "update"

Options shipit.config.bower

bower.remote

Type: Boolean Default: true

A Boolean to determine whether to run the task in local workspace or on the remote.

bower.installArgs

Type: Array or String Default: []

An array or string specifying bower args passed to the bower install cmd.

bower.installFlags

Type: Array or String Default: []

An array or string specifying bower flags passed to the bower install cmd.

bower.triggerEvent

Type: String,Boolean Default: updated or fetched (depending on bower.remote value)

An event name that triggers bower:install. Can be set to false to prevent the bower:install task from listening to any events.

Example shipitfile.js options usage

module.exports = function (shipit) {
  require('shipit-deploy')(shipit);
  require('shipit-bower')(shipit);

  shipit.initConfig({
    default: {
      bower: {
        remote: false,
        installArgs: ['materialize'],
        installFlags: ['--save']
      }
    }
  });
};

Workflow tasks

  • bower
    • bower:init
      • Emit event "bower_inited".
    • bower:install
      • Runs bower install (with any Args bower.installArgs or Flags bower.installFlags defined in options)
      • Emit event "bower_installed"
    • bower:run
      • Runs bower command.
Event flow:
  • on Event "deploy" (shipit-deploy initialized)
    • Runs bower:init
    • on Event "bower_inited"
      • Runs bower:install (Triggered on the updated or fetched event from shipit-deploy or by a custom bower.triggerEvent as mentioned above.)

License

MIT

shipit-bower's People

Contributors

callerc1 avatar jstayton avatar willsteinmetz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.