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-09 02:57:06 -05:00
|
|
|
src: ['public/app/**/*.ts'],
|
2015-09-09 13:37:27 -05:00
|
|
|
dest: 'public/.app_gen',
|
2015-09-09 02:57:06 -05:00
|
|
|
options: {
|
|
|
|
module: 'amd', //or commonjs
|
|
|
|
target: 'es5', //or es3
|
2015-09-09 12:34:24 -05:00
|
|
|
rootDir: 'public/app',
|
2015-09-09 02:57:06 -05:00
|
|
|
declaration: true,
|
|
|
|
sourceMap: true,
|
2015-09-09 12:34:24 -05:00
|
|
|
generateTsConfig: true,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
src: ['public/app/**/*.ts'],
|
2015-09-09 13:37:27 -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,
|
|
|
|
generateTsConfig: true,
|
2015-09-09 02:57:06 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|