Skip to content

Commit

Permalink
Avoid bower usage in config/ember-try.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bmac authored and rwjblue committed Jan 14, 2018
1 parent 5977fc2 commit cdeeaec
Showing 1 changed file with 56 additions and 116 deletions.
172 changes: 56 additions & 116 deletions config/ember-try.js
Original file line number Diff line number Diff line change
@@ -1,122 +1,62 @@
/* eslint-env node */
module.exports = {
scenarios: [
{
name: 'default',
bower: { },
npm: { }
},
{
name: 'ember-1-13',
bower: {
dependencies: {
'ember': '1.13.13'
/* eslint-env node, es6 */

const getChannelURL = require('ember-source-channel-url');

module.exports = function() {
return Promise.all([
getChannelURL('release'),
getChannelURL('beta'),
getChannelURL('canary')
]).then((urls) => {
return {
useYarn: true,
scenarios: [
{
name: 'default',
bower: { },
npm: { }
},
resolutions: {
'ember': '1.13.13'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
name: 'ember-2-4',
bower: {
dependencies: {
'ember': '~2.4.0'
},
resolutions: {
'ember': '~2.4.0'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
name: 'ember-2-8',
bower: {
dependencies: {
'ember': '~2.8.0'
},
resolutions: {
'ember': '~2.8.0'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
name: 'ember-release',
bower: {
dependencies: {
'ember': 'components/ember#release'
{
name: 'ember-lts-2.12',
npm: {
devDependencies: {
'ember-source': '~2.12.0'
}
}
},
resolutions: {
'ember': 'release'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
name: 'ember-beta',
bower: {
dependencies: {
'ember': 'components/ember#beta'
{
name: 'ember-lts-2.16',
npm: {
devDependencies: {
'ember-source': '~2.16.0'
}
}
},
resolutions: {
'ember': 'beta'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
name: 'ember-canary',
bower: {
dependencies: {
'ember': 'components/ember#canary'
{
name: 'ember-release',
npm: {
devDependencies: {
'ember-source': urls[0]
}
}
},
resolutions: {
'ember': 'canary'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
name: 'ember-alpha',
bower: {
dependencies: {
'ember': 'alpha'
{
name: 'ember-beta',
npm: {
devDependencies: {
'ember-source': urls[1]
}
}
},
resolutions: {
'ember': 'alpha'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
}
]
{
name: 'ember-canary',
npm: {
devDependencies: {
'ember-source': urls[2]
}
}
}
]
};
});
};

0 comments on commit cdeeaec

Please sign in to comment.