forked from ebryn/ember-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3c7bdc2
Showing
24 changed files
with
39,188 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"predef": [ | ||
"define", | ||
"console", | ||
"Ember", | ||
"DS", | ||
"Handlebars", | ||
"Metamorph", | ||
"RSVP", | ||
"require", | ||
"requireModule", | ||
"equal", | ||
"notEqual", | ||
"test", | ||
"asyncTest", | ||
"testBoth", | ||
"testWithDefault", | ||
"raises", | ||
"throws", | ||
"deepEqual", | ||
"start", | ||
"stop", | ||
"ok", | ||
"strictEqual", | ||
"module", | ||
"expect", | ||
"minispade" | ||
], | ||
|
||
"node" : false, | ||
"browser" : true, | ||
|
||
"boss" : true, | ||
"curly": false, | ||
"debug": false, | ||
"devel": false, | ||
"eqeqeq": true, | ||
"evil": true, | ||
"forin": false, | ||
"immed": false, | ||
"laxbreak": false, | ||
"newcap": true, | ||
"noarg": true, | ||
"noempty": false, | ||
"nonew": false, | ||
"nomen": false, | ||
"onevar": false, | ||
"plusplus": false, | ||
"regexp": false, | ||
"undef": true, | ||
"sub": true, | ||
"strict": false, | ||
"white": false, | ||
"eqnull": true | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
instance_eval File.read(EmberDev.support_path.join('Assetfile')) | ||
|
||
distros = { | ||
:full => %w(ember-model) | ||
} | ||
|
||
output "dist" | ||
|
||
distros.each do |name, modules| | ||
name = "ember-dev-package" | ||
|
||
input "dist/modules" do | ||
module_paths = modules.map{|m| "#{m}.js" } | ||
match "{#{module_paths.join(',')}}" do | ||
concat(module_paths){ ["#{name}.js", "#{name}.prod.js"] } | ||
end | ||
|
||
match "#{name}.js" do | ||
filter VersionInfo | ||
end | ||
|
||
# Strip dev code | ||
match "#{name}.prod.js" do | ||
filter(EmberStripDebugMessagesFilter) { ["#{name}.prod.js", "min/#{name}.js"] } | ||
end | ||
|
||
# Minify | ||
match "min/#{name}.js" do | ||
uglify{ "#{name}.min.js" } | ||
filter VersionInfo | ||
filter EmberLicenseFilter | ||
end | ||
end | ||
end | ||
|
||
# vim: filetype=ruby |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source "http://rubygems.org" | ||
|
||
gem "rake-pipeline", :git => "https://github.com/livingsocial/rake-pipeline.git" | ||
gem "ember-dev", :git => "https://github.com/emberjs/ember-dev.git", :branch => "master" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
GIT | ||
remote: https://github.com/emberjs/ember-dev.git | ||
revision: d0cd62116bce700680393badbf18278b84f31785 | ||
branch: master | ||
specs: | ||
ember-dev (0.1) | ||
colored | ||
execjs | ||
grit | ||
kicker | ||
rack | ||
rake-pipeline (~> 0.8.0) | ||
rake-pipeline-web-filters (~> 0.7.0) | ||
uglifier | ||
|
||
GIT | ||
remote: https://github.com/livingsocial/rake-pipeline.git | ||
revision: ee992cbcda5172075062be035bcbef2cf1b0ff5d | ||
specs: | ||
rake-pipeline (0.8.0) | ||
json | ||
rake (~> 10.0.0) | ||
thor | ||
|
||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
colored (1.2) | ||
diff-lcs (1.2.0) | ||
execjs (1.4.0) | ||
multi_json (~> 1.0) | ||
grit (2.5.0) | ||
diff-lcs (~> 1.1) | ||
mime-types (~> 1.15) | ||
posix-spawn (~> 0.3.6) | ||
json (1.7.6) | ||
kicker (2.6.1) | ||
listen | ||
listen (0.7.2) | ||
mime-types (1.20.1) | ||
multi_json (1.5.0) | ||
posix-spawn (0.3.6) | ||
rack (1.5.1) | ||
rake (10.0.3) | ||
rake-pipeline-web-filters (0.7.0) | ||
rack | ||
rake-pipeline (~> 0.6) | ||
thor (0.17.0) | ||
uglifier (1.3.0) | ||
execjs (>= 0.3.0) | ||
multi_json (~> 1.0, >= 1.0.2) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
ember-dev! | ||
rake-pipeline! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Ember.Model | ||
|
||
A lightweight model library for Ember.js | ||
|
||
More soon... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
require "bundler/setup" | ||
require "ember-dev/tasks" | ||
|
||
directory "tmp" | ||
|
||
file "tmp/ember.js" => "tmp" do | ||
cd "tmp" do | ||
sh "git clone https://github.com/emberjs/ember.js.git" | ||
end | ||
end | ||
|
||
task :update_ember_git => ["tmp/ember.js"] do | ||
cd "tmp/ember.js" do | ||
sh "git fetch origin" | ||
sh "git reset --hard origin/master" | ||
end | ||
end | ||
|
||
file "tmp/ember.js/dist/ember.js" | ||
|
||
file "packages/ember/lib/main.js" => [:update_ember_git, "tmp/ember.js/dist/ember.js"] do | ||
cd "tmp/ember.js" do | ||
sh "rake dist" | ||
cp "dist/ember.js", "../../packages/ember/lib/main.js" | ||
end | ||
end | ||
|
||
task :update_ember => "packages/ember/lib/main.js" | ||
|
||
|
||
task :clean => "ember:clean" | ||
task :dist => "ember:dist" | ||
task :test, [:suite] => "ember:test" | ||
task :default => :dist |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.0.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'bundler/setup' | ||
require 'ember-dev' | ||
|
||
# This is not ideal | ||
map "/lib" do | ||
run Rack::Directory.new('lib') | ||
end | ||
|
||
run EmberDev::Server.new |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
name: Ember Model | ||
assetfile: 'Assetfile' | ||
testing_suites: | ||
default: | ||
- "package=all" | ||
all: | ||
- "package=all" | ||
- "package=all&extendprototypes=true&nojshint=true" | ||
- "package=all&dist=build&nojshint=true" | ||
testing_packages: | ||
- ember-model |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// ========================================================================== | ||
// Project: Ember Data | ||
// Copyright: ©2011-2012 Tilde Inc. and contributors. | ||
// Portions ©2011 Living Social Inc. and contributors. | ||
// License: Licensed under MIT license (see license.js) | ||
// ========================================================================== | ||
|
Oops, something went wrong.