Skip to content

Commit

Permalink
Use bin script instead of npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Mar 5, 2019
1 parent ac760ce commit 54afe65
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 11 additions & 0 deletions bin/generate-docs.sh
Original file line number Diff line number Diff line change
@@ -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
6 changes: 0 additions & 6 deletions packages/shortcode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 54afe65

Please sign in to comment.