2015-09-09 02:57:06 -05:00
|
|
|
module.exports = function() {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
return {
|
2015-09-09 12:34:24 -05:00
|
|
|
build: {
|
2015-09-15 06:23:36 -05:00
|
|
|
src: ['public/**/*.ts', 'public/test/**/*.ts'],
|
|
|
|
dest: 'public_gen/',
|
2015-09-09 02:57:06 -05:00
|
|
|
options: {
|
|
|
|
module: 'amd', //or commonjs
|
|
|
|
target: 'es5', //or es3
|
2015-09-15 06:23:36 -05:00
|
|
|
rootDir: 'public/',
|
|
|
|
sourceRoot: 'public/',
|
2015-09-09 02:57:06 -05:00
|
|
|
declaration: true,
|
2015-09-15 06:23:36 -05:00
|
|
|
emitDecoratorMetadata: true,
|
|
|
|
experimentalDecorators: true,
|
2015-09-09 02:57:06 -05:00
|
|
|
sourceMap: true,
|
2015-09-15 06:23:36 -05:00
|
|
|
noImplicitAny: false,
|
2015-09-09 12:34:24 -05:00
|
|
|
}
|
|
|
|
},
|
2015-09-10 04:26:40 -05:00
|
|
|
|
|
|
|
// build2: {
|
|
|
|
// src: ['public/app/alerting#<{(||)}>#*.ts'],
|
|
|
|
// dest: 'public/.app_gen/alerting/all.js',
|
|
|
|
// options: {
|
|
|
|
// target: 'es5', //or es3
|
|
|
|
// declaration: true,
|
|
|
|
// sourceMap: true,
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
|
2015-09-09 12:34:24 -05:00
|
|
|
watch: {
|
|
|
|
src: ['public/app/**/*.ts'],
|
2015-09-10 04:26:40 -05:00
|
|
|
dest: 'public/app_gen',
|
2015-09-09 12:34:24 -05:00
|
|
|
options: {
|
|
|
|
module: 'amd', //or commonjs
|
|
|
|
target: 'es5', //or es3
|
|
|
|
rootDir: 'public/app',
|
|
|
|
declaration: true,
|
|
|
|
sourceMap: true,
|
|
|
|
watch: true,
|
2015-09-09 02:57:06 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|