Skip to content

Commit

Permalink
Set up @ember/test-helpers and qunit-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
ijlee2 committed Sep 10, 2024
1 parent 16b2ad4 commit 0ba4f7e
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blueprints-v2-addon",
"version": "0.1.5",
"version": "0.2.0",
"private": true,
"description": "Blueprints for v2 addons",
"keywords": [
Expand Down Expand Up @@ -54,7 +54,7 @@
"eslint": "^8.57.0",
"git-diff-apply": "^6.0.5",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"engines": {
"node": "18.* || >= 20"
Expand Down
20 changes: 15 additions & 5 deletions src/blueprints/run-new/__addonLocation__/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
]
}
},
"directories": {
"doc": "doc",
"test": "tests"
},
"files": [
"addon-main.cjs",
"declarations",
Expand Down Expand Up @@ -65,6 +61,7 @@
"@babel/core": "^7.25.2",
"@babel/plugin-transform-typescript": "^7.25.2",
"@babel/runtime": "^7.25.6",
"@ember/test-helpers": "^4.0.4",
"@embroider/addon-dev": "^5.0.0",
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
Expand All @@ -87,11 +84,24 @@
"eslint": "^8.57.0",
"postcss": "^8.4.45",
"prettier": "^3.3.3",
"qunit-dom": "^3.2.0",
"rollup": "^4.21.2",
"rollup-plugin-postcss": "^4.0.2",
"stylelint": "^16.9.0",
"type-css-modules": "^1.0.13",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"peerDependencies": {
"@ember/test-helpers": "^3.2.0 || ^4.0.0",
"qunit-dom": "^3.2.0"
},
"peerDependenciesMeta": {
"@ember/test-helpers": {
"optional": true
},
"qunit-dom": {
"optional": true
}
},
"engines": {
"node": "18.* || >= 20"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import '@glint/environment-ember-loose';
import '@glint/environment-ember-template-imports';
import 'ember-source/types';
import 'qunit-dom';

import type EmbroiderCssModulesRegistry from 'embroider-css-modules/template-registry';

Expand Down
20 changes: 15 additions & 5 deletions tests/fixtures/run-new/output/packages/ui/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
]
}
},
"directories": {
"doc": "doc",
"test": "tests"
},
"files": [
"addon-main.cjs",
"declarations",
Expand Down Expand Up @@ -65,6 +61,7 @@
"@babel/core": "^7.25.2",
"@babel/plugin-transform-typescript": "^7.25.2",
"@babel/runtime": "^7.25.6",
"@ember/test-helpers": "^4.0.4",
"@embroider/addon-dev": "^5.0.0",
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
Expand All @@ -87,11 +84,24 @@
"eslint": "^8.57.0",
"postcss": "^8.4.45",
"prettier": "^3.3.3",
"qunit-dom": "^3.2.0",
"rollup": "^4.21.2",
"rollup-plugin-postcss": "^4.0.2",
"stylelint": "^16.9.0",
"type-css-modules": "^1.0.13",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"peerDependencies": {
"@ember/test-helpers": "^3.2.0 || ^4.0.0",
"qunit-dom": "^3.2.0"
},
"peerDependenciesMeta": {
"@ember/test-helpers": {
"optional": true
},
"qunit-dom": {
"optional": true
}
},
"engines": {
"node": "18.* || >= 20"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import '@glint/environment-ember-loose';
import '@glint/environment-ember-template-imports';
import 'ember-source/types';
import 'qunit-dom';

import type EmbroiderCssModulesRegistry from 'embroider-css-modules/template-registry';

Expand Down
4 changes: 2 additions & 2 deletions update-blueprints.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import gitDiffApply from 'git-diff-apply';
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';

const CURRENT_VERSION = '0.1.5';
const CURRENT_VERSION = '0.2.0';

async function updateBlueprints({ from, to }) {
const startTag = from;
Expand Down Expand Up @@ -37,7 +37,7 @@ yargs(hideBin(process.argv))
type: 'string',
})
.option('to', {
describe: "The end version (e.g. '0.5.0')",
describe: "The end version (e.g. '0.2.0')",
type: 'string',
})
.demandOption(['to']);
Expand Down

0 comments on commit 0ba4f7e

Please sign in to comment.