Skip to content

Commit

Permalink
Merge pull request #1763 from kum-deepak/typedoc
Browse files Browse the repository at this point in the history
Typedoc - initial config
  • Loading branch information
kum-deepak authored Sep 6, 2020
2 parents 2c2e2b2 + 57d6f4f commit d1b2f3f
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 765 deletions.
29 changes: 8 additions & 21 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ module.exports = function (grunt) {
}
},
watch: {
jsdoc2md: {
files: ['docs/welcome.base.md', '<%= conf.src %>/**/*.ts', '<%= conf.src %>/**/*.js'],
tasks: ['build', 'jsdoc', 'jsdoc2md']
typedoc: {
files: ['docs/**/*', '<%= conf.src %>/**/*.ts', '<%= conf.src %>/**/*.js'],
tasks: ['shell:typedoc']
},
scripts: {
files: ['<%= conf.src %>/**/*.ts', '<%= conf.src %>/**/*.js', '<%= conf.web %>/stock.js'],
Expand Down Expand Up @@ -155,22 +155,6 @@ module.exports = function (grunt) {
reporters: ['dots', 'summary']
},
},
jsdoc: {
dist: {
src: ['docs/welcome.base.md', '<%= conf.src %>/**/*.js', '!<%= conf.src %>/{banner,footer}.js'],
options: {
destination: '<%= conf.web %>/docs/html',
template: 'node_modules/ink-docstrap/template',
configure: 'jsdoc.conf.json'
}
}
},
jsdoc2md: {
dist: {
src: '<%= conf.dist %>/<%= conf.pkg.name %>.js',
dest: 'docs/api-latest.md'
}
},
docco: {
options: {
dst: '<%= conf.web %>/docs'
Expand Down Expand Up @@ -362,6 +346,9 @@ module.exports = function (grunt) {
rollup: {
command: 'rollup --config'
},
typedoc: {
command: 'typedoc src/index.ts'
},
eslint: {
command: `eslint ${lintableFiles}`
},
Expand Down Expand Up @@ -410,7 +397,7 @@ module.exports = function (grunt) {

// task aliases
grunt.registerTask('build', ['shell:dist-clean', 'shell:tsc', 'shell:rollup', 'sass', 'cssmin']);
grunt.registerTask('docs', ['build', 'copy', 'jsdoc', 'jsdoc2md', 'docco', 'fileindex']);
grunt.registerTask('docs', ['build', 'copy', 'shell:typedoc', 'docco', 'fileindex']);
grunt.registerTask('web', ['docs', 'gh-pages']);
grunt.registerTask('server-only', ['docs', 'fileindex', 'jasmine:specs:build', 'connect:server']);
grunt.registerTask('server', ['server-only', 'watch:scripts-sass-docs']);
Expand All @@ -424,5 +411,5 @@ module.exports = function (grunt) {
grunt.registerTask('lint', ['shell:tslint', 'shell:eslint', 'shell:prettier-check']);
grunt.registerTask('lint-fix', ['shell:tslint-fix', 'shell:eslint-fix', 'shell:prettier']);
grunt.registerTask('default', ['build', 'shell:hooks']);
grunt.registerTask('doc-debug', ['build', 'jsdoc', 'jsdoc2md', 'watch:jsdoc2md']);
grunt.registerTask('doc-debug', ['build', 'shell:typedoc', 'watch:typedoc']);
};
Loading

0 comments on commit d1b2f3f

Please sign in to comment.