2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Modifying Gruntfile to install typings before running TypeScript tests

This commit is contained in:
Nick Uraltsev
2016-08-18 20:14:13 -07:00
parent 2325216239
commit 1bd9b195a5
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -11,6 +11,10 @@ module.exports = function(grunt) {
dist: 'dist/**'
},
typings: {
install: {}
},
ts: {
test: {
src: ['typings/index.d.ts', 'test/typescript/*.ts'],
@@ -93,7 +97,7 @@ module.exports = function(grunt) {
grunt.file.write('bower.json', JSON.stringify(bower, null, 2));
});
grunt.registerTask('test', 'Run the jasmine and nodeunit tests', ['eslint', 'nodeunit', 'karma:single', 'ts']);
grunt.registerTask('test', 'Run the jasmine and nodeunit tests', ['eslint', 'nodeunit', 'karma:single', 'typings', 'ts']);
grunt.registerTask('build', 'Run webpack and bundle the source', ['clean', 'webpack']);
grunt.registerTask('version', 'Sync version info for a release', ['usebanner', 'package2bower']);
};