Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 

README.md

Compressor

Compressor is a RubyMotion gem that speeds up your RubyMotion compile times by concatenating your source files. It typically speeds up your fresh builds by 70-95%.*

* Not anymore! RubyMotion 3.12 has vastly improved compile times (spurred partly because of my original article?) and Compressor actually slows down your compiles. So, I would not recommend using it anymore.

Installation

gem "compressor"

Usage

In your Rakefile, add the following to the bottom of your setup block:

# ...

Motion::Project::App.setup do |app|
  # ...

  app.concat_files
end

Options

Exclude files by passing in regex or strings:

app.concat_files exclude: [ /app/, "/app/" ]

Choose the number of files to break into, for parallel builds (default is 4):

app.concat_files parallel: 3

A typical setup is:

app.development do
  app.concat_files exclude: [ "/app/" ], parallel: 3
end

app.release do
  app.concat_files
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Concatenates your RubyMotion source files for faster compile times.

Resources

Packages

No packages published

Languages

You can’t perform that action at this time.