Skip to content

Commit d4f1969

Browse files
committed
Update Ember CLI to 0.1.15
1 parent 6be3f73 commit d4f1969

File tree

14 files changed

+58
-71
lines changed

14 files changed

+58
-71
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ indent_size = 2
2929
indent_style = space
3030
indent_size = 2
3131

32-
[*.md]
32+
[*.{diff,md}]
3333
trim_trailing_whitespace = false

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# dependencies
88
/node_modules
9-
/bower_components/*
9+
/bower_components
1010

1111
# misc
1212
/.sass-cache

.jshintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"window",
55
"-Promise"
66
],
7-
"browser" : true,
8-
"boss" : true,
7+
"browser": true,
8+
"boss": true,
99
"curly": true,
1010
"debug": false,
1111
"devel": true,

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ cache:
77
directories:
88
- node_modules
99

10+
before_install:
11+
- "npm config set spin false"
12+
- "npm install -g npm@^2"
13+
1014
install:
1115
- npm install -g bower
1216
- npm install

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# Ember-cli-jquery-ui-example
22

33
This README outlines the details of collaborating on this Ember application.
4-
54
A short introduction of this app could easily go here.
65

76
## Prerequisites
87

98
You will need the following things properly installed on your computer.
109

1110
* [Git](http://git-scm.com/)
12-
* [Node.js](http://nodejs.org/) (with NPM) and [Bower](http://bower.io/)
11+
* [Node.js](http://nodejs.org/) (with NPM)
12+
* [Bower](http://bower.io/)
13+
* [Ember CLI](http://www.ember-cli.com/)
14+
* [PhantomJS](http://phantomjs.org/)
1315

1416
## Installation
1517

@@ -21,7 +23,7 @@ You will need the following things properly installed on your computer.
2123
## Running / Development
2224

2325
* `ember server`
24-
* Visit your app at http://localhost:4200.
26+
* Visit your app at [http://localhost:4200](http://localhost:4200).
2527

2628
### Code Generators
2729

@@ -43,8 +45,8 @@ Specify what it takes to deploy your app.
4345

4446
## Further Reading / Useful Links
4547

46-
* ember: http://emberjs.com/
47-
* ember-cli: http://www.ember-cli.com/
48+
* [ember.js](http://emberjs.com/)
49+
* [ember-cli](http://www.ember-cli.com/)
4850
* Development Browser Extensions
4951
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
5052
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)

app/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111

1212
<link rel="stylesheet" href="assets/vendor.css">
1313
<link rel="stylesheet" href="assets/ember-cli-jquery-ui-example.css">
14+
15+
{{content-for 'head-footer'}}
1416
</head>
1517
<body>
1618
{{content-for 'body'}}
1719

1820
<script src="assets/vendor.js"></script>
1921
<script src="assets/ember-cli-jquery-ui-example.js"></script>
22+
23+
{{content-for 'body-footer'}}
2024
</body>
2125
</html>

bower.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"name": "ember-cli-jquery-ui-example",
33
"dependencies": {
4-
"handlebars": "~1.3.0",
5-
"jquery": "^1.11.1",
4+
"handlebars": "1.3.0",
5+
"jquery": "1.11.1",
66
"ember": "1.8.1",
7-
"ember-data": "1.0.0-beta.10",
8-
"ember-resolver": "~0.1.7",
9-
"loader.js": "stefanpenner/loader.js#1.0.1",
10-
"ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.3",
11-
"ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.0.4",
12-
"ember-load-initializers": "stefanpenner/ember-load-initializers#0.0.2",
13-
"ember-qunit": "0.1.8",
14-
"ember-qunit-notifications": "0.0.4",
15-
"qunit": "~1.15.0",
16-
"jquery-ui": "~1.11.1"
7+
"ember-data": "1.0.0-beta.14.1",
8+
"ember-resolver": "0.1.11",
9+
"loader.js": "ember-cli/loader.js#1.0.1",
10+
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
11+
"ember-cli-test-loader": "ember-cli/ember-cli-test-loader#0.1.1",
12+
"ember-load-initializers": "ember-cli/ember-load-initializers#0.0.2",
13+
"ember-qunit": "0.2.8",
14+
"ember-qunit-notifications": "0.0.7",
15+
"qunit": "1.17.1",
16+
"jquery-ui": "1.11.1"
1717
}
1818
}

config/environment.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ module.exports = function(environment) {
2121

2222
if (environment === 'development') {
2323
// ENV.APP.LOG_RESOLVER = true;
24-
ENV.APP.LOG_ACTIVE_GENERATION = true;
24+
// ENV.APP.LOG_ACTIVE_GENERATION = true;
2525
// ENV.APP.LOG_TRANSITIONS = true;
2626
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
27-
ENV.APP.LOG_VIEW_LOOKUPS = true;
27+
// ENV.APP.LOG_VIEW_LOOKUPS = true;
2828
}
2929

3030
if (environment === 'test') {
3131
// Testem prefers this...
3232
ENV.baseURL = '/';
33-
ENV.locationType = 'auto';
33+
ENV.locationType = 'none';
3434

3535
// keep test console output quieter
3636
ENV.APP.LOG_ACTIVE_GENERATION = false;

package.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,26 @@
1111
"build": "ember build",
1212
"test": "ember test"
1313
},
14-
"repository": "https://github.com/stefanpenner/ember-cli",
14+
"repository": "https://github.com/gaurav0/ember-cli-jquery-ui-example",
1515
"engines": {
1616
"node": ">= 0.10.0"
1717
},
1818
"author": "",
1919
"license": "MIT",
2020
"devDependencies": {
21-
"body-parser": "^1.2.0",
22-
"broccoli-asset-rev": "0.3.1",
23-
"broccoli-ember-hbs-template-compiler": "^1.6.1",
24-
"ember-cli": "^0.1.2",
21+
"broccoli-asset-rev": "2.0.0",
22+
"broccoli-ember-hbs-template-compiler": "1.6.1",
23+
"ember-cli": "0.1.15",
24+
"ember-cli-6to5": "3.0.0",
25+
"ember-cli-app-version": "0.3.1",
2526
"ember-cli-content-security-policy": "0.3.0",
26-
"ember-export-application-global": "^1.0.0",
2727
"ember-cli-ic-ajax": "0.1.1",
28-
"ember-cli-inject-live-reload": "^1.3.0",
28+
"ember-cli-inject-live-reload": "1.3.0",
2929
"ember-cli-jquery-ui": "latest",
30-
"ember-cli-qunit": "0.1.0",
31-
"ember-data": "1.0.0-beta.10",
30+
"ember-cli-qunit": "0.3.7",
31+
"ember-cli-uglify": "1.0.1",
32+
"ember-data": "1.0.0-beta.14.1",
33+
"ember-export-application-global": "1.0.2",
3234
"express": "^4.8.5",
3335
"glob": "^4.0.5"
3436
}

public/robots.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# robotstxt.org/
2-
1+
# http://www.robotstxt.org
32
User-agent: *

testem.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"framework": "qunit",
3-
"test_page": "tests/index.html",
3+
"test_page": "tests/index.html?hidepassed",
44
"launch_in_ci": [
55
"PhantomJS"
66
],

tests/helpers/start-app.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,16 @@ import Router from '../../router';
44
import config from '../../config/environment';
55

66
export default function startApp(attrs) {
7-
var App;
7+
var application;
88

99
var attributes = Ember.merge({}, config.APP);
1010
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override;
1111

12-
Router.reopen({
13-
location: 'none'
14-
});
15-
1612
Ember.run(function() {
17-
App = Application.create(attributes);
18-
App.setupForTesting();
19-
App.injectTestHelpers();
13+
application = Application.create(attributes);
14+
application.setupForTesting();
15+
application.injectTestHelpers();
2016
});
2117

22-
App.reset(); // this shouldn't be needed, i want to be able to "start an app at a specific URL"
23-
24-
return App;
18+
return application;
2519
}

tests/index.html

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,11 @@
1313
<link rel="stylesheet" href="assets/vendor.css">
1414
<link rel="stylesheet" href="assets/ember-cli-jquery-ui-example.css">
1515
<link rel="stylesheet" href="assets/test-support.css">
16-
<style>
17-
#ember-testing-container {
18-
position: absolute;
19-
background: white;
20-
bottom: 0;
21-
right: 0;
22-
width: 640px;
23-
height: 384px;
24-
overflow: auto;
25-
z-index: 9999;
26-
border: 1px solid #ccc;
27-
}
28-
#ember-testing {
29-
zoom: 50%;
30-
}
31-
</style>
16+
17+
{{content-for 'head-footer'}}
18+
{{content-for 'test-head-footer'}}
3219
</head>
3320
<body>
34-
<div id="qunit"></div>
35-
<div id="qunit-fixture"></div>
3621

3722
{{content-for 'body'}}
3823
{{content-for 'test-body'}}
@@ -41,5 +26,8 @@
4126
<script src="assets/ember-cli-jquery-ui-example.js"></script>
4227
<script src="testem.js"></script>
4328
<script src="assets/test-loader.js"></script>
29+
30+
{{content-for 'body-footer'}}
31+
{{content-for 'test-body-footer'}}
4432
</body>
4533
</html>

tests/test-helper.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,3 @@ import {
44
} from 'ember-qunit';
55

66
setResolver(resolver);
7-
8-
document.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>');
9-
10-
QUnit.config.urlConfig.push({ id: 'nocontainer', label: 'Hide container'});
11-
var containerVisibility = QUnit.urlParams.nocontainer ? 'hidden' : 'visible';
12-
document.getElementById('ember-testing-container').style.visibility = containerVisibility;

0 commit comments

Comments
 (0)