manager | dist | manifest | export | ignore | include | entry |
---|---|---|---|---|---|---|
npm | npm | package.json | cjs | .npmignore | #main | |
bower | git | bower.json | umd | #ignore | #main | |
component | git | component.json | umd | #files | #main | |
spm | git | package.json#spm | umd | .spmignore | #output | #main |
packagist | git | composer.json | umd | |||
ender | npm | package.json | cjs | .npmignore | #ender | |
dojo | ??? | package.json#dojoBuild | umd | #dojoBuild | ||
jspm | npm/git | package.json#jspm | any | #ignore | #files | #main |
🏳️🌈
This file contains 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
# config/initializers/cucumber_fakeweb_hook.rb | |
# If this looks like a test server process, make its FakeWeb available to other | |
# processes via DRb. That way the test runner (which runs in a separate process) | |
# can dynamically register stubs for this server to use. | |
if Rails.env.cucumber? && defined?(PhusionPassenger) | |
require 'drb' | |
require 'fakeweb' | |
DRb.start_service("druby://localhost:30010", FakeWeb) |
This file contains 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 "json" | |
require "rake-pipeline-web-filters" | |
input "assets" | |
output "public" | |
class HandlebarsFilter < Rake::Pipeline::Filter | |
def initialize(&block) | |
block ||= proc { |input| input.sub(/\.handlebars$/, '.js') } | |
super(&block) |
This file contains 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
var fs = require('fs') | |
var vm = require('vm') | |
var handlebarsjs = fs.readFileSync('path/to/handlebars.js', 'utf8') | |
var emberjs = fs.readFileSync('path/to/ember.js', 'utf8') | |
var templatesDir = 'path/to/template/dir' | |
desc('Compile all .handlebars templates') | |
task({ 'handlebars': [] }, function () { | |
process.stdout.write('Compiling .handlebars templates') |
This file contains 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 'goliath' | |
require 'em-synchrony/em-http' | |
class UploadProxy < Goliath::API | |
def on_headers(env, headers) | |
env.logger.info 'received headers: ' + headers.inspect | |
env['async-headers'] = headers | |
end |
This file contains 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
// This file contains utilities for creating bound helpers | |
// For reference: https://github.com/wagenet/ember.js/blob/ac66dcb8a1cbe91d736074441f853e0da474ee6e/packages/ember-handlebars/lib/views/bound_property_view.js | |
Ember.Handlebars.BoundHelperView = Ember.View.extend(Ember._Metamorph, { | |
context: null, | |
options: null, | |
property: null, | |
// paths of the property that are also observed | |
propertyPaths: [], |
This file contains 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')) |
Currently, there are several awkward points to Ember.js controllers. Namely:
- Passing controllers around to view's not instantiated by the routing system is hard.
- Non-singleton controllers are very difficult to manage (e.g. #each where each view has it's own controller).
- Sharing data between controllers is difficult.
Proposed changes/goals/musings
- Make an iridium command
- Enable: iridium app your_app_name so it generates a complete application structure
- Enable: iridium server # starts a stupid development server serving /site or whatever the application config is
- Enable: iridium generate model|view|template|controller|template|state
- Make testing work with casperjs for integration tests and unit tests
- Tests written in Coffescript by default (casper automatically compiles cs so no extra work needed)
OlderNewer