config/ember-try.js in bootstrap-bookingsync-sass-1.0.5 vs config/ember-try.js in bootstrap-bookingsync-sass-2.0.0
- old
+ new
@@ -1,36 +1,83 @@
-/*jshint node:true*/
-module.exports = {
- scenarios: [
- {
- name: 'default',
- dependencies: { }
- },
- {
- name: 'ember-release',
- dependencies: {
- 'ember': 'components/ember#release'
- },
- resolutions: {
- 'ember': 'release'
- }
- },
- {
- name: 'ember-beta',
- dependencies: {
- 'ember': 'components/ember#beta'
- },
- resolutions: {
- 'ember': 'beta'
- }
- },
- {
- name: 'ember-canary',
- dependencies: {
- 'ember': 'components/ember#canary'
- },
- resolutions: {
- 'ember': 'canary'
- }
- }
- ]
+'use strict';
+
+const getChannelURL = require('ember-source-channel-url');
+
+module.exports = function() {
+ return Promise.all([
+ getChannelURL('release'),
+ getChannelURL('beta'),
+ getChannelURL('canary')
+ ]).then((urls) => {
+ return {
+ scenarios: [
+ {
+ name: 'ember-lts-2.18',
+ env: {
+ EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true })
+ },
+ npm: {
+ devDependencies: {
+ '@ember/jquery': '^0.5.1',
+ 'ember-source': '~2.18.0'
+ }
+ }
+ },
+ {
+ name: 'ember-lts-3.4',
+ npm: {
+ devDependencies: {
+ 'ember-source': '~3.4.0'
+ }
+ }
+ },
+ {
+ name: 'ember-release',
+ npm: {
+ devDependencies: {
+ 'ember-source': urls[0]
+ }
+ }
+ },
+ {
+ name: 'ember-beta',
+ npm: {
+ devDependencies: {
+ 'ember-source': urls[1]
+ }
+ }
+ },
+ {
+ name: 'ember-canary',
+ npm: {
+ devDependencies: {
+ 'ember-source': urls[2]
+ }
+ }
+ },
+ // The default `.travis.yml` runs this scenario via `npm test`,
+ // not via `ember try`. It's still included here so that running
+ // `ember try:each` manually or from a customized CI config will run it
+ // along with all the other scenarios.
+ {
+ name: 'ember-default',
+ npm: {
+ devDependencies: {}
+ }
+ },
+ {
+ name: 'ember-default-with-jquery',
+ env: {
+ EMBER_OPTIONAL_FEATURES: JSON.stringify({
+ 'jquery-integration': true
+ })
+ },
+ npm: {
+ devDependencies: {
+ '@ember/jquery': '^0.5.1'
+ }
+ }
+ }
+ ]
+ };
+ });
};