mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 21:23:05 +08:00
tech(typescript): testing for how to migrate to typescript
This commit is contained in:
19
tasks/options/typescript.js
Normal file
19
tasks/options/typescript.js
Normal file
@ -0,0 +1,19 @@
|
||||
module.exports = function() {
|
||||
'use strict';
|
||||
|
||||
return {
|
||||
base: {
|
||||
src: ['public/app/**/*.ts'],
|
||||
dest: '',
|
||||
options: {
|
||||
module: 'amd', //or commonjs
|
||||
target: 'es5', //or es3
|
||||
keepDirectoryHierarchy: true,
|
||||
declaration: true,
|
||||
watch: true,
|
||||
sourceMap: true,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
};
|
Reference in New Issue
Block a user