Skip to content

Instantly share code, notes, and snippets.

@karimbeyrouti
Created September 13, 2013 10:59
Show Gist options
  • Save karimbeyrouti/6549253 to your computer and use it in GitHub Desktop.
Save karimbeyrouti/6549253 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
var version = grunt.option('libversion') || 'next';
// Plugins used by this Grunt Script
grunt.loadNpmTasks('grunt-typescript');
// Configuration
grunt.initConfig( {
//Read the package.json
pkg: grunt.file.readJSON('package.json'),
// Metadata / Configuration
// Export TypeScript Source
typescript: {
base: { // Export Concatenated JavaScript from Main TS file
src: '../src/Away3D.ts',
dest: '../lib/src/Away.js',
options: {
target: 'ES5',
sourcemap: true
}
}
}
} );
grunt.option.init();
grunt.registerTask('default', ['typescript' ]); // Default Tasks
};
{
"name": "",
"version": "0.1.0",
"description": "Kurst EventDispatcher / Docs Demo ",
"url": "http://www.kurst.co.uk",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-yuidoc": "*",
"grunt-typescript": "~0.1.3",
"uglify-js": "~2.3.5",
"grunt-lib-contrib": "~0.6.0",
"grunt-contrib-uglify":"*",
"grunt-contrib-concat":"*"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment