ember-cli-qunit
Advanced tools
Comparing version 0.3.8 to 0.3.9
53
index.js
@@ -10,2 +10,25 @@ 'use strict'; | ||
buildConsole: function() { | ||
var ui = this.ui; | ||
if (!ui) { | ||
this.console = console; | ||
return; | ||
} | ||
this.console = { | ||
log: function(data) { | ||
ui.writeLine(data); | ||
}, | ||
error: function(data) { | ||
ui.writeLine(data, 'ERROR'); | ||
} | ||
} | ||
}, | ||
init: function() { | ||
this.buildConsole(); | ||
}, | ||
blueprintsPath: function() { | ||
@@ -26,9 +49,21 @@ return path.join(__dirname, 'blueprints'); | ||
app.bowerDirectory + '/qunit/qunit/qunit.js', | ||
app.bowerDirectory + '/qunit/qunit/qunit.css', | ||
app.bowerDirectory + '/qunit-notifications/index.js', | ||
app.bowerDirectory + '/qunit/qunit/qunit.css' | ||
]; | ||
var imgAssets = []; | ||
var qunitNotificationsPath = app.bowerDirectory + '/qunit-notifications/index.js'; | ||
if (fs.existsSync(qunitNotificationsPath)) { | ||
fileAssets.push(qunitNotificationsPath); | ||
imgAssets.push( | ||
app.bowerDirectory + '/ember-qunit-notifications/passed.png', | ||
app.bowerDirectory + '/ember-qunit-notifications/failed.png' | ||
); | ||
} | ||
fileAssets.push( | ||
'vendor/ember-cli-qunit/qunit-configuration.js', | ||
'vendor/ember-cli-qunit/test-loader.js' | ||
]; | ||
); | ||
var addonOptions = target.options['ember-cli-qunit']; | ||
@@ -39,7 +74,2 @@ if (addonOptions && !addonOptions.disableContainerStyles) { | ||
var imgAssets = [ | ||
app.bowerDirectory + '/ember-qunit-notifications/passed.png', | ||
app.bowerDirectory + '/ember-qunit-notifications/failed.png', | ||
]; | ||
var emberQunitPath = app.bowerDirectory + '/ember-qunit/ember-qunit.amd.js'; | ||
@@ -98,7 +128,10 @@ if (!fs.existsSync(emberQunitPath)) { | ||
lintTree: function(type, tree) { | ||
var ui = this.ui; | ||
return jshintTrees(tree, { | ||
jshintrcPath: this.jshintrc[type], | ||
description: 'JSHint ' + type + '- QUnit' | ||
description: 'JSHint ' + type + '- QUnit', | ||
console: this.console | ||
}); | ||
} | ||
}; |
{ | ||
"name": "ember-cli-qunit", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"description": "QUnit testing package for ember-cli applications", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "https://github.com/jakecraige/ember-cli-qunit.git" | ||
"url": "https://github.com/ember-cli/ember-cli-qunit.git" | ||
}, | ||
@@ -25,9 +25,9 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/jakecraige/ember-cli-qunit/issues" | ||
"url": "https://github.com/ember-cli/ember-cli-qunit/issues" | ||
}, | ||
"homepage": "https://github.com/jakecraige/ember-cli-qunit", | ||
"homepage": "https://github.com/ember-cli/ember-cli-qunit", | ||
"dependencies": { | ||
"broccoli-jshint": "0.5.3" | ||
"broccoli-jshint": "0.5.5" | ||
}, | ||
"bundledDependencies": [] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6502
170
+ Addedbroccoli-jshint@0.5.5(transitive)
+ Addedjshint@2.6.3(transitive)
- Removedbroccoli-jshint@0.5.3(transitive)
- Removedjshint@2.5.11(transitive)
Updatedbroccoli-jshint@0.5.5