Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8410c3b

Browse files
committed
add doctoc to grunt
1 parent 9bb409f commit 8410c3b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Gruntfile.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module.exports = function (grunt) {
33
grunt.loadNpmTasks('grunt-contrib-cssmin');
44
grunt.loadNpmTasks('grunt-contrib-copy');
55
grunt.loadNpmTasks('grunt-contrib-uglify');
6+
grunt.loadNpmTasks('grunt-doctoc');
67

78
grunt.initConfig({
89
sass: {
@@ -44,8 +45,17 @@ module.exports = function (grunt) {
4445
'dist/gridstack.min.js': ['src/gridstack.js']
4546
}
4647
}
48+
},
49+
50+
doctoc: {
51+
options: {
52+
removeAd: false
53+
},
54+
readme: {
55+
target: "./README.md"
56+
}
4757
}
4858
});
4959

50-
grunt.registerTask('default', ['sass', 'cssmin', 'copy', 'uglify']);
60+
grunt.registerTask('default', ['sass', 'cssmin', 'copy', 'uglify', 'doctoc']);
5161
};

0 commit comments

Comments
 (0)