Commit 0f0efb307286079f344b0101ade835a73291572f
1 parent
c22ee3fc
Add new.
Showing
1 changed file
with
20 additions
and
8 deletions
Too many changes to show.
To preserve performance only 1 of 16 files are displayed.
Gruntfile.js
@@ -64,14 +64,25 @@ module.exports = function (grunt) { | @@ -64,14 +64,25 @@ module.exports = function (grunt) { | ||
64 | } | 64 | } |
65 | }, | 65 | }, |
66 | 66 | ||
67 | - apidoc: { | ||
68 | - myapp: { | ||
69 | - src: 'js/', | ||
70 | - dest: 'docs/apiguide/', | 67 | +/* apidoc: { */ |
68 | + // myapp: { | ||
69 | + // src: 'js/', | ||
70 | + // dest: 'docs/apiguide/', | ||
71 | + // options: { | ||
72 | + // debug: true, | ||
73 | + // includeFilters: [ ".*\\.js$" ], | ||
74 | + // excludeFilters: [ "node_modules/" ] | ||
75 | + // } | ||
76 | + // } | ||
77 | + /* } */ | ||
78 | + | ||
79 | + jsdoc : { | ||
80 | + dist : { | ||
81 | + src: ['js/**/*.js', 'README.md'], | ||
71 | options: { | 82 | options: { |
72 | - debug: true, | ||
73 | - includeFilters: [ ".*\\.js$" ], | ||
74 | - excludeFilters: [ "node_modules/" ] | 83 | + destination : 'docs/jsdoc', |
84 | + template : "node_modules/ink-docstrap/template", | ||
85 | + configure : "node_modules/ink-docstrap/template/jsdoc.conf.json" | ||
75 | } | 86 | } |
76 | } | 87 | } |
77 | } | 88 | } |
@@ -82,9 +93,10 @@ module.exports = function (grunt) { | @@ -82,9 +93,10 @@ module.exports = function (grunt) { | ||
82 | grunt.loadNpmTasks( "grunt-contrib-concat" ); | 93 | grunt.loadNpmTasks( "grunt-contrib-concat" ); |
83 | grunt.loadNpmTasks( "grunt-ui-docs" ); | 94 | grunt.loadNpmTasks( "grunt-ui-docs" ); |
84 | grunt.loadNpmTasks( "grunt-apidoc" ); | 95 | grunt.loadNpmTasks( "grunt-apidoc" ); |
96 | + grunt.loadNpmTasks( "grunt-jsdoc" ); | ||
85 | // grunt.loadNpmTasks('grunt-spritesmith'); | 97 | // grunt.loadNpmTasks('grunt-spritesmith'); |
86 | 98 | ||
87 | grunt.registerTask('default', [ | 99 | grunt.registerTask('default', [ |
88 | - 'less', 'concat', 'watch' | 100 | + 'less', 'watch' |
89 | ]); | 101 | ]); |
90 | }; | 102 | }; |