Skip to content

Commit

Permalink
Merge pull request #92 from CityOfZion/CU-86a0uwqwy
Browse files Browse the repository at this point in the history
CU-86a0uwqwy - For neon-dappkit and wcsdk: Folders /dist and /docs sh…
  • Loading branch information
melanke authored Oct 10, 2023
2 parents 6904766 + 990cb02 commit c909526
Show file tree
Hide file tree
Showing 11 changed files with 176 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ jobs:
run: rush rebuild
- name: Publish Projects
run: rush publish --apply --target-branch main --publish --npm-auth-token ${{ secrets.NPM_TOKEN }} --add-commit-details --include-all
- name: Merge Docs
run: rush docs
- name: Publish Docs
uses: actions/upload-pages-artifact@v2
with:
path: './packages/wallet-connect-sdk-core/docs'
path: './docs'
- name: Deploy GitHub Pages
uses: actions/deploy-pages@v2
- name: Commit and Push package.json version update
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ yarn-error.log*
# build files
packages/*/dist/
packages/*/docs/
/docs/

# Runtime data
*.pid
Expand Down
13 changes: 13 additions & 0 deletions common/autoinstallers/rush-docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "rush-docs",
"version": "1.0.0",
"private": true,
"scripts": {
"update-script": "rush update-autoinstaller --name rush-docs"
},
"dependencies": {
"@types/node": "^20.8.2",
"typescript": "^4.3.2",
"typedoc": "^0.25.1"
}
}
89 changes: 89 additions & 0 deletions common/autoinstallers/rush-docs/pnpm-lock.yaml

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/wallet-connect-sdk-core",
"comment": "",
"type": "none"
}
],
"packageName": "@cityofzion/wallet-connect-sdk-core"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/wallet-connect-sdk-react",
"comment": "",
"type": "none"
}
],
"packageName": "@cityofzion/wallet-connect-sdk-react"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/wallet-connect-sdk-wallet-core",
"comment": "",
"type": "none"
}
],
"packageName": "@cityofzion/wallet-connect-sdk-wallet-core"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/wallet-connect-sdk-wallet-react",
"comment": "",
"type": "none"
}
],
"packageName": "@cityofzion/wallet-connect-sdk-wallet-react"
}
12 changes: 12 additions & 0 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"commands": [
{
"name": "docs",
"commandKind": "global",
"summary": "Used to generate documentation of each package",
"safeForSimultaneousRushProcesses": true,
"autoinstallerName": "rush-docs",
"shellCommand": "for /d %i in (./packages/*) do (npm run docs --prefix packages/%i/) && typedoc --options typedoc.json"
}
]
}
2 changes: 1 addition & 1 deletion packages/wallet-connect-sdk-wallet-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"scripts": {
"build": "microbundle-crl --no-compress --format modern,cjs",
"start": "microbundle-crl watch --no-compress --format modern,cjs",
"docs": "typedoc",
"docs": "typedoc src/index.ts",
"fmt": "eslint .",
"publishDocs:develop": "aws s3 sync ./docs s3://marketing-neon-wallet/dev/wksdk/react --acl public-read",
"publishDocs:prod": "aws s3 sync ./docs s3://marketing-neon-wallet/prod/wksdk/react --acl public-read"
Expand Down
17 changes: 17 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://typedoc.org/schema.json",
"tsconfig": "tsconfig.json",
"entryPoints": [
"packages/wallet-connect-sdk-core/",
"packages/wallet-connect-sdk-react/",
"packages/wallet-connect-sdk-wallet-core/",
"packages/wallet-connect-sdk-wallet-react/src/index.tsx"
],
"includeVersion": true,
"entryPointStrategy": "packages",
"out": "docs",
"exclude": ["**/dist/**"],
"compilerOptions": {
"jsx": "react"
}
}

0 comments on commit c909526

Please sign in to comment.