Skip to content

Commit

Permalink
fix(package.json): update typedoc to latest beta and fix npmbd
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Dec 28, 2020
1 parent a876517 commit 783ba76
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 136 deletions.
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

**diff**(`a`: number, `b`: number): number

*Defined in [index.ts:11](https://github.com/Xunnamius/workflow-playground/blob/e537358/src/index.ts#L11)*
*Defined in [index.ts:11](https://github.com/Xunnamius/workflow-playground/blob/a876517/src/index.ts#L11)*

Returns the difference of `a` and `b`

Expand All @@ -33,7 +33,7 @@ ___

**mult**(`a`: number, `b`: number): number

*Defined in [index.ts:18](https://github.com/Xunnamius/workflow-playground/blob/e537358/src/index.ts#L18)*
*Defined in [index.ts:18](https://github.com/Xunnamius/workflow-playground/blob/a876517/src/index.ts#L18)*

Returns the product of `a` and `b`

Expand All @@ -52,7 +52,7 @@ ___

**sum**(`a`: number, `b`: number): number

*Defined in [index.ts:4](https://github.com/Xunnamius/workflow-playground/blob/e537358/src/index.ts#L4)*
*Defined in [index.ts:4](https://github.com/Xunnamius/workflow-playground/blob/a876517/src/index.ts#L4)*

Returns the sum of `a` and `b`

Expand Down
170 changes: 39 additions & 131 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"build": "npm run build-dist --",
"build-changelog": "conventional-changelog --outfile CHANGELOG.md --preset angular --config .changelogrc.js --release-count 0 --skip-unstable && (if [ \"$CHANGELOG_SKIP_TITLE\" != 'true' ]; then { node -e 'console.log(require(\"./.changelogrc.js\").changelogTitle)'; cat CHANGELOG.md; } > CHANGELOG.md.tmp && mv CHANGELOG.md.tmp CHANGELOG.md; fi) && prettier --write CHANGELOG.md --loglevel warn",
"build-dist": "npm run clean && NODE_ENV=production tsc --project tsconfig.types.json && NODE_ENV=production webpack --config-name main && NODE_ENV=esm babel src --extensions .ts --out-dir dist/lib --out-file-extension .mjs && { echo -n '\"undefined\"!=typeof window&&(window.global=window);'; cat dist/lib/index.js; } > dist/lib/index.js-tmp && mv -f dist/lib/index.js-tmp dist/lib/index.js",
"build-docs": "rm -rf tmp-docs tmp-docs-diff docs-diff && typedoc --plugin typedoc-plugin-markdown --out tmp-docs --readme none --mode library src/index.ts && find tmp-docs -name '*.md' -exec sed -i -e 's/`__namedParameters`: //g' {} + && find tmp-docs -name '*.md' -exec sed -i -e 's/__namedParameters/\\(destructured\\)/g' {} + && sed -i -e 1,4d tmp-docs/README.md && if [ ! -d docs ]; then mv tmp-docs docs; exit $?; fi && cp -rf tmp-docs tmp-docs-diff && cp -rf docs docs-diff && find docs-diff -name '*.md' -exec sed -i '/^\\*Defined in \\[.*\\]\\(.*\\)\\*$/d' {} + && find tmp-docs-diff -name '*.md' -exec sed -i '/^\\*Defined in \\[.*\\]\\(.*\\)\\*$/d' {} +; [ $? -ne 0 ] && echo 'build failed (try `npm run lint`)' && rm -rf tmp-docs tmp-docs-diff docs-diff && exit 1; if [ \"$(find ./docs-diff -type f -print0 | xargs -0 sha1sum | awk '{print $1}' | sha1sum)\" = \"$(find ./tmp-docs-diff -type f -print0 | xargs -0 sha1sum | awk '{print $1}' | sha1sum)\" ]; then echo 'no rebuild necessary'; else rm -r docs && mv tmp-docs docs && echo 'build successful'; fi; rm -rf tmp-docs tmp-docs-diff docs-diff",
"build-docs": "typedoc --plugin typedoc-plugin-markdown --out docs --readme none src/index.ts && find docs -name '*.md' -exec sed -i -e 's/`__namedParameters`: //g' {} + && find docs -name '*.md' -exec sed -i -e 's/__namedParameters/\\(destructured\\)/g' {} + && find docs -name '*.md' -exec sed -i -e 's/Project: //g' {} + && sed -i -e 1,4d docs/README.md",
"build-stats": "NODE_ENV=production webpack --config-name main --json > bundle-stats.json",
"clean": "rm -rf dist npm.pipe coverage external-scripts/bin",
"format": "sort-package-json && prettier --write .",
Expand Down Expand Up @@ -91,7 +91,7 @@
"trailingComma": "none",
"overrides": [
{
"files": "**/*.@(ts|js)?(x)",
"files": "**/*.@(ts|?(@(c|m))js)?(x)",
"options": {
"parser": "babel-ts",
"printWidth": 90
Expand Down

0 comments on commit 783ba76

Please sign in to comment.