Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. module.exports = function (grunt) {
  2.  
  3. // Project configuration.
  4. grunt.initConfig({
  5. pkg: grunt.file.readJSON('package.json'),
  6.  
  7. typescript: {
  8. main: {
  9. src: ['src/ts/**/*.ts'],
  10. dest: 'app/js/main.js',
  11. options: {
  12. module: 'amd',
  13. target: 'es5',
  14. sourceMap: true
  15. }
  16. }
  17. },
  18.  
  19. copy: {
  20. main: {
  21. files: [
  22. {
  23. expand: true,
  24. src: ["index.html"],
  25. cwd: 'src/',
  26. dest: "app/",
  27. filter: 'isFile'
  28. }
  29. ]
  30. }
  31. }
  32. });
  33.  
  34. grunt.loadNpmTasks('grunt-contrib-copy');
  35. grunt.loadNpmTasks('grunt-typescript');
  36.  
  37. // Default task(s).
  38. grunt.registerTask('compile', ['typescript']);
  39. grunt.registerTask('deploy', ['compile', 'copy']);
  40. grunt.registerTask('default', ['deploy']);
  41. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement