Skip to content

Commit a258398

Browse files
committed
Merge branch 'Dhaulagiri-br-updates'
2 parents 93e6bfa + 4e72490 commit a258398

21 files changed

+870
-1021
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 --ignore-engines
29-
- bower install
30+
- yarn install --no-lockfile --ignore-engines --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,5 +1,6 @@
11
import Component from '@ember/component';
22
import { computed } from '@ember/object';
3+
import { oneWay } from '@ember/object/computed';
34
import { isEmpty } from '@ember/utils';
45
import { inject as service } from '@ember/service';
56
import layout from '../templates/components/basic-dialog';
@@ -13,7 +14,7 @@ export default Component.extend({
1314
wrapperClassNames: null,
1415

1516
modalService: service('modal-dialog'),
16-
destinationElementId: computed.oneWay('modalService.destinationElementId'),
17+
destinationElementId: oneWay('modalService.destinationElementId'),
1718

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

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';
@@ -13,7 +14,7 @@ export default Component.extend({
1314
tagName: '',
1415
layout,
1516
modalService: service('modal-dialog'),
16-
destinationElementId: computed.oneWay('modalService.destinationElementId'),
17+
destinationElementId: oneWay('modalService.destinationElementId'),
1718
modalDialogComponentName: computed('renderInPlace', 'tetherTarget', 'animatable', 'hasLiquidWormhole', 'hasLiquidTether', function(){
1819
let tetherTarget = this.get('tetherTarget');
1920
let hasLiquidTether = this.get('hasLiquidTether');
@@ -33,8 +34,8 @@ export default Component.extend({
3334
return 'ember-modal-dialog/-basic-dialog';
3435
}),
3536
animatable: null,
36-
hasLiquidWormhole: computed.readOnly('modalService.hasLiquidWormhole'),
37-
hasLiquidTether: computed.readOnly('modalService.hasLiquidTether'),
37+
hasLiquidWormhole: readOnly('modalService.hasLiquidWormhole'),
38+
hasLiquidTether: readOnly('modalService.hasLiquidTether'),
3839

3940
didReceiveAttrs() {
4041
this._super(...arguments);
@@ -71,7 +72,7 @@ export default Component.extend({
7172
clickOutsideToClose: false,
7273
renderInPlace: false,
7374
tetherTarget: null,
74-
stack: computed.oneWay('elementId'), // pass a `stack` string to set a "stack" to be passed to liquid-wormhole / liquid-tether
75+
stack: oneWay('elementId'), // pass a `stack` string to set a "stack" to be passed to liquid-wormhole / liquid-tether
7576
value: 0, // pass a `value` to set a "value" to be passed to liquid-wormhole / liquid-tether
7677

7778
targetAttachment: 'middle center',

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
};

ember-cli-build.js

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

46
module.exports = function(defaults) {
5-
var app = new EmberAddon(defaults, {
7+
let app = new EmberAddon(defaults, {
68
snippetSearchPaths: ['tests/dummy/app']
79
});
810

0 commit comments

Comments
 (0)