0.0
No commit activity in last 3 years
No release in over 3 years
jspm support for Capistrano 3.x
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Capistrano::JspmGem Version

Jspm support for Capistrano 3.x

Installation

Add this line to your application's Gemfile:

gem 'capistrano'
gem 'capistrano-jspm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-jspm

Usage

Require in Capfile to use the default task:

require 'capistrano/jspm'

The jspm:install task will run before deploy:updated as part of Capistrano's default deploy, or can be run in isolation with cap production jspm:install

Configurable options, shown here with defaults:

set :jspm_roles, :web
set :jspm_bin, :jspm

jspm:build

build task is optional, and in order to run it on every deployment, add this to your deploy.rb file:

before 'deploy:updated', 'jspm:build' do
  invoke 'jspm:build',
         'path/for/fromfile/app.js',
         'path/for/tofile/app.min.js'
end

Configurable options, shown here with defaults:

set :jspm_build_flags, '--minify'

Versions

v1

Supports bundle_sfx task.

v2

bundle_sfx task is renamed to build task.