Skip to content

Commit cd4a525

Browse files
committed
Update ember-cli to 2.8.0
1 parent 2429065 commit cd4a525

11 files changed

+43
-62
lines changed

.editorconfig

-17
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,5 @@ insert_final_newline = true
1313
indent_style = space
1414
indent_size = 2
1515

16-
[*.js]
17-
indent_style = space
18-
indent_size = 2
19-
20-
[*.hbs]
21-
insert_final_newline = false
22-
indent_style = space
23-
indent_size = 2
24-
25-
[*.css]
26-
indent_style = space
27-
indent_size = 2
28-
29-
[*.html]
30-
indent_style = space
31-
indent_size = 2
32-
3316
[*.{diff,md}]
3417
trim_trailing_whitespace = false

.jshintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
"strict": false,
2828
"white": false,
2929
"eqnull": true,
30-
"esnext": true,
30+
"esversion": 6,
3131
"unused": true
3232
}

.travis.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
language: node_js
33
node_js:
4-
- "6"
4+
- "4"
55

66
sudo: false
77

@@ -22,14 +22,17 @@ matrix:
2222
- env: EMBER_TRY_SCENARIO=ember-canary
2323

2424
before_install:
25-
- export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
26-
- "npm config set spin false"
27-
- "npm install -g npm@^2"
25+
- npm config set spin false
26+
- npm install -g bower
27+
- bower --version
28+
- npm install phantomjs-prebuilt
29+
- node_modules/phantomjs-prebuilt/bin/phantomjs --version
2830

2931
install:
30-
- npm install -g bower
3132
- npm install
3233
- bower install
3334

3435
script:
35-
- ember try $EMBER_TRY_SCENARIO test
36+
# Usually, it's ok to finish the test scenario without reverting
37+
# to the addon's original dependency state, skipping "cleanup".
38+
- ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup

bower.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"name": "ember-cli-bootstrap-datetimepicker",
33
"dependencies": {
4-
"ember": "~2.5.0",
5-
"ember-cli-shims": "0.1.1",
6-
"ember-cli-test-loader": "0.2.2",
7-
"ember-qunit-notifications": "0.1.0"
4+
"ember": "~2.8.0",
5+
"ember-cli-shims": "0.1.1"
86
}
97
}

package.json

+9-11
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"build": "ember build",
1111
"start": "ember server",
12-
"test": "ember try:testall"
12+
"test": "ember try:each"
1313
},
1414
"repository": "https://github.com/btecu/ember-cli-bootstrap-datetimepicker",
1515
"engines": {
@@ -19,24 +19,22 @@
1919
"license": "MIT",
2020
"devDependencies": {
2121
"broccoli-asset-rev": "^2.4.2",
22-
"ember-ajax": "0.7.1",
23-
"ember-cli": "2.5.0",
22+
"ember-cli": "2.8.0",
2423
"ember-cli-app-version": "^1.0.0",
2524
"ember-cli-dependency-checker": "^1.2.0",
2625
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
2726
"ember-cli-inject-live-reload": "^1.4.0",
2827
"ember-cli-jshint": "^1.0.0",
29-
"ember-cli-qunit": "^1.4.0",
28+
"ember-cli-qunit": "^2.1.0",
3029
"ember-cli-moment-shim": "1.3.0",
31-
"ember-cli-release": "0.2.8",
30+
"ember-cli-release": "^0.2.9",
3231
"ember-cli-sri": "^2.1.0",
32+
"ember-cli-test-loader": "^1.1.0",
3333
"ember-cli-uglify": "^1.2.0",
34-
"ember-data": "^2.5.0",
3534
"ember-disable-prototype-extensions": "^1.1.0",
3635
"ember-export-application-global": "^1.0.5",
3736
"ember-load-initializers": "^0.5.1",
3837
"ember-resolver": "^2.0.3",
39-
"ember-try": "^0.2.2",
4038
"eonasdan-bootstrap-datetimepicker-npm": "4.17.37",
4139
"loader.js": "^4.0.1",
4240
"moment": "^2.3.0",
@@ -57,10 +55,10 @@
5755
"datetimepicker"
5856
],
5957
"dependencies": {
60-
"broccoli-funnel": "^1.0.1",
61-
"broccoli-merge-trees": "^1.1.1",
62-
"ember-cli-babel": "^5.1.5",
63-
"ember-cli-htmlbars": "^1.0.3"
58+
"broccoli-funnel": "^1.0.6",
59+
"broccoli-merge-trees": "^1.1.4",
60+
"ember-cli-babel": "^5.1.6",
61+
"ember-cli-htmlbars": "^1.1.0"
6462
},
6563
"ember-addon": {
6664
"after": [

tests/.jshintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
"strict": false,
4848
"white": false,
4949
"eqnull": true,
50-
"esnext": true,
50+
"esversion": 6,
5151
"unused": true
5252
}

tests/dummy/app/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99

1010
{{content-for "head"}}
1111

12-
<link rel="stylesheet" href="assets/vendor.css">
13-
<link rel="stylesheet" href="assets/dummy.css">
12+
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
13+
<link rel="stylesheet" href="{{rootURL}}assets/dummy.css">
1414

1515
{{content-for "head-footer"}}
1616
</head>
1717
<body>
1818
{{content-for "body"}}
1919

20-
<script src="assets/vendor.js"></script>
21-
<script src="assets/dummy.js"></script>
20+
<script src="{{rootURL}}assets/vendor.js"></script>
21+
<script src="{{rootURL}}assets/dummy.js"></script>
2222

2323
{{content-for "body-footer"}}
2424
</body>

tests/dummy/app/router.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import Ember from 'ember';
22
import config from './config/environment';
33

44
const Router = Ember.Router.extend({
5-
location: config.locationType
5+
location: config.locationType,
6+
rootURL: config.rootURL
67
});
78

89
Router.map(function() {

tests/dummy/config/environment.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = function(environment) {
44
var ENV = {
55
modulePrefix: 'dummy',
66
environment: environment,
7-
baseURL: '/',
7+
rootURL: '/',
88
locationType: 'auto',
99
EmberENV: {
1010
FEATURES: {
@@ -29,7 +29,6 @@ module.exports = function(environment) {
2929

3030
if (environment === 'test') {
3131
// Testem prefers this...
32-
ENV.baseURL = '/';
3332
ENV.locationType = 'none';
3433

3534
// keep test console output quieter
+6-6
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
import { module } from 'qunit';
2+
import Ember from 'ember';
23
import startApp from '../helpers/start-app';
34
import destroyApp from '../helpers/destroy-app';
45

6+
const { RSVP: { Promise } } = Ember;
7+
58
export default function(name, options = {}) {
69
module(name, {
710
beforeEach() {
811
this.application = startApp();
912

1013
if (options.beforeEach) {
11-
options.beforeEach.apply(this, arguments);
14+
return options.beforeEach.apply(this, arguments);
1215
}
1316
},
1417

1518
afterEach() {
16-
if (options.afterEach) {
17-
options.afterEach.apply(this, arguments);
18-
}
19-
20-
destroyApp(this.application);
19+
let afterEach = options.afterEach && options.afterEach.apply(this, arguments);
20+
return Promise.resolve(afterEach).then(() => destroyApp(this.application));
2121
}
2222
});
2323
}

tests/index.html

+8-9
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
{{content-for "head"}}
1111
{{content-for "test-head"}}
1212

13-
<link rel="stylesheet" href="assets/vendor.css">
14-
<link rel="stylesheet" href="assets/dummy.css">
15-
<link rel="stylesheet" href="assets/test-support.css">
13+
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
14+
<link rel="stylesheet" href="{{rootURL}}assets/dummy.css">
15+
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
1616

1717
{{content-for "head-footer"}}
1818
{{content-for "test-head-footer"}}
@@ -21,12 +21,11 @@
2121
{{content-for "body"}}
2222
{{content-for "test-body"}}
2323

24-
<script src="testem.js" integrity=""></script>
25-
<script src="assets/vendor.js"></script>
26-
<script src="assets/test-support.js"></script>
27-
<script src="assets/dummy.js"></script>
28-
<script src="assets/tests.js"></script>
29-
<script src="assets/test-loader.js"></script>
24+
<script src="{{rootURL}}testem.js" integrity=""></script>
25+
<script src="{{rootURL}}assets/vendor.js"></script>
26+
<script src="{{rootURL}}assets/test-support.js"></script>
27+
<script src="{{rootURL}}assets/dummy.js"></script>
28+
<script src="{{rootURL}}assets/tests.js"></script>
3029

3130
{{content-for "body-footer"}}
3231
{{content-for "test-body-footer"}}

0 commit comments

Comments
 (0)