2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Add a TypeScript definition for Axios with included tests

This commit is contained in:
Bret Little
2014-11-18 15:53:04 -07:00
parent d93df704a2
commit 7753adde2c
6 changed files with 199 additions and 11 deletions
+12 -2
View File
@@ -11,6 +11,16 @@ module.exports = function(grunt) {
dist: 'dist/**'
},
ts: {
test: {
src: ['test/typescript/*.ts'],
out: 'test/typescript/out.js',
options: {
module: 'commonjs',
}
}
},
update_json: {
bower: {
src: 'package.json',
@@ -68,7 +78,7 @@ module.exports = function(grunt) {
}
});
grunt.registerTask('test', 'Run the jasmine and nodeunit tests', ['webpack:global', 'nodeunit', 'karma:single']);
grunt.registerTask('test', 'Run the jasmine and nodeunit tests', ['webpack:global', 'nodeunit', 'karma:single', 'ts']);
grunt.registerTask('build', 'Run webpack and bundle the source', ['webpack']);
grunt.registerTask('publish', 'Prepare the code for release', ['clean', 'test', 'build', 'usebanner', 'update_json']);
@@ -133,4 +143,4 @@ module.exports = function(grunt) {
return webpackConfig;
}
};
};