Skip to content

Commit 995caac

Browse files
authored
⬆️ v3.12.1...v3.16.2 (#99)
* ⬆️ v3.12.1...v3.16.2 * ♻️ Codemods
1 parent c31362f commit 995caac

File tree

17 files changed

+575
-445
lines changed

17 files changed

+575
-445
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
root = true
66

7-
87
[*]
98
end_of_line = lf
109
charset = utf-8

.eslintrc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1+
'use strict';
2+
13
module.exports = {
24
root: true,
5+
parser: 'babel-eslint',
36
parserOptions: {
47
ecmaVersion: 2018,
58
sourceType: 'module',
9+
ecmaFeatures: {
10+
legacyDecorators: true,
11+
},
612
},
713
plugins: ['ember'],
814
extends: ['eslint:recommended', 'plugin:ember/recommended'],
915
env: {
1016
browser: true,
1117
},
12-
rules: {},
18+
rules: {
19+
'ember/no-jquery': 'error',
20+
},
1321
overrides: [
1422
// node files
1523
{

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/.env*
1313
/.eslintignore
1414
/.eslintrc.js
15+
/.git/
1516
/.gitignore
1617
/.template-lintrc.js
1718
/.travis.yml

.template-lintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
module.exports = {
4-
extends: 'recommended',
4+
extends: 'octane',
55
rules: {
66
'self-closing-void-elements': false,
77
},

.travis.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ language: node_js
33
node_js:
44
# we recommend testing addons with the same minimum supported node version as Ember CLI
55
# so that your addon works for all apps
6-
- '8'
6+
- '10'
77

8-
sudo: false
98
dist: trusty
109

1110
addons:
@@ -27,40 +26,42 @@ branches:
2726
- /^v\d+\.\d+\.\d+/
2827

2928
jobs:
30-
fail_fast: true
29+
fast_finish: true
3130
allow_failures:
3231
- env: EMBER_TRY_SCENARIO=ember-canary
3332

3433
include:
3534
# runs linting and tests with current locked deps
36-
3735
- stage: 'Tests'
3836
name: 'Tests'
39-
install:
40-
- yarn install --non-interactive
4137
script:
4238
- yarn lint:hbs
4339
- yarn lint:js
4440
- yarn test
4541

46-
- name: 'Floating Dependencies'
42+
- stage: 'Additional Tests'
43+
name: 'Floating Dependencies'
44+
install:
45+
- yarn install --no-lockfile --non-interactive
4746
script:
4847
- yarn test
4948

5049
# we recommend new addons test the current and previous LTS
5150
# as well as latest stable release (bonus points to beta/canary)
52-
- stage: 'Additional Tests'
53-
env: EMBER_TRY_SCENARIO=ember-lts-3.4
54-
- env: EMBER_TRY_SCENARIO=ember-lts-3.8
51+
- env: EMBER_TRY_SCENARIO=ember-lts-3.12
52+
- env: EMBER_TRY_SCENARIO=ember-lts-3.16
5553
- env: EMBER_TRY_SCENARIO=ember-release
5654
- env: EMBER_TRY_SCENARIO=ember-beta
5755
- env: EMBER_TRY_SCENARIO=ember-canary
5856
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
57+
- env: EMBER_TRY_SCENARIO=ember-classic
5958

6059
before_install:
61-
- npm config set spin false
62-
- npm install -g npm@4
63-
- npm --version
60+
- curl -o- -L https://yarnpkg.com/install.sh | bash
61+
- export PATH=$HOME/.yarn/bin:$PATH
62+
63+
install:
64+
- yarn install --non-interactive
6465

6566
script:
6667
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ a _vanilla_ port of Gruber's original works.
1717

1818
## Compatibility
1919

20-
- Ember.js v3.4 or above
20+
- Ember.js v3.12 or above
2121
- Ember CLI v2.13 or above
22-
- Node.js v8 or above
22+
- Node.js v10 or above
2323

2424
## Installation
2525

config/ember-try.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ module.exports = async function () {
77
useYarn: true,
88
scenarios: [
99
{
10-
name: 'ember-lts-3.4',
10+
name: 'ember-lts-3.12',
1111
npm: {
1212
devDependencies: {
13-
'ember-source': '~3.4.0',
13+
'ember-source': '~3.12.0',
1414
},
1515
},
1616
},
1717
{
18-
name: 'ember-lts-3.8',
18+
name: 'ember-lts-3.16',
1919
npm: {
2020
devDependencies: {
21-
'ember-source': '~3.8.0',
21+
'ember-source': '~3.16.0',
2222
},
2323
},
2424
},
@@ -69,6 +69,21 @@ module.exports = async function () {
6969
},
7070
},
7171
},
72+
{
73+
name: 'ember-classic',
74+
env: {
75+
EMBER_OPTIONAL_FEATURES: JSON.stringify({
76+
'application-template-wrapper': true,
77+
'default-async-observers': false,
78+
'template-only-glimmer-components': false,
79+
}),
80+
},
81+
npm: {
82+
ember: {
83+
edition: 'classic',
84+
},
85+
},
86+
},
7287
],
7388
};
7489
};

package.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"test": "tests"
3434
},
3535
"scripts": {
36-
"build": "ember build",
36+
"build": "ember build --environment=production",
3737
"ember-cli-update": "ember-cli-update",
3838
"ember-cli-update:codemods": "ember-cli-update --run-codemods",
3939
"lint:hbs": "ember-template-lint .",
@@ -48,38 +48,41 @@
4848
"dependencies": {
4949
"ember-auto-import": "^1.5.3",
5050
"ember-cli-babel": "^7.26.11",
51-
"ember-cli-htmlbars": "^3.0.1",
51+
"ember-cli-htmlbars": "^4.2.2",
5252
"lodash.startswith": "^4.2.1",
5353
"showdown": "^1.9.1"
5454
},
5555
"devDependencies": {
5656
"@ember/jquery": "^1.0.0",
5757
"@ember/optional-features": "^2.0.0",
58+
"@glimmer/component": "^1.0.0",
59+
"@glimmer/tracking": "^1.0.0",
60+
"babel-eslint": "^10.0.3",
5861
"bootstrap": "^3.4.1",
5962
"bootstrap-sass": "^3.4.3",
6063
"bootswatch": "^3.4.1",
6164
"broccoli-asset-rev": "^3.0.0",
62-
"ember-cli": "~3.12.1",
63-
"ember-cli-dependency-checker": "^3.1.0",
65+
"ember-auto-import": "^1.5.3",
66+
"ember-cli": "~3.16.2",
67+
"ember-cli-dependency-checker": "^3.2.0",
6468
"ember-cli-deploy": "^1.0.2",
6569
"ember-cli-deploy-build": "^2.0.0",
6670
"ember-cli-deploy-gzip": "^2.0.1",
6771
"ember-cli-deploy-s3": "^3.1.0",
6872
"ember-cli-eslint": "^5.1.0",
69-
"ember-cli-htmlbars-inline-precompile": "^3.0.2",
7073
"ember-cli-inject-live-reload": "^2.1.0",
7174
"ember-cli-sass": "^10.0.0",
7275
"ember-cli-sri": "^2.1.1",
7376
"ember-cli-template-lint": "^2.0.2",
7477
"ember-cli-uglify": "^3.0.0",
7578
"ember-cli-update": "0.54",
7679
"ember-disable-prototype-extensions": "^1.1.3",
77-
"ember-export-application-global": "^2.0.0",
80+
"ember-export-application-global": "^2.0.1",
7881
"ember-load-initializers": "^2.1.2",
7982
"ember-maybe-import-regenerator": "^0.1.6",
8083
"ember-qunit": "^4.6.0",
8184
"ember-resolver": "^8.0.3",
82-
"ember-source": "~3.12.0",
85+
"ember-source": "~3.16.0",
8386
"ember-source-channel-url": "^3.0.0",
8487
"ember-try": "^2.0.0",
8588
"eslint-plugin-ember": "^8.14.0",
@@ -91,7 +94,10 @@
9194
"sass": "~1.48.0"
9295
},
9396
"engines": {
94-
"node": "8.* || >= 10.*"
97+
"node": "10.* || >= 12"
98+
},
99+
"ember": {
100+
"edition": "octane"
95101
},
96102
"ember-addon": {
97103
"configPath": "tests/dummy/config"

testem.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
'use strict';
2+
13
module.exports = {
24
test_page: 'tests/index.html?hidepassed',
35
disable_watching: true,
46
launch_in_ci: ['Chrome'],
57
launch_in_dev: ['Chrome'],
8+
browser_start_timeout: 120,
69
browser_args: {
710
Chrome: {
811
ci: [

tests/dummy/app/app.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import Application from '@ember/application';
2-
import Resolver from './resolver';
31
import loadInitializers from 'ember-load-initializers';
2+
import Resolver from 'ember-resolver';
3+
4+
import Application from '@ember/application';
5+
46
import config from './config/environment';
57

6-
const App = Application.extend({
7-
modulePrefix: config.modulePrefix,
8-
podModulePrefix: config.podModulePrefix,
9-
Resolver,
10-
});
8+
export default class App extends Application {
9+
modulePrefix = config.modulePrefix;
10+
podModulePrefix = config.podModulePrefix;
11+
Resolver = Resolver;
12+
}
1113

1214
loadInitializers(App, config.modulePrefix);
13-
14-
export default App;

0 commit comments

Comments
 (0)