@grafana/ui lib now contains one components, seperate lint & tsc steps

This commit is contained in:
Torkel Ödegaard
2018-12-21 14:23:32 +01:00
parent 2fec5c7577
commit 52f583fee7
13 changed files with 73 additions and 64 deletions
+13 -3
View File
@@ -15,10 +15,20 @@ module.exports = function (grunt) {
'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: ""
}
}
};
};