Skip to content

Commit 9e1272e

Browse files
authored
Merge pull request #242 from elwayman02/3.24-blueprint
Update to 3.24 Blueprint
2 parents 32c6def + 99eb33d commit 9e1272e

25 files changed

+509
-238
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# misc
1414
/coverage/
1515
!.*
16+
.eslintcache
1617

1718
# ember-try
1819
/.node_modules.ember-try/

.eslintrc.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -7,48 +7,48 @@ module.exports = {
77
ecmaVersion: 2018,
88
sourceType: 'module',
99
ecmaFeatures: {
10-
legacyDecorators: true
11-
}
10+
legacyDecorators: true,
11+
},
1212
},
13-
plugins: [
14-
'ember'
15-
],
13+
plugins: ['ember'],
1614
extends: [
1715
'eslint:recommended',
18-
'plugin:ember/recommended'
16+
'plugin:ember/recommended',
17+
'plugin:prettier/recommended',
1918
],
2019
env: {
21-
browser: true
20+
browser: true,
2221
},
2322
rules: {},
2423
overrides: [
2524
// node files
2625
{
2726
files: [
2827
'.eslintrc.js',
28+
'.prettierrc.js',
2929
'.template-lintrc.js',
3030
'ember-cli-build.js',
3131
'index.js',
3232
'testem.js',
3333
'blueprints/*/index.js',
3434
'config/**/*.js',
35-
'tests/dummy/config/**/*.js'
35+
'tests/dummy/config/**/*.js',
3636
],
3737
excludedFiles: [
3838
'addon/**',
3939
'addon-test-support/**',
4040
'app/**',
41-
'tests/dummy/app/**'
41+
'tests/dummy/app/**',
4242
],
4343
parserOptions: {
44-
sourceType: 'script'
44+
sourceType: 'script',
4545
},
4646
env: {
4747
browser: false,
48-
node: true
48+
node: true,
4949
},
5050
plugins: ['node'],
51-
extends: ['plugin:node/recommended']
52-
}
53-
]
51+
extends: ['plugin:node/recommended'],
52+
},
53+
],
5454
};

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/.env*
1313
/.pnp*
1414
/.sass-cache
15+
/.eslintcache
1516
/connect.lock
1617
/coverage/
1718
/libpeerconnection.log

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/.editorconfig
1111
/.ember-cli
1212
/.env*
13+
/.eslintcache
1314
/.eslintignore
1415
/.eslintrc.js
1516
/.git/

.prettierignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# unconventional js
2+
/blueprints/*/files/
3+
/vendor/
4+
5+
# compiled output
6+
/dist/
7+
/tmp/
8+
9+
# dependencies
10+
/bower_components/
11+
/node_modules/
12+
13+
# misc
14+
/coverage/
15+
!.*
16+
.eslintcache
17+
18+
# ember-try
19+
/.node_modules.ember-try/
20+
/bower.json.ember-try
21+
/package.json.ember-try

.prettierrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
singleQuote: true,
5+
};

.template-lintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

33
module.exports = {
4-
extends: 'octane'
4+
extends: 'octane',
55
};

addon/modifiers/did-intersect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Modifier from 'ember-modifier';
22
import { inject as service } from '@ember/service';
33
import { assert } from '@ember/debug';
44

5-
export const DEFAULT_OBSERVER_OPTIONS = {}
5+
export const DEFAULT_OBSERVER_OPTIONS = {};
66

77
export default class DidIntersectModifier extends Modifier {
88
@service('ember-scroll-modifiers@observer-manager') observerManager;

addon/services/observer-manager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default class ObserverManagerService extends Service {
55
_admin = new IntersectionObserverAdmin();
66

77
observe(element, options) {
8-
this._admin.observe(element, options)
8+
this._admin.observe(element, options);
99
}
1010

1111
unobserve(element, options) {

config/deploy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-env node */
22
'use strict';
33

4-
module.exports = function(deployTarget) {
4+
module.exports = function (deployTarget) {
55
let ENV = {
6-
build: {}
6+
build: {},
77
// include other plugin configuration that applies to all deploy targets here
88
};
99

config/ember-try.js

+28-28
Original file line numberDiff line numberDiff line change
@@ -2,78 +2,78 @@
22

33
const getChannelURL = require('ember-source-channel-url');
44

5-
module.exports = async function() {
5+
module.exports = async function () {
66
return {
77
useYarn: true,
88
scenarios: [
99
{
1010
name: 'ember-lts-3.16',
1111
npm: {
1212
devDependencies: {
13-
'ember-source': '~3.16.0'
14-
}
15-
}
13+
'ember-source': '~3.16.0',
14+
},
15+
},
1616
},
1717
{
1818
name: 'ember-lts-3.20',
1919
npm: {
2020
devDependencies: {
21-
'ember-source': '~3.20.5'
22-
}
23-
}
21+
'ember-source': '~3.20.5',
22+
},
23+
},
2424
},
2525
{
2626
name: 'ember-release',
2727
npm: {
2828
devDependencies: {
29-
'ember-source': await getChannelURL('release')
30-
}
31-
}
29+
'ember-source': await getChannelURL('release'),
30+
},
31+
},
3232
},
3333
{
3434
name: 'ember-beta',
3535
npm: {
3636
devDependencies: {
37-
'ember-source': await getChannelURL('beta')
38-
}
39-
}
37+
'ember-source': await getChannelURL('beta'),
38+
},
39+
},
4040
},
4141
{
4242
name: 'ember-canary',
4343
npm: {
4444
devDependencies: {
45-
'ember-source': await getChannelURL('canary')
46-
}
47-
}
45+
'ember-source': await getChannelURL('canary'),
46+
},
47+
},
4848
},
4949
{
5050
name: 'ember-default-with-jquery',
5151
env: {
5252
EMBER_OPTIONAL_FEATURES: JSON.stringify({
53-
'jquery-integration': true
54-
})
53+
'jquery-integration': true,
54+
}),
5555
},
5656
npm: {
5757
devDependencies: {
58-
'@ember/jquery': '^1.1.0'
59-
}
60-
}
58+
'@ember/jquery': '^1.1.0',
59+
},
60+
},
6161
},
6262
{
6363
name: 'ember-classic',
6464
env: {
6565
EMBER_OPTIONAL_FEATURES: JSON.stringify({
6666
'application-template-wrapper': true,
6767
'default-async-observers': false,
68-
'template-only-glimmer-components': false
69-
})
68+
'template-only-glimmer-components': false,
69+
}),
7070
},
7171
npm: {
7272
ember: {
73-
edition: 'classic'
74-
}
75-
}
76-
}
77-
]
73+
edition: 'classic',
74+
},
75+
},
76+
},
77+
],
7878
};
7979
};

config/environment.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

3-
module.exports = function(/* environment, appConfig */) {
4-
return { };
3+
module.exports = function (/* environment, appConfig */) {
4+
return {};
55
};

ember-cli-build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
44

5-
module.exports = function(defaults) {
5+
module.exports = function (defaults) {
66
let app = new EmberAddon(defaults, {
77
// Add options here
88
});

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

33
module.exports = {
4-
name: require('./package').name
4+
name: require('./package').name,
55
};

package.json

+14-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
},
1818
"scripts": {
1919
"build": "ember build --environment=production",
20-
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
20+
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel 'lint:!(fix)'",
21+
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
2122
"lint:hbs": "ember-template-lint .",
22-
"lint:js": "eslint .",
23+
"lint:hbs:fix": "ember-template-lint . --fix",
24+
"lint:js": "eslint . --cache",
25+
"lint:js:fix": "eslint . --fix",
2326
"start": "ember serve",
24-
"test": "npm-run-all lint:* test:*",
27+
"test": "npm-run-all lint test:*",
2528
"test:ember": "ember test",
2629
"test:ember-compatibility": "ember try:each"
2730
},
@@ -35,11 +38,12 @@
3538
},
3639
"devDependencies": {
3740
"@ember/optional-features": "^2.0.0",
41+
"@ember/test-helpers": "^2.1.4",
3842
"@glimmer/component": "^1.0.3",
3943
"@glimmer/tracking": "^1.0.3",
4044
"babel-eslint": "^10.1.0",
4145
"broccoli-asset-rev": "^3.0.0",
42-
"ember-cli": "~3.23.0",
46+
"ember-cli": "~3.24.0",
4347
"ember-cli-addon-docs": "^0.9.0",
4448
"ember-cli-addon-docs-yuidoc": "^1.0.0",
4549
"ember-cli-dependency-checker": "^3.2.0",
@@ -55,18 +59,23 @@
5559
"ember-export-application-global": "^2.0.1",
5660
"ember-load-initializers": "^2.1.2",
5761
"ember-maybe-import-regenerator": "^0.1.6",
58-
"ember-qunit": "^4.6.0",
62+
"ember-page-title": "^6.0.3",
63+
"ember-qunit": "^5.1.1",
5964
"ember-resolver": "^8.0.2",
6065
"ember-sinon-qunit": "^5.0.0",
6166
"ember-source": "~3.24.0",
6267
"ember-source-channel-url": "^3.0.0",
6368
"ember-template-lint": "^2.15.0",
6469
"ember-try": "^1.4.0",
6570
"eslint": "^7.17.0",
71+
"eslint-config-prettier": "^7.1.0",
6672
"eslint-plugin-ember": "^10.1.1",
6773
"eslint-plugin-node": "^11.1.0",
74+
"eslint-plugin-prettier": "^3.3.1",
6875
"loader.js": "^4.7.0",
6976
"npm-run-all": "^4.1.5",
77+
"prettier": "^2.2.1",
78+
"qunit": "^2.13.0",
7079
"qunit-dom": "^1.6.0",
7180
"release-it": "^14.2.2",
7281
"release-it-lerna-changelog": "^3.1.0",

testem.js

+6-10
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
module.exports = {
44
test_page: 'tests/index.html?hidepassed',
55
disable_watching: true,
6-
launch_in_ci: [
7-
'Chrome'
8-
],
9-
launch_in_dev: [
10-
'Chrome'
11-
],
6+
launch_in_ci: ['Chrome'],
7+
launch_in_dev: ['Chrome'],
128
browser_start_timeout: 120,
139
browser_args: {
1410
Chrome: {
@@ -20,8 +16,8 @@ module.exports = {
2016
'--disable-software-rasterizer',
2117
'--mute-audio',
2218
'--remote-debugging-port=0',
23-
'--window-size=1440,900'
24-
].filter(Boolean)
25-
}
26-
}
19+
'--window-size=1440,900',
20+
].filter(Boolean),
21+
},
22+
},
2723
};

tests/dummy/app/router.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export default class Router extends AddonDocsRouter {
66
rootURL = config.rootURL;
77
}
88

9-
Router.map(function() {
10-
docsRoute(this, function() {
9+
Router.map(function () {
10+
docsRoute(this, function () {
1111
this.route('did-intersect');
1212
});
1313

tests/dummy/config/ember-cli-update.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"packages": [
44
{
55
"name": "ember-cli",
6-
"version": "3.21.2",
6+
"version": "3.24.0",
77
"blueprints": [
88
{
99
"name": "addon",

0 commit comments

Comments
 (0)