Skip to content

Commit

Permalink
Add v2-addon-template to test-scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Dec 20, 2022
1 parent 2149d92 commit d4e55dc
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/v2-addon-template/addon-main.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const { addonV1Shim } = require('@embroider/addon-shim');
module.exports = addonV1Shim(__dirname);
17 changes: 17 additions & 0 deletions packages/v2-addon-template/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "@ef4/v2-addon-template",
"version": "0.0.1",
"keywords": [
"ember-addon"
],
"dependencies": {
"@embroider/addon-shim": "^1.8.4"
},
"private": true,
"ember-addon": {
"type": "addon",
"version": 2,
"app-js": {},
"main": "addon-main.cjs"
}
}
1 change: 1 addition & 0 deletions test-scenarios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"license": "MIT",
"devDependencies": {
"@ef4/addon-template": "*",
"@ef4/v2-addon-template": "*",
"@ef4/app-template": "*",
"@embroider/macros": "npm:@embroider/macros@latest",
"@embroider/addon-shim": "npm:@embroider/addon-shim@latest",
Expand Down
8 changes: 8 additions & 0 deletions test-scenarios/scenarios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,12 @@ export function baseAddon(as: 'addon' | 'dummy-app' = 'addon') {
linkDevDeps: as === 'dummy-app',
});
}

export function baseV2Addon() {
return Project.fromDir(dirname(require.resolve('@ef4/v2-addon-template/package.json')), {
linkDeps: true,
linkDevDeps: true,
});
}

export const addonScenarios = supportMatrix(Scenarios.fromProject(() => baseAddon('dummy-app')));

0 comments on commit d4e55dc

Please sign in to comment.