add doctoc to grunt
This commit is contained in:
parent
9bb409fdee
commit
8410c3babf
12
Gruntfile.js
12
Gruntfile.js
|
@ -3,6 +3,7 @@ module.exports = function (grunt) {
|
||||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||||
|
grunt.loadNpmTasks('grunt-doctoc');
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
sass: {
|
sass: {
|
||||||
|
@ -44,8 +45,17 @@ module.exports = function (grunt) {
|
||||||
'dist/gridstack.min.js': ['src/gridstack.js']
|
'dist/gridstack.min.js': ['src/gridstack.js']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
doctoc: {
|
||||||
|
options: {
|
||||||
|
removeAd: false
|
||||||
|
},
|
||||||
|
readme: {
|
||||||
|
target: "./README.md"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerTask('default', ['sass', 'cssmin', 'copy', 'uglify']);
|
grunt.registerTask('default', ['sass', 'cssmin', 'copy', 'uglify', 'doctoc']);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue