Skip to content

Commit 330dcdf

Browse files
committed
ember-cli-update to 2.17
1 parent c6c783c commit 330dcdf

22 files changed

+1233
-966
lines changed

.bowerrc

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

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@
1414
/coverage/*
1515
/libpeerconnection.log
1616
npm-debug.log*
17+
yarn-error.log
1718
testem.log
19+
20+
# ember-try
21+
.node_modules.ember-try/
22+
bower.json.ember-try
23+
package.json.ember-try

.jscsrc

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

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@
1414
bower.json
1515
ember-cli-build.js
1616
testem.js
17+
18+
# ember-try
19+
.node_modules.ember-try/
20+
bower.json.ember-try
21+
package.json.ember-try

.travis.yml

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

8+
sudo: false
69
dist: trusty
7-
sudo: required
810

911
addons:
10-
apt:
11-
sources:
12-
- google-chrome
13-
packages:
14-
- google-chrome-stable
12+
chrome: stable
1513

1614
cache:
1715
yarn: true
1816

17+
env:
18+
global:
19+
# See https://git.io/vdao3 for details.
20+
- JOBS=1
21+
22+
matrix:
23+
fast_finish: true
24+
1925
before_install:
20-
- "export DISPLAY=:99.0"
21-
- "sh -e /etc/init.d/xvfb start"
22-
- sleep 3
2326
- curl -o- -L https://yarnpkg.com/install.sh | bash
2427
- export PATH=$HOME/.yarn/bin:$PATH
25-
- yarn global add bower
2628

2729
install:
28-
- yarn install --no-lockfile
29-
- bower install
30+
- yarn install --non-interactive
3031

3132
script:
32-
# Usually, it's ok to finish the test scenario without reverting
33-
# to the addon's original dependency state, skipping "cleanup".
34-
- ember try:each --skip-cleanup
33+
- node_modules/.bin/ember try:each --skip-cleanup

addon/components/basic-dialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { oneWay } from '@ember/object/computed';
12
import { on } from '@ember/object/evented';
23
import Component from '@ember/component';
34
import $ from 'jquery';
@@ -16,7 +17,7 @@ export default Component.extend({
1617
wrapperClassNames: null,
1718

1819
modalService: service('modal-dialog'),
19-
destinationElementId: computed.oneWay('modalService.destinationElementId'),
20+
destinationElementId: oneWay('modalService.destinationElementId'),
2021

2122
variantWrapperClass: 'emd-static',
2223
containerClassNamesString: computed('containerClassNames.[]', 'targetAttachmentClass', 'attachmentClass', 'containerClass', function() {

addon/components/deprecated-tether-dialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { oneWay } from '@ember/object/computed';
12
import $ from 'jquery';
23
import { on } from '@ember/object/evented';
34
import { computed } from '@ember/object';
@@ -19,7 +20,7 @@ export default BasicDialog.extend({
1920
);
2021
},
2122
modalService: service('modal-dialog'),
22-
destinationElementId: computed.oneWay('modalService.destinationElementId'),
23+
destinationElementId: oneWay('modalService.destinationElementId'),
2324

2425
// onClose - set this from templates
2526
close: computed('onClose', {

addon/components/modal-dialog.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { oneWay, readOnly } from '@ember/object/computed';
12
import Component from '@ember/component';
23
import { dasherize } from '@ember/string';
34
import { computed } from '@ember/object';
@@ -29,7 +30,7 @@ export default Component.extend({
2930
tagName: '',
3031
layout,
3132
modalService: service('modal-dialog'),
32-
destinationElementId: computed.oneWay('modalService.destinationElementId'),
33+
destinationElementId: oneWay('modalService.destinationElementId'),
3334
modalDialogComponentName: computed('renderInPlace', 'tetherTarget', 'animatable', 'hasLiquidWormhole', 'hasLiquidTether', function(){
3435
let tetherTarget = this.get('tetherTarget');
3536
let hasLiquidTether = this.get('hasLiquidTether');
@@ -56,8 +57,8 @@ export default Component.extend({
5657
return 'ember-modal-dialog/-basic-dialog';
5758
}),
5859
animatable: null,
59-
hasLiquidWormhole: computed.readOnly('modalService.hasLiquidWormhole'),
60-
hasLiquidTether: computed.readOnly('modalService.hasLiquidTether'),
60+
hasLiquidWormhole: readOnly('modalService.hasLiquidWormhole'),
61+
hasLiquidTether: readOnly('modalService.hasLiquidTether'),
6162

6263
didReceiveAttrs() {
6364
this._super(...arguments);
@@ -146,7 +147,7 @@ export default Component.extend({
146147
clickOutsideToClose: false,
147148
renderInPlace: false,
148149
tetherTarget: null,
149-
stack: computed.oneWay('elementId'), // pass a `stack` string to set a "stack" to be passed to liquid-wormhole / liquid-tether
150+
stack: oneWay('elementId'), // pass a `stack` string to set a "stack" to be passed to liquid-wormhole / liquid-tether
150151
value: 0, // pass a `value` to set a "value" to be passed to liquid-wormhole / liquid-tether
151152
target: computed({ // element, css selector, or view instance
152153
get() {

bower.json

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

config/ember-try.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-env node */
12
module.exports = {
3+
useYarn: true,
24
useVersionCompatibility: true
35
};

0 commit comments

Comments
 (0)