Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropping support for older ember's #1246

Merged
merged 49 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
38235a5
trimming scenarios to currently supported LTSs
ef4 Aug 13, 2022
1260599
cleanup skip config
ef4 Aug 13, 2022
6990d1d
we still don't have working ember-engines with ember 4
ef4 Aug 13, 2022
e119e14
addon-template v3.26.0...v4.6.0
ef4 Aug 13, 2022
c866b2a
fix parallel support in sample transforms
ef4 Aug 13, 2022
565a8e0
app-template v3.26.0...v4.6.0
ef4 Aug 13, 2022
4fbab1d
router v3.28.4...v4.6.0
ef4 Aug 13, 2022
3868719
obey new lint rule
ef4 Aug 13, 2022
3847259
util v3.25.2...v4.6.0
ef4 Aug 13, 2022
cd1306b
making an action to hold repeated ci setup
ef4 Aug 15, 2022
2ab1bf3
create infra for porting rebuild tests to scenario-tester
ef4 Aug 16, 2022
10fc0f0
make eslint happy
ef4 Aug 16, 2022
d11cc8b
make name work with filtering
ef4 Aug 16, 2022
373ebb7
fix a missing path update
ef4 Aug 16, 2022
2b33ebe
help qunit's matching
ef4 Aug 16, 2022
a1585b9
keep a flat organization because qunit filter is giving trouble
ef4 Aug 16, 2022
d09e41f
Merge branch 'windows-dummy-apps' into drop-unuspported-embers
ef4 Aug 17, 2022
8a8491e
port more tests
ef4 Aug 17, 2022
722d0ed
port more tests
ef4 Aug 17, 2022
6273869
port more tests
ef4 Aug 17, 2022
4c71f40
port more tests
ef4 Aug 17, 2022
0110342
port more tests
ef4 Aug 17, 2022
09bda3b
Merge branch 'windows-consistent-path' into drop-unuspported-embers
ef4 Aug 17, 2022
ea82c69
more windows path normalization
ef4 Aug 18, 2022
955d6a6
adjusting paths in plugin-hints test setup
ef4 Aug 18, 2022
f21a87f
port more tests
ef4 Aug 19, 2022
5fe950e
porting more tests
ef4 Aug 19, 2022
1c94364
porting more tests
ef4 Aug 20, 2022
351c24e
fix lint error
ef4 Aug 21, 2022
f8b39c7
porting more tests
ef4 Aug 31, 2022
43c7024
Merge branch 'main' into drop-unuspported-embers
ef4 Aug 31, 2022
dda56c3
post-merge cleanup
ef4 Aug 31, 2022
cf7d35e
porting more tests
ef4 Sep 15, 2022
f310b7f
don't leak shared package caches with different app roots
ef4 Sep 15, 2022
e310bd3
removing older test infrastructure
ef4 Sep 26, 2022
f910c57
removing modules-api-polyfill support
ef4 Sep 26, 2022
a088a44
Merge branch 'main' into drop-unuspported-embers
ef4 Oct 18, 2022
10e8d70
add babel/core to app templates
ef4 Oct 19, 2022
cc6e740
Merge branch 'main' into drop-unuspported-embers
ef4 Oct 25, 2022
d4eeeaf
bugfix: template macros could have pre-moved appRoot in their package…
ef4 Oct 25, 2022
5e79312
windows adjustments
ef4 Oct 25, 2022
0485405
updating fixturify-project
ef4 Oct 26, 2022
cc4b663
windows path fix
ef4 Oct 27, 2022
6055d26
allow tilde paths on windows
ef4 Oct 27, 2022
cbb92c4
windows path fix
ef4 Oct 27, 2022
0137942
rebuilder shutdown
ef4 Oct 27, 2022
ee98ef2
dynamic_suites is not a thing anymore
ef4 Oct 27, 2022
736f357
clearing github action deprecations
ef4 Oct 27, 2022
6d0b345
clear github actions deprecations take 2
ef4 Oct 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Setup node and yarn
description: Setup node and install dependencies using yarn
inputs:
use_lockfile:
description: 'Whether to use the lockfile vs latest floating dependencies'
required: false
default: true
runs:
using: 'composite'
steps:
- uses: volta-cli/action@v3
env:
ACTIONS_STEP_DEBUG: true
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-v1
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install ${{ fromJSON('{"false":"--no-lockfile", "true":"--frozen-lockfile"}')[inputs.use_lockfile] }}
shell: bash
32 changes: 4 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v3
env:
ACTIONS_STEP_DEBUG: true
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-v1
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn --frozen-lockfile
- uses: ./.github/actions/setup
- name: lint
run: yarn lint
- id: set-matrix
working-directory: test-packages/support
run: echo "::set-output name=matrix::$(node ./suite-setup-util.js --matrix)"
run: echo "matrix=$(node ./suite-setup-util.js --matrix)" >> $GITHUB_OUTPUT

test:
needs: ['preflight']
Expand All @@ -58,20 +45,9 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v3
env:
ACTIONS_STEP_DEBUG: true
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
- uses: ./.github/actions/setup
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-v1
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn --no-lockfile
use_lockfile: false
- name: suite
run: ${{ matrix.command }}
working-directory: ${{ matrix.dir }}
4 changes: 4 additions & 0 deletions packages/addon-shim/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
/coverage/
!.*
.eslintcache
.lint-todo/

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
2 changes: 1 addition & 1 deletion packages/compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@
"@types/resolve": "^1.20.0",
"@types/semver": "^7.3.6",
"@types/strip-bom": "^4.0.1",
"broccoli-stew": "^3.0.0",
"ember-cli-htmlbars-3": "npm:ember-cli-htmlbars@3",
"ember-cli-htmlbars-inline-precompile": "^2.1.0",
"ember-engines": "^0.8.19",
"scenario-tester": "^2.0.1",
"typescript": "*"
},
"peerDependencies": {
Expand Down
8 changes: 0 additions & 8 deletions packages/compat/src/compat-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ import { tmpdir } from '@embroider/shared-internals';
import { Options as AdjustImportsOptions } from '@embroider/core/src/babel-plugin-adjust-imports';
import { getEmberExports } from '@embroider/core/src/load-ember-template-compiler';

import semver from 'semver';

interface TreeNames {
appJS: BroccoliNode;
htmlTree: BroccoliNode;
Expand Down Expand Up @@ -360,11 +358,6 @@ class CompatAppAdapter implements AppAdapter<TreeNames> {
activeAddons[addon.name] = addon.root;
}

let emberSource = this.activeAddonChildren().find(a => a.name === 'ember-source')!;
let emberNeedsModulesPolyfill = semver.satisfies(emberSource.version, '<3.27.0-beta.0', {
includePrerelease: true,
});

return {
activeAddons,
renameModules,
Expand All @@ -380,7 +373,6 @@ class CompatAppAdapter implements AppAdapter<TreeNames> {
// up as a side-effect of babel transpilation, and babel is subject to
// persistent caching.
externalsDir: join(tmpdir, 'embroider', 'externals'),
emberNeedsModulesPolyfill,
appRoot: this.root,
};
}
Expand Down
3 changes: 2 additions & 1 deletion packages/compat/src/moved-package-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { ensureSymlinkSync, readdirSync, realpathSync, lstatSync } from 'fs-extr
import { Memoize } from 'typescript-memoize';
import { PackageCache, Package, getOrCreate } from '@embroider/core';
import { MacrosConfig } from '@embroider/macros/src/node';
import os from 'os';

function assertNoTildeExpansion(source: string, target: string) {
if (target.includes('~')) {
if (target.includes('~') && os.platform() !== 'win32') {
throw new Error(
`The symbolic link: ${source}'s target: ${target} contained a bash expansion '~' which is not supported.`
);
Expand Down
105 changes: 0 additions & 105 deletions packages/compat/tests/addon-styles.test.ts

This file was deleted.

66 changes: 0 additions & 66 deletions packages/compat/tests/app-import.test.ts

This file was deleted.

6 changes: 3 additions & 3 deletions packages/compat/tests/audit.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { emberTemplateCompilerPath, Project } from '@embroider/test-support';
import { emberTemplateCompilerPath } from '@embroider/test-support';
import { Project } from 'scenario-tester';
import { AppMeta, NodeTemplateCompilerParams, throwOnWarnings } from '@embroider/core';
import merge from 'lodash/merge';
import fromPairs from 'lodash/fromPairs';
Expand All @@ -15,7 +16,7 @@ describe('audit', function () {
let app: Project;

async function audit() {
app.writeSync();
await app.write();
let audit = new Audit(app.baseDir);
return await audit.run();
}
Expand Down Expand Up @@ -48,7 +49,6 @@ describe('audit', function () {
activeAddons: {},
relocatedFiles: {},
resolvableExtensions,
emberNeedsModulesPolyfill: true,
appRoot: '.',
},
}),
Expand Down
Loading