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
// Trim events down to a small subset of the default | |
Ember.EventDispatcher.reopen({ | |
events: { | |
click : 'click', | |
keypress : 'keyPress', | |
mousedown : 'mouseDown', | |
mouseup : 'mouseUp', | |
mousewheel : 'mouseWheel' | |
} | |
}); |
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
(function(context) { | |
// Almond.js here | |
// Library module definitions here | |
if (context.define && context.define.amd) { | |
// AMD - expose myLib to outer AMD loader | |
var almondDefine = define; | |
(function(define, almondDefine, almondRequire) { |
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
# Create literate-programming-style docs for all js files in src, output to docs | |
input "src" do | |
output "docs" | |
match "**/*.js" do | |
filter RoccoFilter do |filename| | |
filename.gsub('.js', '.html') | |
end | |
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
require "rocco" | |
# | |
# Run rocco to generate documentation on provided files | |
# | |
class RoccoFilter < Rake::Pipeline::Filter | |
def initialize(options={}, &block) | |
super(&block) | |
@sources = options.delete(:sources) | |
@options = options |
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" | |
require "neuter_plus_filter" | |
input 'src' do | |
output 'build' | |
match '**/main.js' do | |
filter(Rake::Pipeline::Web::ExtraFilters::NeuterPlusFilter, | |
# Possibly depend on JS files within same or subdirectories | |
:additional_dependencies => proc { |input| | |
Dir.glob(File.join(File.dirname(input.fullpath),'**','*.js')) |