discourse/app/assets/javascripts/truth-helpers/config/ember-try.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

120 lines
2.7 KiB
JavaScript
Raw Normal View History

"use strict";
const getChannelURL = require("ember-source-channel-url");
2022-07-18 17:14:37 +08:00
const { embroiderSafe, embroiderOptimized } = require("@embroider/test-setup");
module.exports = async function () {
return {
useYarn: true,
scenarios: [
{
2022-07-18 17:14:37 +08:00
name: "ember-lts-3.24",
npm: {
devDependencies: {
2022-07-18 17:14:37 +08:00
"ember-source": "~3.24.3",
},
},
},
{
2022-07-18 17:14:37 +08:00
name: "ember-lts-3.28",
npm: {
devDependencies: {
2022-07-18 17:14:37 +08:00
"ember-source": "~3.28.0",
},
},
},
{
name: "ember-lts-3.20",
npm: {
devDependencies: {
"ember-source": "~3.20.5",
},
},
},
{
name: "ember-lts-3.24",
npm: {
devDependencies: {
"ember-source": "~3.24.3",
},
},
},
{
name: "ember-lts-3.28",
npm: {
devDependencies: {
"ember-source": "~3.28.0",
},
},
},
{
name: "ember-release",
npm: {
devDependencies: {
"ember-source": await getChannelURL("release"),
},
},
},
{
name: "ember-beta",
npm: {
devDependencies: {
"ember-source": await getChannelURL("beta"),
},
},
},
{
name: "ember-canary",
npm: {
devDependencies: {
"ember-source": await getChannelURL("canary"),
},
},
},
// The default `.travis.yml` runs this scenario via `yarn 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",
},
},
},
{
name: "ember-classic",
env: {
EMBER_OPTIONAL_FEATURES: JSON.stringify({
"application-template-wrapper": true,
"default-async-observers": false,
"template-only-glimmer-components": false,
}),
},
npm: {
2022-07-18 17:14:37 +08:00
devDependencies: {
"ember-source": "~3.28.0",
},
ember: {
edition: "classic",
},
},
},
2022-07-18 17:14:37 +08:00
embroiderSafe(),
embroiderOptimized(),
],
};
};