Created
April 29, 2014 11:59
-
-
Save jg/11398092 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
ts: { | |
dev: { // a particular target | |
src: ["app/assets/javascripts/**/*.ts"], // The source typescript files, http://gruntjs.com/configuring-tasks#files | |
html: ["app/assets/templates/**/*.tpl.html"], // The source html files, https://github.com/basarat/grunt-ts#html-2-typescript-support | |
out: 'public/javascripts/app.js', // If specified, generate an out.js file which is the merged js file | |
watch: 'app/assets/javascripts', // If specified, watches this directory for changes, and re-runs the current target | |
reference: 'app/assets/javascripts/references.ts', | |
options: { // use to override the default options, http://gruntjs.com/configuring-tasks#options | |
target: 'es3', // 'es3' (default) | 'es5' | |
module: 'commonjs', // 'amd' (default) | 'commonjs' | |
sourceMap: true, // true (default) | false | |
declaration: false, // true | false (default) | |
removeComments: true // true (default) | false | |
} | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-ts'); | |
grunt.registerTask('default', ['ts']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment