Skip to content

Commit

Permalink
chore: build main package before building website
Browse files Browse the repository at this point in the history
  • Loading branch information
ythecombinator committed Jan 31, 2022
1 parent b285763 commit 2923ea6
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion website/docs/api/functions/Exact.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ custom_edit_url: null

#### Defined in

[src/components/Exact/Exact.tsx:13](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/Exact/Exact.tsx#L13)
[src/components/Exact/Exact.tsx:13](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/Exact/Exact.tsx#L13)
2 changes: 1 addition & 1 deletion website/docs/api/functions/Match.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ custom_edit_url: null

#### Defined in

[src/components/Match/Match.tsx:36](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/Match/Match.tsx#L36)
[src/components/Match/Match.tsx:36](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/Match/Match.tsx#L36)
2 changes: 1 addition & 1 deletion website/docs/api/functions/Otherwise.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ custom_edit_url: null

#### Defined in

[src/components/Otherwise/Otherwise.tsx:11](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/Otherwise/Otherwise.tsx#L11)
[src/components/Otherwise/Otherwise.tsx:11](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/Otherwise/Otherwise.tsx#L11)
2 changes: 1 addition & 1 deletion website/docs/api/functions/Switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ custom_edit_url: null

#### Defined in

[src/components/Switch/Switch.tsx:10](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/Switch/Switch.tsx#L10)
[src/components/Switch/Switch.tsx:10](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/Switch/Switch.tsx#L10)
2 changes: 1 addition & 1 deletion website/docs/api/functions/When.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ custom_edit_url: null

#### Defined in

[src/components/When/When.tsx:15](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/When/When.tsx#L15)
[src/components/When/When.tsx:15](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/When/When.tsx#L15)
2 changes: 1 addition & 1 deletion website/docs/api/functions/With.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ custom_edit_url: null

#### Defined in

[src/components/With/With.tsx:13](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/With/With.tsx#L13)
[src/components/With/With.tsx:13](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/With/With.tsx#L13)
2 changes: 1 addition & 1 deletion website/docs/api/functions/getPatternMatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ custom_edit_url: null

#### Defined in

[src/utils/pattern-match.ts:17](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/utils/pattern-match.ts#L17)
[src/utils/pattern-match.ts:17](https://github.com/ythecombinator/react-matchez/blob/b285763/src/utils/pattern-match.ts#L17)
2 changes: 1 addition & 1 deletion website/docs/api/functions/usePatternMatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ custom_edit_url: null

#### Defined in

[src/utils/pattern-match.ts:44](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/utils/pattern-match.ts#L44)
[src/utils/pattern-match.ts:44](https://github.com/ythecombinator/react-matchez/blob/b285763/src/utils/pattern-match.ts#L44)
6 changes: 3 additions & 3 deletions website/docs/api/interfaces/MatchProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The patterns the `value` prop should match. Can be represented as `With`, `When`

#### Defined in

[src/components/Match/Match.tsx:21](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/Match/Match.tsx#L21)
[src/components/Match/Match.tsx:21](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/Match/Match.tsx#L21)

___

Expand All @@ -34,7 +34,7 @@ Indicates whether anything that matches should render or only the first match.

#### Defined in

[src/components/Match/Match.tsx:23](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/Match/Match.tsx#L23)
[src/components/Match/Match.tsx:23](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/Match/Match.tsx#L23)

___

Expand All @@ -46,4 +46,4 @@ Entry point to create a pattern-matching expression.

#### Defined in

[src/components/Match/Match.tsx:19](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/Match/Match.tsx#L19)
[src/components/Match/Match.tsx:19](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/Match/Match.tsx#L19)
2 changes: 1 addition & 1 deletion website/docs/api/interfaces/OtherwiseProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Any node to be rendered when nothing matches `With` and `When` siblings.

#### Defined in

[src/components/Otherwise/Otherwise.tsx:8](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/Otherwise/Otherwise.tsx#L8)
[src/components/Otherwise/Otherwise.tsx:8](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/Otherwise/Otherwise.tsx#L8)
4 changes: 2 additions & 2 deletions website/docs/api/interfaces/WhenProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Any node to be rendered when the predicate matches.

#### Defined in

[src/components/When/When.tsx:8](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/When/When.tsx#L8)
[src/components/When/When.tsx:8](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/When/When.tsx#L8)

## Methods

Expand All @@ -46,4 +46,4 @@ will expose it as its first parameter.

#### Defined in

[src/components/When/When.tsx:12](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/When/When.tsx#L12)
[src/components/When/When.tsx:12](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/When/When.tsx#L12)
2 changes: 1 addition & 1 deletion website/docs/api/types/ExactProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ custom_edit_url: null

#### Defined in

[src/components/Exact/Exact.tsx:7](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/Exact/Exact.tsx#L7)
[src/components/Exact/Exact.tsx:7](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/Exact/Exact.tsx#L7)
2 changes: 1 addition & 1 deletion website/docs/api/types/SwitchProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ custom_edit_url: null

#### Defined in

[src/components/Switch/Switch.tsx:5](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/Switch/Switch.tsx#L5)
[src/components/Switch/Switch.tsx:5](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/Switch/Switch.tsx#L5)
2 changes: 1 addition & 1 deletion website/docs/api/types/WithProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ custom_edit_url: null

#### Defined in

[src/components/With/With.tsx:7](https://github.com/ythecombinator/react-matchez/blob/f44ba50/src/components/With/With.tsx#L7)
[src/components/With/With.tsx:7](https://github.com/ythecombinator/react-matchez/blob/b285763/src/components/With/With.tsx#L7)
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "yarn run build:changelog && TYPEDOC_WATCH=true docusaurus start",
"build": "yarn run build:changelog && TYPEDOC_WATCH=false docusaurus build",
"build": "yarn run build:package && yarn run build:changelog && TYPEDOC_WATCH=false docusaurus build",
"build:package": "cd .. && yarn run build",
"build:changelog": "echo '---' > ./docs/CHANGELOG.md && echo 'id: changelog' >> ./docs/CHANGELOG.md && echo 'title: Changelog' >> ./docs/CHANGELOG.md && echo '---' >> ./docs/CHANGELOG.md && cat ../CHANGELOG.md >> ./docs/CHANGELOG.md ",
"swizzle": "docusaurus swizzle --danger",
"deploy": "docusaurus deploy",
Expand Down

0 comments on commit 2923ea6

Please sign in to comment.