Skip to content

Instantly share code, notes, and snippets.

@cybrown
Created October 12, 2013 12:56
Show Gist options
  • Save cybrown/6949760 to your computer and use it in GitHub Desktop.
Save cybrown/6949760 to your computer and use it in GitHub Desktop.
Typescript gruntfile
var grunt = require('grunt');
grunt.loadNpmTasks('grunt-typescript');
grunt.initConfig({
typescript: {
base: {
src: ['path/to/typescript/files/**/*.ts'],
dest: 'where/you/want/your/js/files',
options: {
module: 'amd', //or commonjs
target: 'es5', //or es3
base_path: 'path/to/typescript/files',
sourcemap: true,
fullSourceMapPath: true,
declaration: true,
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment