-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add compatibility check for ember-cli-qunit@4
- Loading branch information
1 parent
d854cda
commit 9d79643
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
'use strict'; | ||
|
||
var VersionChecker = require('ember-cli-version-checker'); | ||
|
||
module.exports = function emberCliQunitCompatCheck(addon) { | ||
var checker = new VersionChecker(addon); | ||
var dep = checker.for('ember-cli-qunit', 'npm'); | ||
|
||
if (dep.isAbove('4.0.0')) { | ||
console.error('\x1b[31m', '\nERROR: [email protected] is not compatible with ember-cli-qunit versions >= 4.0.0. Please upgrade to [email protected] or higher. See http://bit.ly/2yqVGDC for more info.\n', '\x1b[0m'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters