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 748d2a4
Showing
87 changed files
with
1,179 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,3 @@ | ||
{ | ||
"directory": "vendor" | ||
} |
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,20 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/tmp | ||
|
||
# dependencies | ||
/node_modules | ||
/vendor/* | ||
!/vendor/_loader.js | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/libpeerconnection.log | ||
.DS_Store | ||
Thumbs.db | ||
/coverage/* | ||
npm-debug.log | ||
testem.log |
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,40 @@ | ||
{ | ||
"predef": { | ||
"document": true, | ||
"window": true, | ||
"location": true, | ||
"setTimeout": true, | ||
"Ember": true, | ||
"Em": true, | ||
"DS": true, | ||
"$": true, | ||
"ENV": true, | ||
"module": true | ||
}, | ||
"node" : false, | ||
"browser" : false, | ||
"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, | ||
"esnext": true, | ||
"unused": 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,29 @@ | ||
/* global require, module */ | ||
|
||
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | ||
|
||
var app = new EmberApp({ | ||
name: require('./package.json').name, | ||
|
||
getEnvJSON: require('./config/environment') | ||
}); | ||
|
||
// Use this to add additional libraries to the generated output files. | ||
app.import('vendor/ember-data/ember-data.js'); | ||
|
||
// If the library that you are including contains AMD or ES6 modules that | ||
// you would like to import into your application please specify an | ||
// object with the list of modules as keys along with the exports of each | ||
// module as its value. | ||
app.import('vendor/ic-ajax/dist/named-amd/main.js', { | ||
'ic-ajax': [ | ||
'default', | ||
'defineFixture', | ||
'lookupFixture', | ||
'raw', | ||
'request', | ||
] | ||
}); | ||
|
||
|
||
module.exports = app.toTree(); |
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,13 @@ | ||
import Resolver from 'ember/resolver'; | ||
import loadInitializers from 'ember/load-initializers'; | ||
|
||
Ember.MODEL_FACTORY_INJECTIONS = true; | ||
|
||
var App = Ember.Application.extend({ | ||
modulePrefix: 'bostonember', // TODO: loaded via config | ||
Resolver: Resolver | ||
}); | ||
|
||
loadInitializers(App, 'bostonember'); | ||
|
||
export default App; |
Empty file.
Empty file.
Empty file.
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,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>Bostonember</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
{{BASE_TAG}} | ||
|
||
<link rel="stylesheet" href="assets/app.css"> | ||
</head> | ||
<body> | ||
<script> | ||
window.ENV = {{ENV}}; | ||
</script> | ||
<script src="assets/app.js"></script> | ||
<script> | ||
window.Bostonember = require('bostonember/app')['default'].create(ENV.APP); | ||
</script> | ||
</body> | ||
</html> |
Empty file.
Empty file.
Empty file.
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,8 @@ | ||
var Router = Ember.Router.extend({ | ||
location: ENV.locationType | ||
}); | ||
|
||
Router.map(function() { | ||
}); | ||
|
||
export default Router; |
Empty file.
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 @@ | ||
export default Ember.Route.extend({}); |
Empty file.
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,3 @@ | ||
html, body { | ||
margin: 20px; | ||
} |
Empty file.
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,3 @@ | ||
<h2 id='title'>Welcome to Ember.js</h2> | ||
|
||
{{outlet}} |
Empty file.
Empty file.
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,16 @@ | ||
{ | ||
"name": "bostonember", | ||
"dependencies": { | ||
"handlebars": "~1.3.0", | ||
"jquery": "^1.11.1", | ||
"qunit": "~1.12.0", | ||
"ember-qunit": "~0.1.5", | ||
"ember": "1.5.1", | ||
"ember-data": "1.0.0-beta.7", | ||
"ember-resolver": "stefanpenner/ember-jj-abrams-resolver#master", | ||
"ic-ajax": "~1.x", | ||
"loader": "stefanpenner/loader.js#1.0.0", | ||
"ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.1", | ||
"ember-load-initializers": "stefanpenner/ember-load-initializers#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,33 @@ | ||
module.exports = function(environment) { | ||
var ENV = { | ||
baseURL: '/', | ||
locationType: 'auto', | ||
FEATURES: { | ||
// Here you can enable experimental features on an ember canary build | ||
// e.g. 'with-controller': true | ||
}, | ||
|
||
APP: { | ||
// Here you can pass flags/options to your application instance | ||
// when it is created | ||
} | ||
}; | ||
|
||
if (environment === 'development') { | ||
// LOG_MODULE_RESOLVER is needed for pre-1.6.0 | ||
ENV.LOG_MODULE_RESOLVER = true; | ||
|
||
ENV.APP.LOG_RESOLVER = true; | ||
ENV.APP.LOG_ACTIVE_GENERATION = true; | ||
ENV.APP.LOG_MODULE_RESOLVER = true; | ||
// ENV.APP.LOG_TRANSITIONS = true; | ||
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true; | ||
ENV.APP.LOG_VIEW_LOOKUPS = true; | ||
} | ||
|
||
if (environment === 'production') { | ||
|
||
} | ||
|
||
return ENV; | ||
}; |
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,26 @@ | ||
{ | ||
"name": "bostonember", | ||
"version": "0.0.0", | ||
"private": true, | ||
"directories": { | ||
"doc": "doc", | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
"start": "ember server", | ||
"build": "ember build", | ||
"test": "ember test" | ||
}, | ||
"repository": "https://github.com/stefanpenner/ember-cli", | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"ember-cli": "0.0.27", | ||
"originate": "0.1.5", | ||
"broccoli-ember-hbs-template-compiler": "^1.5.0", | ||
"loom-generators-ember-appkit": "^1.1.1" | ||
} | ||
} |
Empty file.
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 @@ | ||
{ | ||
"framework": "qunit", | ||
"test_page": "tests/index.html", | ||
"cwd": "tmp/output", | ||
"launch_in_ci": ["PhantomJS"], | ||
"launch_in_dev": ["PhantomJS", "Chrome"] | ||
} |
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,71 @@ | ||
{ | ||
"predef": [ | ||
"document", | ||
"window", | ||
"location", | ||
"setTimeout", | ||
"Ember", | ||
"Em", | ||
"$", | ||
"QUnit", | ||
"define", | ||
"console", | ||
"equal", | ||
"notEqual", | ||
"notStrictEqual", | ||
"test", | ||
"asyncTest", | ||
"testBoth", | ||
"testWithDefault", | ||
"raises", | ||
"throws", | ||
"deepEqual", | ||
"start", | ||
"stop", | ||
"ok", | ||
"strictEqual", | ||
"module", | ||
"process", | ||
"expect", | ||
"visit", | ||
"exists", | ||
"fillIn", | ||
"click", | ||
"keyEvent", | ||
"find", | ||
"wait", | ||
"DS", | ||
"keyEvent", | ||
"isolatedContainer", | ||
"startApp", | ||
"andThen", | ||
"currentUrl", | ||
"currentPath", | ||
"currentRouteName" | ||
], | ||
"node" : false, | ||
"browser" : false, | ||
"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, | ||
"esnext": 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,9 @@ | ||
import Resolver from 'ember/resolver'; | ||
|
||
var resolver = Resolver.create(); | ||
|
||
resolver.namespace = { | ||
modulePrefix: 'bostonember' | ||
}; | ||
|
||
export default resolver; |
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,24 @@ | ||
/* global require */ | ||
|
||
var Application = require('bostonember/app')['default']; | ||
|
||
export default function startApp(attrs) { | ||
var App; | ||
|
||
var attributes = Ember.merge({ | ||
// useful Test defaults | ||
rootElement: '#ember-testing', | ||
LOG_ACTIVE_GENERATION:false, | ||
LOG_VIEW_LOOKUPS: false | ||
}, attrs); // but you can override; | ||
|
||
Ember.run(function(){ | ||
App = Application.create(attributes); | ||
App.setupForTesting(); | ||
App.injectTestHelpers(); | ||
}); | ||
|
||
App.reset(); // this shouldn't be needed, i want to be able to "start an app at a specific URL" | ||
|
||
return App; | ||
} |
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,46 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>Bostonember Tests</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
{{BASE_TAG}} | ||
|
||
<link rel="stylesheet" href="assets/app.css"> | ||
<link rel="stylesheet" href="assets/qunit.css"> | ||
<style> | ||
#ember-testing-container { | ||
position: absolute; | ||
background: white; | ||
bottom: 0; | ||
right: 0; | ||
width: 640px; | ||
height: 384px; | ||
overflow: auto; | ||
z-index: 9999; | ||
border: 1px solid #ccc; | ||
} | ||
#ember-testing { | ||
zoom: 50%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="qunit"></div> | ||
<div id="qunit-fixture"></div> | ||
|
||
<script> | ||
window.ENV = {{ENV}}; | ||
</script> | ||
<script src="assets/qunit.js"></script> | ||
<script src="assets/app.js"></script> | ||
<script src="testem.js"></script> | ||
<script> | ||
require('bostonember/tests/test-helper'); | ||
require('bostonember/tests/test-loader'); | ||
</script> | ||
</body> | ||
</html> |
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,6 @@ | ||
import resolver from './helpers/resolver'; | ||
import { setResolver } from 'ember-qunit'; | ||
|
||
setResolver(resolver); | ||
|
||
document.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>'); |
Oops, something went wrong.