Skip to content

Commit 688c41d

Browse files
committed
Upgrading to ember-2.9.x
1 parent 3ffe618 commit 688c41d

File tree

14 files changed

+90
-109
lines changed

14 files changed

+90
-109
lines changed

.editorconfig

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,8 @@ insert_final_newline = true
1313
indent_style = space
1414
indent_size = 2
1515

16-
[*.js]
17-
indent_style = space
18-
indent_size = 2
19-
2016
[*.hbs]
2117
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
3218

3319
[*.{diff,md}]
3420
trim_trailing_whitespace = false

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,5 @@
1313
/connect.lock
1414
/coverage/*
1515
/libpeerconnection.log
16-
npm-debug.log
16+
npm-debug.log*
1717
testem.log
18-
19-
# IDE
20-
.idea

.jshintrc

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ cache:
1010
- node_modules
1111

1212
env:
13-
- EMBER_TRY_SCENARIO=default
13+
# we recommend testing LTS's and latest stable release (bonus points to beta/canary)
1414
- EMBER_TRY_SCENARIO=ember-1.13
15+
- EMBER_TRY_SCENARIO=ember-lts-2.4
1516
- EMBER_TRY_SCENARIO=ember-release
1617
- EMBER_TRY_SCENARIO=ember-beta
1718
- EMBER_TRY_SCENARIO=ember-canary
@@ -24,7 +25,9 @@ matrix:
2425
before_install:
2526
- npm config set spin false
2627
- npm install -g bower
28+
- bower --version
2729
- npm install phantomjs-prebuilt
30+
- node_modules/phantomjs-prebuilt/bin/phantomjs --version
2831

2932
install:
3033
- npm install
@@ -33,4 +36,4 @@ install:
3336
script:
3437
# Usually, it's ok to finish the test scenario without reverting
3538
# to the addon's original dependency state, skipping "cleanup".
36-
- ember try $EMBER_TRY_SCENARIO test --skip-cleanup
39+
- ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016
3+
Copyright (c) 2017
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

bower.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{
22
"name": "ember-data-bootstrap3-forms",
33
"dependencies": {
4-
"ember": "~2.6.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.9.0",
5+
"ember-cli-shims": "0.1.3",
86
"bootstrap-sass": "^3.3.7",
97
"font-awesome": "^4.7.0"
108
}

config/deploy.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/* jshint node: true */
22

3-
module.exports = function (deployTarget) {
3+
module.exports = function(deployTarget) {
44
var ENV = {
5-
build: {},
5+
build: {
6+
environment: 'production'
7+
},
68
s3: {
79
bucket: 'ember-data-bootstrap3-forms.cybertooth.io',
810
filePattern: '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf,html}',
@@ -11,20 +13,10 @@ module.exports = function (deployTarget) {
1113
}
1214
};
1315

14-
if (deployTarget === 'development') {
15-
ENV.build.environment = 'development';
16-
// configure other plugins for development deploy target here
17-
}
18-
19-
if (deployTarget === 'staging') {
20-
ENV.build.environment = 'production';
21-
// configure other plugins for staging deploy target here
22-
}
23-
24-
if (deployTarget === 'production') {
25-
ENV.build.environment = 'production';
26-
// configure other plugins for production deploy target here
27-
}
16+
// if (deployTarget === 'production') {
17+
// ENV.build.environment = 'production';
18+
// configure other plugins for production deploy target here
19+
// }
2820

2921
// Note: if you need to build some configuration asynchronously, you can return
3022
// a promise that resolves with the ENV object instead of returning the

config/ember-try.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@
22
module.exports = {
33
scenarios: [
44
{
5-
name: 'default',
5+
name: 'ember-1.13',
66
bower: {
7-
dependencies: { }
7+
dependencies: {
8+
'ember': '~1.13.0'
9+
},
10+
resolutions: {
11+
'ember': '~1.13.0'
12+
}
813
}
914
},
1015
{
11-
name: 'ember-1.13',
16+
name: 'ember-lts-2.4',
1217
bower: {
1318
dependencies: {
14-
'ember': '~1.13.0'
19+
'ember': 'components/ember#lts-2-4'
1520
},
1621
resolutions: {
17-
'ember': '~1.13.0'
22+
'ember': 'lts-2-4'
1823
}
1924
}
2025
},

package.json

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-data-bootstrap3-forms",
3-
"version": "1.0.0-beta.6",
3+
"version": "0.0.0",
44
"description": "The default blueprint for ember-cli addons.",
55
"directories": {
66
"doc": "doc",
@@ -11,47 +11,46 @@
1111
"start": "ember server",
1212
"test": "ember try:each"
1313
},
14-
"repository": {
15-
"type": "git",
16-
"url": "https://github.com/cybertoothca/ember-data-bootstrap3-forms.git"
17-
},
14+
"repository": "",
1815
"engines": {
19-
"node": ">= 0.10.0"
16+
"node": ">= 0.12.0"
2017
},
2118
"author": "",
2219
"license": "MIT",
2320
"devDependencies": {
24-
"broccoli-asset-rev": "^2.4.2",
25-
"ember-ajax": "^2.0.1",
26-
"ember-cli": "2.6.3",
27-
"ember-cli-app-version": "^1.0.0",
28-
"ember-cli-bootstrap3-sass": "1.0.5",
29-
"ember-cli-dependency-checker": "^1.2.0",
30-
"ember-cli-deploy": "1.0.0-beta.1",
31-
"ember-cli-deploy-build": "0.1.1",
32-
"ember-cli-deploy-s3": "0.4.0",
21+
"broccoli-asset-rev": "^2.4.5",
22+
"ember-ajax": "^2.4.1",
23+
"ember-cli": "2.9.1",
24+
"ember-cli-app-version": "^2.0.0",
25+
"ember-cli-bootstrap3-sass": "1.0.6",
26+
"ember-cli-dependency-checker": "^1.3.0",
27+
"ember-cli-deploy": "1.0.1",
28+
"ember-cli-deploy-build": "1.1.0",
29+
"ember-cli-deploy-gzip": "1.0.0",
30+
"ember-cli-deploy-s3": "1.1.0",
3331
"ember-cli-font-awesome-sass": "1.0.4",
34-
"ember-cli-inject-live-reload": "^1.4.0",
35-
"ember-cli-jshint": "^1.0.0",
36-
"ember-cli-qunit": "^1.4.0",
32+
"ember-cli-htmlbars-inline-precompile": "^0.3.3",
33+
"ember-cli-inject-live-reload": "^1.4.1",
34+
"ember-cli-jshint": "^1.0.4",
35+
"ember-cli-qunit": "^3.0.1",
3736
"ember-cli-release": "^0.2.9",
38-
"ember-cli-sass": "5.6.0",
37+
"ember-cli-sass": "7.0.0",
3938
"ember-cli-sri": "^2.1.0",
39+
"ember-cli-test-loader": "^1.1.0",
4040
"ember-cli-uglify": "^1.2.0",
41-
"ember-data": "^2.6.0",
41+
"ember-data": "^2.9.0",
4242
"ember-disable-prototype-extensions": "^1.1.0",
4343
"ember-export-application-global": "^1.0.5",
4444
"ember-load-initializers": "^0.5.1",
4545
"ember-resolver": "^2.0.3",
46-
"loader.js": "^4.0.1"
46+
"loader.js": "^4.0.10"
4747
},
4848
"keywords": [
4949
"ember-addon"
5050
],
5151
"dependencies": {
52-
"ember-cli-babel": "^5.1.6",
53-
"ember-cli-htmlbars": "^1.0.3",
54-
"ember-cli-htmlbars-inline-precompile": "^0.3.1"
52+
"ember-cli-babel": "^5.1.7",
53+
"ember-cli-htmlbars": "^1.0.10"
5554
},
5655
"ember-addon": {
5756
"configPath": "tests/dummy/config"

tests/.jshintrc

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,16 @@
99

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

12-
<!-- TODO: hacked the google fonts here because of SASS @import issues in PhantomJs -->
13-
<link href="https://fonts.googleapis.com/css?family=Lato:400,700|Raleway:700" rel="stylesheet">
14-
<link rel="stylesheet" href="assets/vendor.css">
15-
<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">
1614

1715
{{content-for "head-footer"}}
1816
</head>
1917
<body>
2018
{{content-for "body"}}
2119

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

2523
{{content-for "body-footer"}}
2624
</body>

tests/dummy/app/router.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ 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

8-
Router.map(function() {
9+
Router.map(function () {
910
});
1011

1112
export default Router;

tests/dummy/config/environment.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
/* jshint node: true */
22

3-
module.exports = function(environment) {
3+
module.exports = function (environment) {
44
var ENV = {
55
modulePrefix: 'dummy',
66
environment: environment,
7-
baseURL: '/',
7+
rootURL: '/',
88
locationType: 'auto',
99
EmberENV: {
1010
FEATURES: {
1111
// Here you can enable experimental features on an ember canary build
1212
// e.g. 'with-controller': true
13+
},
14+
EXTEND_PROTOTYPES: {
15+
// Prevent Ember Data from overriding Date.parse.
16+
Date: false
1317
}
1418
},
1519

@@ -29,7 +33,6 @@ module.exports = function(environment) {
2933

3034
if (environment === 'test') {
3135
// Testem prefers this...
32-
ENV.baseURL = '/';
3336
ENV.locationType = 'none';
3437

3538
// keep test console output quieter

tests/index.html

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<title>Dummy Tests</title>
7-
<meta name="description" content="">
8-
<meta name="viewport" content="width=device-width, initial-scale=1">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<title>Dummy Tests</title>
7+
<meta name="description" content="">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
99

10-
{{content-for "head"}}
11-
{{content-for "test-head"}}
10+
{{content-for "head"}}
11+
{{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

17-
{{content-for "head-footer"}}
18-
{{content-for "test-head-footer"}}
19-
</head>
20-
<body>
21-
{{content-for "body"}}
22-
{{content-for "test-body"}}
17+
{{content-for "head-footer"}}
18+
{{content-for "test-head-footer"}}
19+
</head>
20+
<body>
21+
{{content-for "body"}}
22+
{{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="/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

31-
{{content-for "body-footer"}}
32-
{{content-for "test-body-footer"}}
33-
</body>
30+
{{content-for "body-footer"}}
31+
{{content-for "test-body-footer"}}
32+
</body>
3433
</html>

0 commit comments

Comments
 (0)