typescript.js 931 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. module.exports = function() {
  2. 'use strict';
  3. return {
  4. build: {
  5. src: ['public/app/**/*.ts'],
  6. dest: 'public_gen/app',
  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. // build2: {
  17. // src: ['public/app/alerting#<{(||)}>#*.ts'],
  18. // dest: 'public/.app_gen/alerting/all.js',
  19. // options: {
  20. // target: 'es5', //or es3
  21. // declaration: true,
  22. // sourceMap: true,
  23. // }
  24. // },
  25. watch: {
  26. src: ['public/app/**/*.ts'],
  27. dest: 'public/app_gen',
  28. options: {
  29. module: 'amd', //or commonjs
  30. target: 'es5', //or es3
  31. rootDir: 'public/app',
  32. declaration: true,
  33. sourceMap: true,
  34. watch: true,
  35. generateTsConfig: true,
  36. }
  37. }
  38. };
  39. };