Skip to content

Commit d3b190e

Browse files
authored
Merge pull request #394 from ef4/roll-package-lock
updating test suite dependencies and minimum tested versions
2 parents d305986 + a8f38f5 commit d3b190e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+40750
-35844
lines changed

.github/workflows/nodejs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
5151
restore-keys: |
5252
${{ runner.os }}-node-
53-
- run: npm install
53+
- run: npm install --no-package-lock
5454
- name: test
5555
run: ${{ matrix.command }}
5656
working-directory: test-scenarios

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
- BUGFIX: fix compatibility with babel 7.26+ by @rwjblue
1414
- ENHANCEMENT: support auto-importing dependencies via `@embroider/macros` `importSync` by @simonihmig
1515
- BUGFIX: fix accidental duplication of webpack config
16+
- BREAKING: minimum supported Node is 12 (because 10 hit EOL on 2021-04-30)
17+
- BREAKING: minimum supported Ember and EmberCLI versions are both 3.4
1618

1719
### 1.11.3
1820

docs/upgrade-guide-2.0.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- apps should confirm that their deployment strategy includes all files produced under `dist` (not just the traditional expected ones like `dist/assets/your-app.js` and `dist/assets/vendor.js`)
99
- addons that upgrade to ember-auto-import >= 2 will only work in apps that have ember-auto-import >= 2, so they should do their own semver major releases when they upgrade
1010
- our `alias` option has changed slightly to align better with how it works in webpack
11+
- we dropped support for node < 12 and ember-source < 3.4 and ember-cli < 3.4.
1112

1213
# Details
1314

@@ -21,9 +22,9 @@ One of the changes in webpack 5 is the removal of automatic node polyfills, but
2122

2223
Apps are required to depend on webpack. This gives the app control over the exact webpack version in use, and it makes it possible for the app to import directly from webpack for access to features like `DefinePlugin` that it may want to put into the webpack config.
2324

24-
Addons that use ember-auto-import 2.0 should *not* put webpack into `dependencies` (the app's version will be used instead). They will need it in `devDependencies` in order to build their own dummy app.
25+
Addons that use ember-auto-import 2.0 should _not_ put webpack into `dependencies` (the app's version will be used instead). They will need it in `devDependencies` in order to build their own dummy app.
2526

26-
ember-auto-import will not list webpack in `peerDependencies`, because the ember-auto-import package does double duty -- it needs webpack when used by an app, but does *not* need webpack when used by an addon, and we don't want addons to accidentally install webpack.
27+
ember-auto-import will not list webpack in `peerDependencies`, because the ember-auto-import package does double duty -- it needs webpack when used by an app, but does _not_ need webpack when used by an addon, and we don't want addons to accidentally install webpack.
2728

2829
### Embroider v2 Addon Format support
2930

package-lock.json

+40,235-35,529
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"scripts": {
44
"test": "cd test-scenarios && npm run test",
55
"watch": "cd packages/ember-auto-import && npm run compile -- --watch",
6-
"prepare": "cd packages/ember-auto-import && npm run compile"
6+
"prepare": "cd packages/ember-auto-import && npm run compile",
7+
"nom": "rm -rf node_modules packages/*/node_modules test-scenarios/node_modules types/*/node_modules"
78
},
89
"workspaces": [
910
"packages/*",

packages/addon-template/.editorconfig

-1
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

packages/addon-template/.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/

packages/addon-template/.eslintrc.js

+19-18
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,54 @@
1+
'use strict';
2+
13
module.exports = {
24
root: true,
35
parser: 'babel-eslint',
46
parserOptions: {
57
ecmaVersion: 2018,
6-
sourceType: 'module'
8+
sourceType: 'module',
9+
ecmaFeatures: {
10+
legacyDecorators: true,
11+
},
712
},
8-
plugins: [
9-
'ember'
10-
],
13+
plugins: ['ember'],
1114
extends: [
1215
'eslint:recommended',
13-
'plugin:ember/recommended'
16+
'plugin:ember/recommended',
17+
'plugin:prettier/recommended',
1418
],
1519
env: {
16-
browser: true
17-
},
18-
rules: {
19-
'ember/no-jquery': 'error'
20+
browser: true,
2021
},
22+
rules: {},
2123
overrides: [
2224
// node files
2325
{
2426
files: [
2527
'.eslintrc.js',
28+
'.prettierrc.js',
2629
'.template-lintrc.js',
2730
'ember-cli-build.js',
2831
'index.js',
2932
'testem.js',
3033
'blueprints/*/index.js',
3134
'config/**/*.js',
32-
'tests/dummy/config/**/*.js'
35+
'tests/dummy/config/**/*.js',
3336
],
3437
excludedFiles: [
3538
'addon/**',
3639
'addon-test-support/**',
3740
'app/**',
38-
'tests/dummy/app/**'
41+
'tests/dummy/app/**',
3942
],
4043
parserOptions: {
41-
sourceType: 'script'
44+
sourceType: 'script',
4245
},
4346
env: {
4447
browser: false,
45-
node: true
48+
node: true,
4649
},
4750
plugins: ['node'],
48-
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
49-
// add your custom rules and overrides for node files here
50-
})
51-
}
52-
]
51+
extends: ['plugin:node/recommended'],
52+
},
53+
],
5354
};

packages/addon-template/.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

packages/addon-template/.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
/.editorconfig
1111
/.ember-cli
1212
/.env*
13+
/.eslintcache
1314
/.eslintignore
1415
/.eslintrc.js
1516
/.git/
1617
/.gitignore
18+
/.prettierignore
19+
/.prettierrc.js
1720
/.template-lintrc.js
1821
/.travis.yml
1922
/.watchmanconfig
+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
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
singleQuote: true,
5+
};
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

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

packages/addon-template/.travis.yml

+17-15
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ 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
9-
dist: trusty
8+
dist: xenial
109

1110
addons:
1211
chrome: stable
@@ -26,35 +25,38 @@ branches:
2625
- /^v\d+\.\d+\.\d+/
2726

2827
jobs:
29-
fail_fast: true
28+
fast_finish: true
3029
allow_failures:
3130
- env: EMBER_TRY_SCENARIO=ember-canary
3231

3332
include:
3433
# runs linting and tests with current locked deps
35-
36-
- stage: "Tests"
37-
name: "Tests"
34+
- stage: 'Tests'
35+
name: 'Tests'
3836
install:
3937
- yarn install --non-interactive
4038
script:
41-
- yarn lint:hbs
42-
- yarn lint:js
43-
- yarn test
39+
- npm run lint
40+
- npm run test:ember
4441

45-
- name: "Floating Dependencies"
42+
- stage: 'Additional Tests'
43+
name: 'Floating Dependencies'
44+
install:
45+
- npm install --no-package-lock
4646
script:
47-
- yarn test
47+
- npm run test:ember
4848

4949
# we recommend new addons test the current and previous LTS
5050
# as well as latest stable release (bonus points to beta/canary)
51-
- stage: "Additional Tests"
52-
env: EMBER_TRY_SCENARIO=ember-lts-3.4
53-
- env: EMBER_TRY_SCENARIO=ember-lts-3.8
51+
- env: EMBER_TRY_SCENARIO=ember-lts-3.16
52+
- env: EMBER_TRY_SCENARIO=ember-lts-3.20
5453
- env: EMBER_TRY_SCENARIO=ember-release
5554
- env: EMBER_TRY_SCENARIO=ember-beta
5655
- env: EMBER_TRY_SCENARIO=ember-canary
5756
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
57+
- env: EMBER_TRY_SCENARIO=ember-classic
58+
- env: EMBER_TRY_SCENARIO=embroider-safe
59+
- env: EMBER_TRY_SCENARIO=embroider-optimized
5860

5961
before_install:
6062
- curl -o- -L https://yarnpkg.com/install.sh | bash

packages/addon-template/CONTRIBUTING.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,24 @@
22

33
## Installation
44

5-
* `git clone <repository-url>`
6-
* `cd @ef4/addon-template`
7-
* `yarn install`
5+
- `git clone <repository-url>`
6+
- `cd @ef4/addon-template`
7+
- `yarn install`
88

99
## Linting
1010

11-
* `yarn lint:hbs`
12-
* `yarn lint:js`
13-
* `yarn lint:js --fix`
11+
- `npm run lint`
12+
- `npm run lint:fix`
1413

1514
## Running tests
1615

17-
* `ember test` – Runs the test suite on the current Ember version
18-
* `ember test --server` – Runs the test suite in "watch mode"
19-
* `ember try:each` – Runs the test suite against multiple Ember versions
16+
- `ember test` – Runs the test suite on the current Ember version
17+
- `ember test --server` – Runs the test suite in "watch mode"
18+
- `ember try:each` – Runs the test suite against multiple Ember versions
2019

2120
## Running the dummy application
2221

23-
* `ember serve`
24-
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
22+
- `ember serve`
23+
- Visit the dummy application at [http://localhost:4200](http://localhost:4200).
2524

26-
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
25+
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).

packages/addon-template/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
Compatibility
88
------------------------------------------------------------------------------
99

10-
* Ember.js v3.4 or above
10+
* Ember.js v3.16 or above
1111
* Ember CLI v2.13 or above
12-
* Node.js v8 or above
12+
* Node.js v10 or above
1313

1414

1515
Installation

0 commit comments

Comments
 (0)