typescript.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. module.exports = function() {
  2. 'use strict';
  3. return {
  4. build: {
  5. src: ['public/app/**/*.ts', "!public/vendor/**/*", "!**/*.d.ts"],
  6. dest: 'public_gen/',
  7. options: {
  8. module: 'system', //or commonjs
  9. target: 'es5', //or es3
  10. rootDir: 'public/',
  11. sourceRoot: 'public/',
  12. declaration: true,
  13. emitDecoratorMetadata: true,
  14. experimentalDecorators: true,
  15. sourceMap: true,
  16. noImplicitAny: false,
  17. }
  18. },
  19. // build2: {
  20. // src: ['public/app/alerting#<{(||)}>#*.ts'],
  21. // dest: 'public/.app_gen/alerting/all.js',
  22. // options: {
  23. // target: 'es5', //or es3
  24. // declaration: true,
  25. // sourceMap: true,
  26. // }
  27. // },
  28. watch: {
  29. src: ['public/app/**/*.ts'],
  30. dest: 'public/app_gen',
  31. options: {
  32. module: 'amd', //or commonjs
  33. target: 'es5', //or es3
  34. rootDir: 'public/app',
  35. declaration: true,
  36. sourceMap: true,
  37. watch: true,
  38. }
  39. }
  40. };
  41. };