Grunt:
module.exports = function (grunt) {
grunt.initConfig({
dtsGenerator: {
options: {
// main: ‘test‘,
// name: ‘package-name‘,
project: ‘./‘,
out: ‘dist/greeter.d.ts‘
},
default: {
src: [ ‘./**/*.ts‘ ]
}
}
});
grunt.loadNpmTasks(‘dts-generator‘);
grunt.registerTask(‘default‘, [‘dtsGenerator‘])
};
reference:https://www.npmjs.com/package/dts-generator
原文:https://www.cnblogs.com/april55/p/14342876.html