Merge branch 'grafana-lib'

This commit is contained in:
Torkel Ödegaard
2018-12-25 19:26:46 +01:00
78 changed files with 612 additions and 317 deletions
+16 -6
View File
@@ -10,16 +10,26 @@ module.exports = function (grunt) {
grunt.registerTask('test', [
'sasslint',
'exec:tsc',
'exec:tslint',
'exec:jest',
'tslint',
'typecheck',
"exec:jest",
'no-only-tests'
]);
grunt.registerTask('tslint', [
'newer:exec:tslintPackages',
'newer:exec:tslintRoot',
]);
grunt.registerTask('typecheck', [
'newer:exec:typecheckPackages',
'newer:exec:typecheckRoot',
]);
grunt.registerTask('precommit', [
'sasslint',
'newer:exec:tslint',
'newer:exec:tsc',
'newer:sasslint',
'typecheck',
'tslint',
'no-only-tests'
]);
+12 -4
View File
@@ -2,12 +2,20 @@ module.exports = function (config, grunt) {
'use strict';
return {
tslint: {
command: 'node ./node_modules/tslint/lib/tslintCli.js -c tslint.json --project ./tsconfig.json',
tslintPackages: {
command: 'yarn workspaces run tslint',
src: ['packages/**/*.ts*'],
},
tslintRoot: {
command: 'yarn run tslint',
src: ['public/app/**/*.ts*'],
},
tsc: {
command: 'yarn tsc --noEmit',
typecheckPackages: {
command: 'yarn workspaces run typecheck',
src: ['packages/**/*.ts*'],
},
typecheckRoot: {
command: 'yarn run typecheck',
src: ['public/app/**/*.ts*'],
},
jest: 'node ./node_modules/jest-cli/bin/jest.js --maxWorkers 2',
+1
View File
@@ -4,6 +4,7 @@ module.exports = function(config) {
options: {
configFile: 'public/sass/.sass-lint.yml',
},
// src: ['public/sass#<{(||)}>#*'],
target: [
'public/sass/*.scss',
'public/sass/components/*.scss',
-11
View File
@@ -1,11 +0,0 @@
module.exports = function(config, grunt) {
'use strict'
// dummy to avoid template compile error
return {
source: {
files: {
src: ""
}
}
};
};