mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
Modifying Gruntfile to install typings before running TypeScript tests
This commit is contained in:
+5
-1
@@ -11,6 +11,10 @@ module.exports = function(grunt) {
|
|||||||
dist: 'dist/**'
|
dist: 'dist/**'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
typings: {
|
||||||
|
install: {}
|
||||||
|
},
|
||||||
|
|
||||||
ts: {
|
ts: {
|
||||||
test: {
|
test: {
|
||||||
src: ['typings/index.d.ts', 'test/typescript/*.ts'],
|
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.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('build', 'Run webpack and bundle the source', ['clean', 'webpack']);
|
||||||
grunt.registerTask('version', 'Sync version info for a release', ['usebanner', 'package2bower']);
|
grunt.registerTask('version', 'Sync version info for a release', ['usebanner', 'package2bower']);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
"grunt-eslint": "18.0.0",
|
"grunt-eslint": "18.0.0",
|
||||||
"grunt-karma": "0.12.1",
|
"grunt-karma": "0.12.1",
|
||||||
"grunt-ts": "5.3.2",
|
"grunt-ts": "5.3.2",
|
||||||
|
"grunt-typings": "0.1.5",
|
||||||
"grunt-webpack": "1.0.11",
|
"grunt-webpack": "1.0.11",
|
||||||
"istanbul-instrumenter-loader": "^0.2.0",
|
"istanbul-instrumenter-loader": "^0.2.0",
|
||||||
"jasmine-core": "^2.4.1",
|
"jasmine-core": "^2.4.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user