Chore: Skip unnecessary checks on pre commit (#16946)

* Skip unnecessary checks on pre commit

* Remove grunt precommit task

* Separate go and fe tesrt lint
This commit is contained in:
Dominik Prokop
2019-05-08 11:43:37 +02:00
committed by GitHub
parent a86b8c8a04
commit 4762cd671a
6 changed files with 104 additions and 50 deletions
+8
View File
@@ -6,6 +6,7 @@ import { buildTask } from './tasks/grafanaui.build';
import { releaseTask } from './tasks/grafanaui.release';
import { changelogTask } from './tasks/changelog';
import { cherryPickTask } from './tasks/cherrypick';
import { precommitTask } from './tasks/precommit';
program.option('-d, --depreciate <scripts>', 'Inform about npm script deprecation', v => v.split(','));
@@ -64,6 +65,13 @@ program
await execTask(cherryPickTask)({});
});
program
.command('precommit')
.description('Executes checks')
.action(async cmd => {
await execTask(precommitTask)({});
});
program.parse(process.argv);
if (program.depreciate && program.depreciate.length === 2) {