build: added precommit

This commit is contained in:
Torkel Ödegaard
2017-10-22 15:11:37 +02:00
parent 34edea4ac7
commit cde87d9adc
4 changed files with 12 additions and 4 deletions

View File

@ -19,6 +19,13 @@ module.exports = function(grunt) {
'no-only-tests'
]);
grunt.registerTask('precommit', [
'sasslint',
'exec:tslint',
"exec:jest",
'no-only-tests'
]);
grunt.registerTask('no-only-tests', function() {
var files = grunt.file.expand('public/**/*_specs\.ts', 'public/**/*_specs\.js');