Skip to content

Commit

Permalink
Use bin script
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Mar 8, 2019
1 parent 49081c1 commit 9420471
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"
"wordcount"
)

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/wordcount/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,5 @@
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@wordpress/docgen": "file:../docgen"
},
"scripts": {
"docs:generate": "docgen ./src/index.js --output ./README.md --to-token"
}
}

0 comments on commit 9420471

Please sign in to comment.