Skip to content

Commit

Permalink
Set up @ember/test-helpers and qunit-dom (#49)
Browse files Browse the repository at this point in the history
* chore: Removed the directories field (unused)

* feature: Set up @ember/test-helpers and qunit-dom

* chore: Updated fixtures

* chore: Updated CURRENT_VERSION

* chore: Ran update-blueprints-v2-addon

* chore: Added changeset

---------

Co-authored-by: ijlee2 <ijlee2@users.noreply.github.com>
  • Loading branch information
ijlee2 and ijlee2 authored Sep 10, 2024
1 parent b79de17 commit 5436eaf
Show file tree
Hide file tree
Showing 19 changed files with 105 additions and 33 deletions.
6 changes: 6 additions & 0 deletions .changeset/kind-lamps-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"create-v2-addon-repo": minor
"blueprints-v2-addon": minor
---

Set up @ember/test-helpers and qunit-dom
2 changes: 1 addition & 1 deletion packages/blueprints-v2-addon/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
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,12 +84,25 @@
"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"
},
"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
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,12 +84,25 @@
"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"
},
"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 packages/blueprints-v2-addon/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
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
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,12 +84,25 @@
"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"
},
"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
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,12 +84,25 @@
"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"
},
"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
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
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
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,12 +84,25 @@
"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"
},
"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
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,12 +84,25 @@
"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"
},
"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
Loading

0 comments on commit 5436eaf

Please sign in to comment.