Skip to content

Instantly share code, notes, and snippets.

@dudleyf
Forked from bstaats/Assetfile
Created January 9, 2012 18:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dudleyf/1584140 to your computer and use it in GitHub Desktop.
Save dudleyf/1584140 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
minispade
concat 'app.js'
end
# Take all SCSS inputs and compile them with Sass
match 'main.scss' do
sass :additional_load_paths => "sass"
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