Skip to content

Commit 0e04eb3

Browse files
authored
Merge pull request #178 from buschtoens/chore/upgrades
chore: upgrade ember-cli & dependencies
2 parents a0bae6d + 14c37b9 commit 0e04eb3

File tree

15 files changed

+2719
-887
lines changed

15 files changed

+2719
-887
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88

99
# dependencies
1010
/bower_components/
11+
/node_modules/
1112

1213
# misc
1314
/coverage/
15+
!.*
1416

1517
# ember-try
1618
/.node_modules.ember-try/
19+
/bower.json.ember-try
20+
/package.json.ember-try

.eslintrc.js

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,56 @@ module.exports = {
22
root: true,
33
parserOptions: {
44
ecmaVersion: 2017,
5-
sourceType: 'module'
5+
sourceType: 'module',
66
},
7-
plugins: [
8-
'ember',
9-
'prettier'
10-
],
7+
plugins: ['ember', 'prettier'],
118
extends: [
129
'eslint:recommended',
1310
'plugin:ember/recommended',
14-
'plugin:prettier/recommended'
11+
'plugin:prettier/recommended',
1512
],
1613
env: {
17-
browser: true
14+
browser: true,
1815
},
1916
rules: {
20-
'comma-dangle': ['error', 'always-multiline']
17+
'comma-dangle': ['error', 'always-multiline'],
2118
},
2219
overrides: [
2320
// node files
2421
{
2522
files: [
23+
'.eslintrc.js',
24+
'.template-lintrc.js',
25+
'.prettierrc.js',
2626
'ember-cli-build.js',
2727
'index.js',
2828
'testem.js',
2929
'blueprints/*/index.js',
3030
'config/**/*.js',
31-
'tests/dummy/config/**/*.js'
31+
'tests/dummy/config/**/*.js',
3232
],
3333
excludedFiles: [
3434
'addon/**',
3535
'addon-test-support/**',
3636
'app/**',
37-
'tests/dummy/app/**'
37+
'tests/dummy/app/**',
3838
],
3939
parserOptions: {
4040
sourceType: 'script',
41-
ecmaVersion: 2015
41+
ecmaVersion: 2015,
4242
},
4343
env: {
4444
browser: false,
45-
node: true
45+
node: true,
4646
},
4747
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-
]
48+
rules: Object.assign(
49+
{},
50+
require('eslint-plugin-node').configs.recommended.rules,
51+
{
52+
// add your custom rules and overrides for node files here
53+
}
54+
),
55+
},
56+
],
5357
};

.npmignore

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
1-
/bower_components
1+
# compiled output
2+
/dist/
3+
/tmp/
4+
5+
# dependencies
6+
/bower_components/
7+
8+
# misc
9+
/.bowerrc
10+
/.editorconfig
11+
/.ember-cli
12+
/.eslintignore
13+
/.eslintrc.js
14+
/.gitignore
15+
/.template-lintrc.js
16+
/.travis.yml
17+
/.watchmanconfig
18+
/bower.json
219
/config/ember-try.js
3-
/dist
4-
/tests
5-
/tmp
6-
**/.gitkeep
7-
.bowerrc
8-
.editorconfig
9-
.ember-cli
10-
.eslintrc.js
11-
.gitignore
12-
.watchmanconfig
13-
.travis.yml
14-
bower.json
15-
ember-cli-build.js
16-
testem.js
17-
yarn.lock
20+
/CONTRIBUTING.md
21+
/ember-cli-build.js
22+
/testem.js
23+
/tests/
24+
/yarn.lock
25+
.gitkeep
1826

1927
# ember-try
20-
.node_modules.ember-try/
21-
bower.json.ember-try
22-
package.json.ember-try
28+
/.node_modules.ember-try/
29+
/bower.json.ember-try
30+
/package.json.ember-try

.template-lintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
extends: 'recommended',
5+
};

.travis.yml

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ 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-
- "6"
6+
- '6'
77

88
sudo: required
99
dist: trusty
@@ -18,21 +18,37 @@ env:
1818
global:
1919
# See https://git.io/vdao3 for details.
2020
- JOBS=1
21-
matrix:
21+
22+
branches:
23+
only:
24+
- master
25+
# npm version tags
26+
- /^v\d+\.\d+\.\d+/
27+
28+
jobs:
29+
fail_fast: true
30+
allow_failures:
31+
- env: EMBER_TRY_SCENARIO=ember-canary
32+
33+
include:
34+
# runs linting and tests with current locked deps
35+
36+
- stage: 'Tests'
37+
name: 'Tests'
38+
script:
39+
- yarn run lint:hbs
40+
- yarn run lint:js
41+
- yarn test
42+
2243
# we recommend new addons test the current and previous LTS
2344
# as well as latest stable release (bonus points to beta/canary)
24-
- EMBER_TRY_SCENARIO=ember-lts-2.12
25-
- EMBER_TRY_SCENARIO=ember-lts-2.16
26-
- EMBER_TRY_SCENARIO=ember-lts-2.18
27-
- EMBER_TRY_SCENARIO=ember-release
28-
- EMBER_TRY_SCENARIO=ember-beta
29-
- EMBER_TRY_SCENARIO=ember-canary
30-
- EMBER_TRY_SCENARIO=ember-default
31-
32-
matrix:
33-
fast_finish: true
34-
allow_failures:
45+
- stage: 'Additional Tests'
46+
env: EMBER_TRY_SCENARIO=ember-lts-2.16
47+
- env: EMBER_TRY_SCENARIO=ember-lts-2.18
48+
- env: EMBER_TRY_SCENARIO=ember-release
49+
- env: EMBER_TRY_SCENARIO=ember-beta
3550
- env: EMBER_TRY_SCENARIO=ember-canary
51+
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
3652

3753
before_install:
3854
- curl -o- -L https://yarnpkg.com/install.sh | bash
@@ -42,7 +58,4 @@ install:
4258
- yarn install --no-lockfile --non-interactive
4359

4460
script:
45-
- npm run lint:js
46-
# Usually, it's ok to finish the test scenario without reverting
47-
# to the addon's original dependency state, skipping "cleanup".
48-
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
61+
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# How To Contribute
2+
3+
## Installation
4+
5+
* `git clone <repository-url>`
6+
* `cd my-addon`
7+
* `npm install`
8+
9+
## Linting
10+
11+
* `npm run lint:hbs`
12+
* `npm run lint:js`
13+
* `npm run lint:js -- --fix`
14+
15+
## Running tests
16+
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
20+
21+
## Running the dummy application
22+
23+
* `ember serve`
24+
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
25+
26+
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).

blueprints/ember-apollo-client/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ module.exports = {
55
normalizeEntityName() {},
66

77
/*
8-
* This is necessary until this is fixed
9-
* https://github.com/ember-cli/ember-fetch/issues/98
10-
*/
8+
* This is necessary until this is fixed
9+
* https://github.com/ember-cli/ember-fetch/issues/98
10+
*/
1111
afterInstall() {
1212
return this.addPackagesToProject([
1313
{ name: 'ember-fetch', target: '^5.1.1' },

config/ember-try.js

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,30 @@ module.exports = function() {
1111
return {
1212
useYarn: true,
1313
scenarios: [
14-
{
15-
name: 'ember-lts-2.12',
16-
npm: {
17-
devDependencies: {
18-
'ember-source': '~2.12.0',
19-
},
20-
},
21-
},
2214
{
2315
name: 'ember-lts-2.16',
16+
env: {
17+
EMBER_OPTIONAL_FEATURES: JSON.stringify({
18+
'jquery-integration': true,
19+
}),
20+
},
2421
npm: {
2522
devDependencies: {
23+
'@ember/jquery': '^0.5.1',
2624
'ember-source': '~2.16.0',
2725
},
2826
},
2927
},
3028
{
3129
name: 'ember-lts-2.18',
30+
env: {
31+
EMBER_OPTIONAL_FEATURES: JSON.stringify({
32+
'jquery-integration': true,
33+
}),
34+
},
3235
npm: {
3336
devDependencies: {
37+
'@ember/jquery': '^0.5.1',
3438
'ember-source': '~2.18.0',
3539
},
3640
},
@@ -60,9 +64,16 @@ module.exports = function() {
6064
},
6165
},
6266
{
63-
name: 'ember-default',
67+
name: 'ember-default-with-jquery',
68+
env: {
69+
EMBER_OPTIONAL_FEATURES: JSON.stringify({
70+
'jquery-integration': true,
71+
}),
72+
},
6473
npm: {
65-
devDependencies: {},
74+
devDependencies: {
75+
'@ember/jquery': '^0.5.1',
76+
},
6677
},
6778
},
6879
],

index.js

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

33
module.exports = {
4-
name: 'ember-apollo-client',
4+
name: require('./package').name,
55

66
options: {
77
autoImport: {
@@ -24,7 +24,7 @@ module.exports = {
2424
setupPreprocessorRegistry(type, registry) {
2525
if (type === 'parent') {
2626
registry.add('js', {
27-
name: 'ember-apollo-client',
27+
name: require('./package').name,
2828
ext: 'graphql',
2929
toTree(tree) {
3030
const GraphQLFilter = require('broccoli-graphql-filter');

0 commit comments

Comments
 (0)