Created
January 9, 2012 17:41
-
-
Save bstaats/1584064 to your computer and use it in GitHub Desktop.
Rake::Pipeline with multiple package inputs for an Ember project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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