From e2922605944e78033a5b32815245f5d962d61dc7 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 21 Sep 2019 13:19:24 +0200 Subject: [PATCH] build(grunt): Build doc on install --- Gruntfile.js | 3 +-- composer.json | 3 ++- composer.lock | 6 ++++-- package.json | 2 +- yarn.lock | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 91c31da..1f6b2f9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -143,9 +143,8 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-phpstan'); grunt.loadNpmTasks('grunt-githooks'); - grunt.registerTask('default', ['cssmin', 'potomo']); + grunt.registerTask('default', ['cssmin', 'potomo', 'phpdocumentor']); grunt.registerTask('lint', ['csslint', 'jslint', 'fixpack', 'jsonlint', 'markdownlint', 'phpcs', 'phpstan']); grunt.registerTask('test', ['phpunit']); - grunt.registerTask('doc', ['phpdocumentor']); grunt.registerTask('release', ['default', 'githash', 'compress']); }; diff --git a/composer.json b/composer.json index de10f1b..f3d68da 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,8 @@ "smarty-gettext/smarty-gettext": "~1.6.0", "zonuexe/http-accept-language": "~0.4.1", "rinvex/countries": "~3.1.0", - "php-mock/php-mock-mockery": "~1.3.0" + "php-mock/php-mock-mockery": "~1.3.0", + "ext-xsl": "*" }, "require-dev": { "symfony/var-dumper": "~3.4.1", diff --git a/composer.lock b/composer.lock index 6478049..eeb4dce 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e76c13aa0587fbef823cd805264ba56c", + "content-hash": "6c758e717f29efc2705fb50b3e7a98e9", "packages": [ { "name": "aura/session", @@ -4065,7 +4065,9 @@ "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, - "platform": [], + "platform": { + "ext-xsl": "*" + }, "platform-dev": [], "platform-overrides": { "php": "7.0.33" diff --git a/package.json b/package.json index c38a8be..28f1882 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "dependencies": { "grunt": "~1.0.1", "grunt-contrib-cssmin": "~2.2.1", + "grunt-phpdocumentor": "^0.4.1", "grunt-potomo": "~3.5.0", "open-sans-fontface": "~1.4.0" }, @@ -21,7 +22,6 @@ "grunt-jsonlint": "~1.1.0", "grunt-markdownlint": "~2.1.0", "grunt-phpcs": "~0.4.0", - "grunt-phpdocumentor": "~0.4.1", "grunt-phpstan": "~0.2.0", "grunt-phpunit": "~0.3.6" }, diff --git a/yarn.lock b/yarn.lock index e0b5e29..d4400e8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -894,7 +894,7 @@ grunt-phpcs@~0.4.0: resolved "https://registry.yarnpkg.com/grunt-phpcs/-/grunt-phpcs-0.4.0.tgz#a08d625fc64465e453b2bd93f810b2a81e94bdaa" integrity sha1-oI1iX8ZEZeRTsr2T+BCyqB6Uvao= -grunt-phpdocumentor@~0.4.1: +grunt-phpdocumentor@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/grunt-phpdocumentor/-/grunt-phpdocumentor-0.4.1.tgz#513a5cefd8804d45792ea35ddfbcb2471e307141" integrity sha1-UTpc79iATUV5LqNd37yyRx4wcUE=