1 | ;
|
2 | require('babel-register')({
|
3 | });
|
4 |
|
5 | module.exports = grunt => {
|
6 | require('time-grunt')(grunt);
|
7 | grunt.initConfig({
|
8 | eslint: {
|
9 | all: ['index.ts', 'src/**/*.ts']
|
10 | },
|
11 | exec: {
|
12 | tsc: {
|
13 | command: 'tsc -d -p .'
|
14 | },
|
15 | test: {
|
16 | command: 'npm test'
|
17 | }
|
18 | }
|
19 | });
|
20 | grunt.loadNpmTasks('grunt-eslint');
|
21 | grunt.loadNpmTasks('grunt-exec');
|
22 | grunt.registerTask('default', ['exec:tsc', 'eslint:all', 'exec:test']);
|
23 | };
|