Skip to content

Commit 1d51aef

Browse files
committed
Merge remote-tracking branch 'origin/master' into feat/config-function
2 parents 04d1681 + 922eb18 commit 1d51aef

16 files changed

Lines changed: 3510 additions & 4037 deletions

File tree

.ember-cli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"disableAnalytics": false,
99

1010
/**
11-
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
12-
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
11+
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
12+
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
1313
*/
1414
"isTypeScriptProject": false
1515
}

.eslintrc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ module.exports = {
4949
browser: false,
5050
node: true,
5151
},
52-
plugins: ['node'],
53-
extends: ['plugin:node/recommended'],
52+
extends: ['plugin:n/recommended'],
5453
},
5554
{
5655
// test files

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ jobs:
1616
test:
1717
name: "Tests"
1818
runs-on: ubuntu-latest
19+
timeout-minutes: 10
1920

2021
steps:
2122
- uses: actions/checkout@v3
2223
- name: Install Node
2324
uses: actions/setup-node@v3
2425
with:
25-
node-version: 14.x # ember-cli-addon-docs requires Node.js 14
26+
node-version: 14.x
2627
cache: yarn
2728

2829
- name: Install Dependencies
@@ -37,6 +38,7 @@ jobs:
3738
floating:
3839
name: "Floating Dependencies"
3940
runs-on: ubuntu-latest
41+
timeout-minutes: 10
4042

4143
steps:
4244
- uses: actions/checkout@v3
@@ -73,14 +75,15 @@ jobs:
7375
name: ${{ matrix.try-scenario }}
7476
runs-on: ubuntu-latest
7577
needs: "test"
78+
timeout-minutes: 10
7679

7780
strategy:
7881
fail-fast: false
7982
matrix:
8083
try-scenario:
81-
- ember-lts-3.20
82-
- ember-lts-3.24
8384
- ember-lts-3.28
85+
- ember-lts-4.4
86+
- ember-lts-4.8
8487
- fastboot-1.2
8588
- fastboot-2.0
8689
- ember-release

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
2-
32
# compiled output
43
/dist/
54
/tmp/
@@ -23,9 +22,10 @@
2322
# ember-try
2423
/.node_modules.ember-try/
2524
/bower.json.ember-try
25+
/npm-shrinkwrap.json.ember-try
2626
/package.json.ember-try
27-
28-
.DS_Store
27+
/package-lock.json.ember-try
28+
/yarn.lock.ember-try
2929

3030
# broccoli-debug
3131
/DEBUG/

.prettierrc.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
'use strict';
22

33
module.exports = {
4-
singleQuote: true,
4+
overrides: [
5+
{
6+
files: '*.{js,ts}',
7+
options: {
8+
singleQuote: true,
9+
},
10+
},
11+
],
512
};

addon-test-support/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function setup(hooks) {
1616
}
1717

1818
/**
19-
* TODO
19+
* @todo
2020
*
2121
* @example
2222
* ```
@@ -32,7 +32,7 @@ export function setup(hooks) {
3232
* @param {Integer} [options.destroyAppInstanceInMs] whether to destroy the instance in the given number of ms. This is a failure mechanism to not wedge the Node process (See: https://github.com/ember-fastboot/fastboot/issues/90)
3333
* @param {ClientRequest} [options.request] Node's `ClientRequest` object is provided to the Ember application via the FastBoot service.
3434
* @param {ClientResponse} [options.response] Node's `ServerResponse` object is provided to the Ember application via the FastBoot service.
35-
* @returns {Promise<Result>} result
35+
* @return {Promise<Result>} result
3636
*/
3737
export async function fastboot(url, options = {}) {
3838
let response = await fetchFromEmberCli(url, options);
@@ -47,7 +47,7 @@ export async function fastboot(url, options = {}) {
4747
}
4848

4949
/**
50-
* TODO
50+
* @todo
5151
*
5252
* @example
5353
* ```
@@ -63,7 +63,7 @@ export async function fastboot(url, options = {}) {
6363
* @param {Integer} [options.destroyAppInstanceInMs] whether to destroy the instance in the given number of ms. This is a failure mechanism to not wedge the Node process (See: https://github.com/ember-fastboot/fastboot/issues/90)
6464
* @param {ClientRequest} [options.request] Node's `ClientRequest` object is provided to the Ember application via the FastBoot service.
6565
* @param {ClientResponse} [options.response] Node's `ServerResponse` object is provided to the Ember application via the FastBoot service.
66-
* @returns {Promise<Result>} result
66+
* @return {Promise<Result>} result
6767
*/
6868
export async function visit(url, options = {}) {
6969
let result = await fastboot(url, options);

config/environment.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

ember-cli-build.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
44

55
module.exports = function (defaults) {
6-
let app = new EmberAddon(defaults, {
6+
const app = new EmberAddon(defaults, {
77
// Add options here
8+
'@embroider/macros': {
9+
setConfig: {
10+
'@ember-data/store': {
11+
polyfillUUID: true,
12+
},
13+
},
14+
},
815
});
916

1017
app.import('vendor/tailwind.min.css');

package.json

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
},
1616
"scripts": {
1717
"build": "ember build --environment=production",
18-
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
19-
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
18+
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
19+
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
2020
"lint:hbs": "ember-template-lint .",
2121
"lint:hbs:fix": "ember-template-lint . --fix",
2222
"lint:js": "eslint . --cache",
2323
"lint:js:fix": "eslint . --fix",
2424
"start": "ember serve",
25-
"test": "npm-run-all lint test:*",
25+
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
2626
"test:ember": "ember test",
2727
"test:ember-compatibility": "ember try:each",
2828
"test:separate-build": "yarn build --environment test && yarn test:ember --path=dist --filter 'Fastboot | basic'"
2929
},
3030
"dependencies": {
3131
"body-parser": "^1.20.0",
32-
"ember-auto-import": "^2.4.1",
32+
"ember-auto-import": "^2.6.1",
3333
"ember-cli-babel": "^7.26.11",
3434
"fastboot": "^3.0.3",
3535
"json-fn": "^1.1.1",
@@ -42,14 +42,16 @@
4242
"@babel/eslint-parser": "^7.17.0",
4343
"@babel/plugin-proposal-decorators": "^7.17.9",
4444
"@ember/optional-features": "^2.0.0",
45-
"@ember/test-helpers": "^2.7.0",
46-
"@embroider/test-setup": "^1.6.0",
45+
"@ember/string": "^3.0.1",
46+
"@ember/test-helpers": "^2.9.3",
47+
"@embroider/test-setup": "^2.1.1",
4748
"@glimmer/component": "^1.1.2",
4849
"@glimmer/tracking": "^1.1.2",
4950
"broccoli-asset-rev": "^3.0.0",
5051
"broccoli-plugin": "^4.0.7",
5152
"broccoli-stew": "^3.0.0",
52-
"ember-cli": "~4.3.0",
53+
"concurrently": "^7.6.0",
54+
"ember-cli": "~4.11.0",
5355
"ember-cli-addon-docs": "github:ember-learn/ember-cli-addon-docs#eb825bcc1e721dbebc73e5dbd98db2ebb3026dd3",
5456
"ember-cli-addon-docs-yuidoc": "^1.0.0",
5557
"ember-cli-dependency-checker": "^3.3.1",
@@ -59,41 +61,41 @@
5961
"ember-cli-deploy-git-ci": "^1.0.1",
6062
"ember-cli-fastboot": "^3.3.0",
6163
"ember-cli-head": "^2.0.0",
62-
"ember-cli-htmlbars": "^6.0.1",
64+
"ember-cli-htmlbars": "^6.2.0",
6365
"ember-cli-inject-live-reload": "^2.1.0",
6466
"ember-cli-mirage": "^3.0.0-alpha.3",
6567
"ember-cli-sri": "^2.1.1",
6668
"ember-cli-terser": "^4.0.2",
67-
"ember-data": "~4.3.0",
68-
"ember-disable-prototype-extensions": "^1.1.3",
69-
"ember-export-application-global": "^2.0.1",
69+
"ember-data": "~4.11.0",
7070
"ember-fetch": "^8.1.1",
7171
"ember-load-initializers": "^2.1.2",
72-
"ember-qunit": "^5.1.5",
73-
"ember-resolver": "^8.0.3",
74-
"ember-source": "~4.3.0",
72+
"ember-qunit": "^6.2.0",
73+
"ember-resolver": "^10.0.0",
74+
"ember-source": "~4.11.0",
7575
"ember-source-channel-url": "^3.0.0",
76-
"ember-template-lint": "^4.6.0",
76+
"ember-template-lint": "^5.6.0",
7777
"ember-try": "^2.0.0",
7878
"eslint": "^8.15.0",
79-
"eslint-config-prettier": "^8.5.0",
80-
"eslint-plugin-ember": "^10.6.0",
81-
"eslint-plugin-node": "^11.1.0",
82-
"eslint-plugin-prettier": "^4.0.0",
83-
"eslint-plugin-qunit": "^7.2.0",
79+
"eslint-config-prettier": "^8.6.0",
80+
"eslint-plugin-ember": "^11.4.7",
81+
"eslint-plugin-n": "^15.6.1",
82+
"eslint-plugin-prettier": "^4.2.1",
83+
"eslint-plugin-qunit": "^7.3.4",
8484
"loader.js": "^4.7.0",
8585
"miragejs": "^0.1.43",
8686
"najax": "^1.0.7",
87-
"npm-run-all": "^4.1.5",
8887
"pretender": "~3.4.7",
89-
"prettier": "^2.6.2",
90-
"qunit": "^2.18.2",
88+
"prettier": "^2.8.4",
89+
"qunit": "^2.19.4",
9190
"qunit-dom": "^2.0.0",
9291
"semver": "^7.3.7",
93-
"webpack": "^5.72.0"
92+
"webpack": "^5.75.0"
93+
},
94+
"peerDependencies": {
95+
"ember-source": "^3.28.0 || ^4.0.0 || ^5.0.0"
9496
},
9597
"engines": {
96-
"node": "12.* || 14.* || >= 16"
98+
"node": "12.* || 14.* || 16.* || >= 18"
9799
},
98100
"ember": {
99101
"edition": "octane"
@@ -104,5 +106,8 @@
104106
"ember-cli-fastboot"
105107
],
106108
"after": []
107-
}
109+
},
110+
"fastbootDependencies": [
111+
"crypto"
112+
]
108113
}

tests/dummy/config/addon-docs.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* eslint-env node */
2+
'use strict';
3+
4+
const AddonDocsConfig = require('ember-cli-addon-docs/lib/config');
5+
6+
module.exports = class extends AddonDocsConfig {
7+
// See https://ember-learn.github.io/ember-cli-addon-docs/docs/deploying
8+
// for details on configuration you can override here.
9+
};

0 commit comments

Comments
 (0)