Skip to content

Instantly share code, notes, and snippets.

@bstaats
Created January 9, 2012 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bstaats/1584064 to your computer and use it in GitHub Desktop.
Save bstaats/1584064 to your computer and use it in GitHub Desktop.
Rake::Pipeline with multiple package inputs for an Ember project
require 'rake-pipeline-web-filters'
# package js
input 'packages/emberjs/dist', 'ember.js'
input 'packages/package_A'
input 'packages/package_B'
# project js
input 'lib'
input 'sass', 'main.scss'
output 'assets'
# Take all JS inputs and wrap each of them in code to
# register them with the Minispade module loader.
match '*.js' do
filter Rake::Pipeline::Web::Filters::MinispadeFilter
filter Rake::Pipeline::ConcatFilter, 'app.js'
end
# Take all SCSS inputs and compile them with Sass
match 'main.scss' do
filter Rake::Pipeline::Web::Filters::SassCompiler
end
// package styles
@import '../packages/package_A/sass/layout';
@import '../packages/package_B/sass/typography';
// project styles
@import 'color';
@import 'layout';
@import 'typography';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment