Gruntfile.js 777 B

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = function(grunt) {
  2. var dir = "doc/code/";
  3. // Project configuration.
  4. grunt.initConfig({
  5. pkg: grunt.file.readJSON('package.json'),
  6. jsdoc: {
  7. dist: {
  8. src: [
  9. dir+'**/animate.js'
  10. ,dir+'**/base.js'
  11. ,dir+'**/core.js'
  12. ,dir+'**/xscroll.js'
  13. ,dir+'**/origin-scroll.js'
  14. ,dir+'**/simulate-scroll.js'
  15. ,dir+'**/xscroll-master.js'
  16. ,dir+'**/util.js'
  17. ,dir+'plugins/*.js'
  18. ,dir+'components/*.js'
  19. ],
  20. options: {
  21. closure:false,
  22. // 'private': true
  23. destination: 'doc',
  24. template: 'node_modules/jaguarjs-jsdoc/'
  25. }
  26. }
  27. }
  28. });
  29. grunt.loadNpmTasks('grunt-jsdoc');
  30. grunt.registerTask('doc', ['jsdoc']);
  31. };