"repository": "SonarSource/sonarqube",
"license": "LGPL-3.0",
"devDependencies": {
- "babel": "5.8.23",
- "babel-eslint": "^4.1.6",
- "babelify": "6.3.0",
+ "babel-cli": "^6.3.17",
+ "babel-eslint": "4.1.6",
+ "babel-polyfill": "^6.3.14",
+ "babel-preset-es2015": "^6.3.13",
+ "babel-preset-react": "^6.3.13",
+ "babel-register": "^6.3.13",
+ "babelify": "7.2.0",
"backbone": "1.2.3",
"backbone.marionette": "2.4.3",
"blueimp-md5": "1.1.1",
"gulp-util": "3.0.6",
"handlebars": "2.0.0",
"hbsfy": "2.3.1",
- "isparta": "3.0.4",
+ "isparta": "^4.0.0",
"jquery": "2.1.4",
"jsdom": "6.5.1",
- "mocha": "2.3.3",
+ "mocha": "^2.3.4",
"moment": "2.10.6",
"numeral": "1.5.3",
"react": "0.14.2",
"scripts": {
"build-fast": "gulp --fast",
"build": "gulp",
- "test": "./node_modules/.bin/mocha --opts tests/mocha.opts tests",
- "coverage": "./node_modules/.bin/babel-node ./node_modules/.bin/isparta cover --dir './target/coverage' ./node_modules/.bin/_mocha -- --opts tests/mocha.opts tests",
+ "test": "mocha --opts tests/mocha.opts tests",
+ "coverage": "babel-node node_modules/.bin/isparta cover --root 'src/main/js' --include-all-sources --excludes '**/libs/**' --dir 'target/coverage' node_modules/.bin/_mocha -- --opts tests/mocha.opts tests",
"lint": "eslint src/main/js"
},
"browserify-shim": {
},
initTooltips () {
- if ($.fn.tooltip) {
+ if ($.fn && $.fn.tooltip) {
$('[data-toggle="tooltip"]', ReactDOM.findDOMNode(this))
.tooltip({ container: 'body', placement: 'bottom', html: true });
}
},
hideTooltips () {
- if ($.fn.tooltip) {
+ if ($.fn && $.fn.tooltip) {
$('[data-toggle="tooltip"]', ReactDOM.findDOMNode(this))
.tooltip('hide');
}
},
destroyTooltips () {
- if ($.fn.tooltip) {
+ if ($.fn && $.fn.tooltip) {
$('[data-toggle="tooltip"]', ReactDOM.findDOMNode(this))
.tooltip('destroy');
}