From 1b09b3c6a8416f9c960bc616421ef639ef231885 Mon Sep 17 00:00:00 2001 From: Hendrik Leppelsack Date: Sun, 6 Sep 2015 11:17:48 +0200 Subject: [PATCH] add phpdocumentor task to grunt --- js/Gruntfile.coffee | 7 +++++++ js/package.json | 21 +++++++++++---------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/js/Gruntfile.coffee b/js/Gruntfile.coffee index 20314cd4..934a187d 100644 --- a/js/Gruntfile.coffee +++ b/js/Gruntfile.coffee @@ -31,6 +31,7 @@ module.exports = (grunt) -> grunt.loadNpmTasks('grunt-phpunit') grunt.loadNpmTasks('grunt-karma') grunt.loadNpmTasks('grunt-newer') + grunt.loadNpmTasks('grunt-phpdocumentor') grunt.initConfig @@ -121,6 +122,12 @@ module.exports = (grunt) -> options: colors: true + phpdocumentor: + default: + options: + directory : '../appinfo,../db,../controllers,../service' + target : '../docs' + grunt.registerTask('ci', ['karma:continuous']) diff --git a/js/package.json b/js/package.json index 455a2a0e..e46296de 100644 --- a/js/package.json +++ b/js/package.json @@ -16,20 +16,21 @@ "contributors": [], "dependencies": {}, "devDependencies": { + "coffee-script": "~1.4.0", "grunt": "~0.4.1", "grunt-cli": "~0.1.6", - "coffee-script": "~1.4.0", - "grunt-contrib-coffee": "~0.7.0", - "grunt-contrib-less": "~0.6.4", - "grunt-contrib-concat": "~0.1.2", - "grunt-contrib-watch": "~0.2.0", "grunt-coffeelint": "0.0.6", - "grunt-wrap": "~0.2.0", - "phantomjs": "~1.8.1-3", - "grunt-phpunit": "0.2.0", - "grunt-karma": "~0.4.5", "grunt-concurrent": "~1.0.0", - "grunt-newer": "~1.1.1" + "grunt-contrib-coffee": "~0.7.0", + "grunt-contrib-concat": "~0.1.2", + "grunt-contrib-less": "~0.6.4", + "grunt-contrib-watch": "~0.2.0", + "grunt-karma": "~0.4.5", + "grunt-newer": "~1.1.1", + "grunt-phpdocumentor": "^0.4.1", + "grunt-phpunit": "0.2.0", + "grunt-wrap": "~0.2.0", + "phantomjs": "~1.8.1-3" }, "engine": "node >= 0.8" }