mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
85e50ece2e
With this change in place you can include plugin specs in `grunt test` by creating a `src/config.js` like that includes something like this: ```js plugins: { // list of plugin panels panels: [], // requirejs modules in plugins folder that should be loaded // for example custom datasources dependencies: ['grafana-plugins/atlasDatasource'], specs: ['grafana-plugins/specs/atlasDatasource-specs'] } ```
23 lines
823 B
JavaScript
23 lines
823 B
JavaScript
module.exports = function(config) {
|
|
return {
|
|
src: [
|
|
'Gruntfile.js',
|
|
'<%= srcDir %>/app/**/*.js',
|
|
'<%= srcDir %>/plugins/**/*.js',
|
|
'!<%= srcDir %>/app/panels/*/{lib,leaflet}/*',
|
|
'!<%= srcDir %>/app/dashboards/*'
|
|
],
|
|
options: {
|
|
config: ".jscs.json",
|
|
},
|
|
};
|
|
};
|
|
|
|
/*
|
|
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
|
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
|
|
"disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
|
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
|
"requireRightStickedOperators": ["!"],
|
|
"requireLeftStickedOperators": [","],
|
|
*/ |