Skip to content

Commit a7ab05b

Browse files
committed
Update to ember-cli 3.12
1 parent c174520 commit a7ab05b

27 files changed

+5648
-1824
lines changed

.eslintignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
17+
# ember-try
18+
/.node_modules.ember-try/
19+
/bower.json.ember-try
20+
/package.json.ember-try

.eslintrc.js

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,51 @@
11
module.exports = {
22
root: true,
33
parserOptions: {
4-
ecmaVersion: 6,
5-
sourceType: 'module'
4+
ecmaVersion: 2018
65
},
7-
extends: 'eslint:recommended',
6+
plugins: [
7+
'ember'
8+
],
9+
extends: [
10+
'eslint:recommended',
11+
'plugin:ember/recommended'
12+
],
813
env: {
914
browser: true
1015
},
1116
rules: {
12-
}
17+
},
18+
overrides: [
19+
// node files
20+
{
21+
files: [
22+
'.eslintrc.js',
23+
'.template-lintrc.js',
24+
'ember-cli-build.js',
25+
'index.js',
26+
'testem.js',
27+
'blueprints/*/index.js',
28+
'config/**/*.js',
29+
'tests/dummy/config/**/*.js'
30+
],
31+
excludedFiles: [
32+
'addon/**',
33+
'addon-test-support/**',
34+
'app/**',
35+
'tests/dummy/app/**'
36+
],
37+
parserOptions: {
38+
sourceType: 'script'
39+
},
40+
env: {
41+
browser: false,
42+
node: true
43+
},
44+
plugins: ['node'],
45+
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
46+
// add your custom rules and overrides for node files here
47+
'ember/avoid-leaking-state-in-ember-objects': 'off'
48+
})
49+
}
50+
]
1351
};

.gitignore

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

33
# compiled output
4-
/dist
5-
/tmp
4+
/dist/
5+
/tmp/
66

77
# dependencies
8-
/node_modules
9-
/bower_components
8+
/bower_components/
9+
/node_modules/
1010

1111
# misc
12+
/.env*
13+
/.pnp*
1214
/.sass-cache
1315
/connect.lock
14-
/coverage/*
16+
/coverage/
1517
/libpeerconnection.log
16-
npm-debug.log*
17-
testem.log
18+
/npm-debug.log*
19+
/testem.log
20+
/yarn-error.log
21+
22+
# ember-try
23+
/.node_modules.ember-try/
24+
/bower.json.ember-try
25+
/package.json.ember-try

.npmignore

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
/bower_components
2-
/config/ember-try.js
3-
/dist
4-
/tests
5-
/tmp
1+
62
**/.gitkeep
73
.bowerrc
84
.editorconfig
95
.ember-cli
10-
.gitignore
116
.eslintrc.js
7+
.gitignore
128
.watchmanconfig
9+
/.env*
10+
/.eslintignore
11+
/.template-lintrc.js
12+
/.travis.yml
13+
/bower.json
14+
/bower_components/
15+
/config/ember-try.js
16+
/dist/
17+
/tests
18+
/tmp/
1319
circle.yml
1420
ember-cli-build.js
1521
testem.js

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
---
22
language: node_js
33
node_js:
4-
- "6"
4+
# we recommend testing addons with the same minimum supported node version as Ember CLI
5+
# so that your addon works for all apps
6+
- "8"
57

68
sudo: false
9+
dist: trusty
10+
11+
addons:
12+
chrome: stable
713

814
cache:
915
yarn: true
@@ -16,4 +22,4 @@ install:
1622
- yarn install --no-lockfile
1723

1824
script:
19-
- yarn test
25+
- yarn run test

CONTRIBUTING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
* `yarn run lint:js`
12+
* `yarn run lint:js -- --fix`
13+
14+
## Running tests
15+
16+
* `yarn run test` – Runs the test suite using mocha
17+
18+
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015
3+
Copyright (c) 2015-2019
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

config/environment.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-env node */
21
'use strict';
32

43
module.exports = function(/* environment, appConfig */) {

ember-cli-build.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
/* eslint-env node */
1+
'use strict';
2+
23
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
34

45
module.exports = function(defaults) {
5-
var app = new EmberAddon(defaults, {
6+
let app = new EmberAddon(defaults, {
67
// Add options here
78
});
89

index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
/*eslint-env node*/
2-
'use strict';
3-
41
var RSVP = require('rsvp');
52
var glob = require('glob');
63
var DeployPluginBase = require('ember-cli-deploy-plugin');
74
var path = require('path');
85

96
module.exports = {
10-
name: 'ember-cli-deploy-build',
7+
name: require('./package').name,
118

129
createDeployPlugin: function(options) {
1310
var DeployPlugin = DeployPluginBase.extend({

0 commit comments

Comments
 (0)