Created
September 13, 2013 10:59
-
-
Save karimbeyrouti/6549253 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) { | |
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 | |
}; |
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
{ | |
"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