-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove all deps and use one bundle
- Loading branch information
1 parent
b0ad4d3
commit 620470f
Showing
8 changed files
with
780 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ src/default_theme/* | |
coverage/* | ||
lib/* | ||
declarations/* | ||
documentation.js | ||
bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* eslint no-console: 0 */ | ||
|
||
import yargs from 'yargs'; | ||
import commands from './src/commands/index.js'; | ||
import { hideBin } from 'yargs/helpers'; | ||
|
||
export default yargs(hideBin(process.argv)) | ||
.strict() | ||
.command(commands.build) | ||
.command(commands.lint) | ||
.command(commands.readme) | ||
.example('documentation build foo.js -f md > API.md') | ||
.example('documentation readme index.js -s "API Docs" --github') | ||
.version() | ||
.usage( | ||
`Usage: | ||
# generate markdown docs for index.js and files it references | ||
$0 build index.js -f md | ||
# generate html docs for all files in src | ||
$0 build src/** -f html -o docs | ||
# document index.js, ignoring any files it requires or imports | ||
$0 build index.js -f md --shallow | ||
# validate JSDoc syntax in util.js | ||
$0 lint util.js | ||
# update the API section of README.md with docs from index.js | ||
$0 readme index.js --section=API | ||
# build docs for all values exported by index.js | ||
$0 build --document-exported index.js | ||
` | ||
) | ||
.recommendCommands() | ||
.help().argv; |
Oops, something went wrong.