huject
Version:
Typescript dependency injection container for humans
31 lines (26 loc) • 730 B
JavaScript
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: ['tests/**/*.js']
}
},
ts: {
options: {
compiler: "./node_modules/typescript/bin/tsc"
},
default: {
src: ['src/**/*.ts'],
tsconfig: './tsconfig.json'
}
}
});
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-ts');
grunt.registerTask('test', ['ts', 'mochaTest']);
grunt.registerTask('default', ['ts']);
};