typescript.js 677 B

1234567891011121314151617181920212223242526272829303132
  1. module.exports = function() {
  2. 'use strict';
  3. return {
  4. build: {
  5. src: ['public/app/**/*.ts'],
  6. dest: 'public/.app_gen',
  7. options: {
  8. module: 'amd', //or commonjs
  9. target: 'es5', //or es3
  10. rootDir: 'public/app',
  11. declaration: true,
  12. sourceMap: true,
  13. generateTsConfig: true,
  14. }
  15. },
  16. watch: {
  17. src: ['public/app/**/*.ts'],
  18. dest: 'public/.app_gen',
  19. options: {
  20. module: 'amd', //or commonjs
  21. target: 'es5', //or es3
  22. rootDir: 'public/app',
  23. declaration: true,
  24. sourceMap: true,
  25. watch: true,
  26. generateTsConfig: true,
  27. }
  28. }
  29. };
  30. };