Skip to content

Instantly share code, notes, and snippets.

@ppcano
Created July 4, 2012 07:26
Show Gist options
  • Select an option

  • Save ppcano/3045900 to your computer and use it in GitHub Desktop.

Select an option

Save ppcano/3045900 to your computer and use it in GitHub Desktop.
Using Environments
config = ( !ENV['APP_ENV'].nil? && !ENV['APP_ENV'].empty? ) ? ENV['APP_ENV'] : "default"
match "app/config/**/#{config}.js" do
minispade :rewrite_requires => true, :string=> false, :module_id_generator => proc { |input|
id = input.path.dup
id.sub!(/\/[a-z\-\.]+.js$/, '') #filter file.js name
id
}
concat "app.js"
end
require('app/config/local_store');
require('app/config/settings');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment