-
Notifications
You must be signed in to change notification settings - Fork 41
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
Disable forced test selector stripping in addon templates #116
Conversation
let host = this._findHost(); | ||
this._assignOptions(host); | ||
|
||
// we can't use the setupPreprocessorRegistry() hook as it is called to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, this will be fixed in ember-cli/ember-cli#7059.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohhh... so that's what that PR is for 😄
if (this._stripTestSelectors) { | ||
let StripTestSelectorsTransform = require('./strip-test-selectors'); | ||
|
||
registry.add('htmlbars-ast-plugin', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this could be made a bit simpler/easy to read:
let transform = 'transform-test-selector-params-to-hash-pairs';
if (this._stripTestSelectors) {
transform = 'strip-test-selectors';
}
registry.add('htmlbars-ast-plugin', {
name: transform,
plugin: require(`./${transform}`),
baseDir() { return __dirname; }
});
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, seems like an unrelated refactoring though :)
Thanks @Turbo87!!! 💯 |
… to 1.0.5 (#257) Bumps [ember-cli-htmlbars-inline-precompile](https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile) from 1.0.4 to 1.0.5. <details> <summary>Changelog</summary> *Sourced from [ember-cli-htmlbars-inline-precompile's changelog](https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile/blob/master/CHANGELOG.md).* > ## v1.0.5 (2018-10-12) > > #### 🚀 Enhancement > * [#115](https://github-redirect.dependabot.com/ember-cli/ember-cli-htmlbars-inline-precompile/pull/115) Update `ember-cli-babel` peer dependency to support Babel 7 too. ([[**Turbo87**](https://github.com/Turbo87)](https://github.com/Turbo87)) > > #### Committers: 1 > - Tobias Bieniek ([Turbo87](https://github.com/Turbo87)) </details> <details> <summary>Commits</summary> - [`f8f9976`](ember-cli/ember-cli-htmlbars-inline-precompile@f8f9976) v1.0.5 - [`df072d7`](ember-cli/ember-cli-htmlbars-inline-precompile@df072d7) Merge pull request [#117](https://github-redirect.dependabot.com/ember-cli/ember-cli-htmlbars-inline-precompile/issues/117) from Turbo87/changelog - [`7aee0c9`](ember-cli/ember-cli-htmlbars-inline-precompile@7aee0c9) Use `lerna-changelog` to generate `CHANGELOG.md` - [`27dbeaa`](ember-cli/ember-cli-htmlbars-inline-precompile@27dbeaa) Merge pull request [#115](https://github-redirect.dependabot.com/ember-cli/ember-cli-htmlbars-inline-precompile/issues/115) from Turbo87/babel-7 - [`45878e3`](ember-cli/ember-cli-htmlbars-inline-precompile@45878e3) Update `ember-cli-babel` peer dependency to support Babel 7 too - [`cede1a4`](ember-cli/ember-cli-htmlbars-inline-precompile@cede1a4) Merge pull request [#116](https://github-redirect.dependabot.com/ember-cli/ember-cli-htmlbars-inline-precompile/issues/116) from Turbo87/insane - [`53fc443`](ember-cli/ember-cli-htmlbars-inline-precompile@53fc443) Update `yarn.lock` file - [`a610a52`](ember-cli/ember-cli-htmlbars-inline-precompile@a610a52) Update `ember-cli` to v2.12.x to drop broken `npm` subdependency - [`85a2aac`](ember-cli/ember-cli-htmlbars-inline-precompile@85a2aac) Pin subdependencies to versions using sane@2 - See full diff in [compare view](ember-cli/ember-cli-htmlbars-inline-precompile@v1.0.4...v1.0.5) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=ember-cli-htmlbars-inline-precompile&package-manager=npm_and_yarn&previous-version=1.0.4&new-version=1.0.5)](https://dependabot.com/compatibility-score.html?dependency-name=ember-cli-htmlbars-inline-precompile&package-manager=npm_and_yarn&previous-version=1.0.4&new-version=1.0.5) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot. </details>
Resolves #95
/cc @lukemelia @rwjblue