module.exports = function (grunt) { // load the task grunt.loadNpmTasks('grunt-ts');
// Configure grunt here
grunt.initConfig({ ts: { dev: { // a particular target src: ['app/**/*.ts'], // The source typescript files, http://gruntjs.com/configuring-tasks#files html: ['app/**/*.html'], // The source html files, https://github.com/basarat/grunt-ts#html-2-typescript-support reference: './reference.ts', // If specified, generate this file that you can use for your reference management out: 'app/app.js', // If specified, generate an out.js file which is the merged js file watch: 'app', }, }, }); grunt.registerTask('default', ['ts:dev']); };