Skip to content

Commit

Permalink
Additional Dependency Warning
Browse files Browse the repository at this point in the history
Resolves #18
  • Loading branch information
jherdman committed Jun 20, 2018
1 parent f253f15 commit 30e4a3b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ know and love, no longer surrounded by mustaches. \o/
ember install ember-angle-bracket-invocation-polyfill
```

You will additionally need to ensure ember-cli-htmlbars-inline-precompile is at least version 1.0.3.

## Usage

The best usage guide is [the RFC itself](https://github.com/emberjs/rfcs/blob/master/text/0311-angle-bracket-invocation.md),
Expand Down
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ module.exports = {
let emberVersion = checker.forEmber();

this.shouldPolyfill = emberVersion.lt('3.4.0-alpha.1');

let parentChecker = new VersionChecker(this.parent);
let precompileVersion = parentChecker.for('ember-cli-htmlbars-inline-precompile');

if (precompileVersion.exists() && precompileVersion.lt('1.0.3')) {
this.ui.writeWarnLine(
'Detected a version of ember-cli-htmlbars-inline-precompile that does not' +
' support angle bracket invocation, please update to at least 1.0.3.'
);
}
},

setupPreprocessorRegistry(type, registry) {
Expand Down

0 comments on commit 30e4a3b

Please sign in to comment.