Skip to content

Instantly share code, notes, and snippets.

@ba0918
Created March 6, 2014 10:44
Show Gist options
  • Save ba0918/9387194 to your computer and use it in GitHub Desktop.
Save ba0918/9387194 to your computer and use it in GitHub Desktop.
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-typescript'
grunt.loadNpmTasks 'grunt-browserify'
grunt.loadNpmTasks 'grunt-clean-contrib'
grunt.initConfig
typescript:
app:
src: ['src/**/*.ts']
options:
module: 'commonjs'
target: 'es5'
browserify:
app:
files:
'public/js/app.js': ['src/**/*.js']
grunt.registerTask 'compile', ['typescript', 'browserify']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment