From 54afe65ddaf65b2a19063ff404b6e133fd4522ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Mon, 4 Mar 2019 15:28:51 +0100 Subject: [PATCH] Use bin script instead of npm script --- bin/generate-docs.sh | 11 +++++++++++ packages/shortcode/package.json | 6 ------ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100755 bin/generate-docs.sh diff --git a/bin/generate-docs.sh b/bin/generate-docs.sh new file mode 100755 index 0000000000000..2a43ca7e6799e --- /dev/null +++ b/bin/generate-docs.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +declare -a packages=( + "e2e-test-utils" + "shortcode" +) + +for package in "${packages[@]}" +do + npx docgen packages/${package}/src/index.js --output packages/${package}/README.md --to-token; +done diff --git a/packages/shortcode/package.json b/packages/shortcode/package.json index 8987c62c2e98e..5fd63da90e79e 100644 --- a/packages/shortcode/package.json +++ b/packages/shortcode/package.json @@ -25,13 +25,7 @@ "lodash": "^4.17.11", "memize": "^1.0.5" }, - "devDependencies": { - "@wordpress/docgen": "file:../docgen" - }, "publishConfig": { "access": "public" - }, - "scripts": { - "docs:generate": "docgen ./src/index.js --output ./README.md --to-token" } }