phpdocumentor

This commit is contained in:
Pierre Rudloff 2016-08-01 13:00:29 +02:00
parent f48985f90a
commit 464e389ec9
3 changed files with 13 additions and 1 deletions

1
.gitignore vendored
View file

@ -10,3 +10,4 @@ alltube-*.zip
coverage/
bower_components/
config.yml
doc/

View file

@ -70,6 +70,14 @@ module.exports = function (grunt) {
},
src: ['*.php', '!config.yml', 'dist/**', 'fonts/**', '.htaccess', 'img/**', 'js/**', 'LICENSE', 'README.md', 'robots.txt', 'sitemap.xml', 'templates/**', 'templates_c/', 'vendor/**', 'classes/**', 'controllers/**', 'bower_components/**', '!vendor/ffmpeg/**', '!vendor/bin/ffmpeg']
}
},
phpdocumentor: {
doc: {
options: {
target: 'doc/',
directory: 'classes/,controllers/,tests/'
}
}
}
}
);
@ -82,9 +90,11 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-phpunit');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-phpdocumentor');
grunt.registerTask('default', ['uglify', 'cssmin']);
grunt.registerTask('lint', ['phpcs', 'jslint']);
grunt.registerTask('test', ['phpunit']);
grunt.registerTask('doc', ['phpdocumentor']);
grunt.registerTask('release', ['default', 'githash', 'compress']);
};

View file

@ -15,7 +15,8 @@
"grunt-phpunit": "~0.3.6",
"grunt-contrib-compress": "~1.3.0",
"grunt-githash": "~0.1.3",
"grunt-jslint": "~1.1.14"
"grunt-jslint": "~1.1.14",
"grunt-phpdocumentor": "~0.4.1"
},
"repository": {
"type": "git",