Sha256: efc22c7d7dc5c57836e35788a4bafcc877b44542035c407fa5bdb77f2d048410
Contents?: true
Size: 470 Bytes
Versions: 4
Compression:
Stored size: 470 Bytes
Contents
require 'jim' module Soca module Plugins class Jim < Soca::Plugin name 'jim' def before_build jimfile = File.join(app_dir, 'Jimfile') ::Jim.logger = logger logger.debug "bundling js" bundler = ::Jim::Bundler.new(File.read(jimfile), ::Jim::Index.new(app_dir)) # set the base dir relative to the app bundler.bundle_dir = app_dir + bundler.bundle_dir bundler.bundle! end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
soca-0.3.3 | lib/soca/plugins/jim.rb |
soca-0.3.2 | lib/soca/plugins/jim.rb |
soca-0.3.1 | lib/soca/plugins/jim.rb |
soca-0.3.0 | lib/soca/plugins/jim.rb |