Skip to content

Commit

Permalink
Fix deps #289
Browse files Browse the repository at this point in the history
ref DEV-1251
  • Loading branch information
tung2744 authored Apr 30, 2024
2 parents 8dbc337 + d8b5c11 commit 6148e7d
Show file tree
Hide file tree
Showing 14 changed files with 23,161 additions and 11,780 deletions.
7 changes: 3 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
"expect": "readonly",
"it": "readonly"
},
"plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"],
"plugins": ["@typescript-eslint", "eslint-plugin-tsdoc", "import"],
"rules": {
"import/no-duplicates": ["error"],
"@typescript-eslint/adjacent-overload-signatures": ["error"],
"@typescript-eslint/array-type": ["off"],
"@typescript-eslint/await-thenable": ["error"],
Expand Down Expand Up @@ -65,7 +66,6 @@
}
],
"@typescript-eslint/no-dupe-class-members": ["error"],
"@typescript-eslint/no-duplicate-imports": ["error"],
"@typescript-eslint/no-dynamic-delete": ["off"],
"@typescript-eslint/no-empty-function": ["off"],
"@typescript-eslint/no-empty-interface": ["off"],
Expand All @@ -76,7 +76,6 @@
"@typescript-eslint/no-extraneous-class": ["error"],
"@typescript-eslint/no-floating-promises": ["error"],
"@typescript-eslint/no-for-in-array": ["error"],
"@typescript-eslint/no-implicit-any-catch": ["error"],
"@typescript-eslint/no-implied-eval": ["error"],
"@typescript-eslint/no-inferrable-types": [
"error",
Expand All @@ -97,7 +96,6 @@
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": ["error"],
"@typescript-eslint/no-non-null-asserted-optional-chain": ["error"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"@typescript-eslint/no-parameter-properties": ["error"],
"@typescript-eslint/no-redeclare": ["error"],
"@typescript-eslint/no-require-imports": ["error"],
"@typescript-eslint/no-restricted-imports": ["off"],
Expand Down Expand Up @@ -147,6 +145,7 @@
"@typescript-eslint/non-nullable-type-assertion-style": ["error"],
"@typescript-eslint/object-curly-spacing": ["off"],
"@typescript-eslint/padding-line-between-statements": ["off"],
"@typescript-eslint/parameter-properties": ["error"],
"@typescript-eslint/prefer-as-const": ["error"],
"@typescript-eslint/prefer-enum-initializers": ["error"],
"@typescript-eslint/prefer-for-of": ["off"],
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
with:
node-version-file: "./.tool-versions"
- run: npm ci
- run: npm ci
working-directory: ./website
- run: npm audit
if: ${{ !cancelled() }}
- run: npm audit
working-directory: ./website
if: ${{ !cancelled() }}
- run: npm run format
if: ${{ !cancelled() }}
- run: npm run lint
Expand All @@ -29,6 +36,8 @@ jobs:
if: ${{ !cancelled() }}
- run: npm run bundle
if: ${{ !cancelled() }}
- run: make docs
if: ${{ !cancelled() }}

webapp-image:
runs-on: ubuntu-22.04
Expand All @@ -43,6 +52,7 @@ jobs:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- run: make push-image
if: ${{ github.repository == 'authgear/authgear-sdk-js' && github.event_name == 'push' }}

# react_native_ios cannot be built on simulator due to WeChat SDK

Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ docs:
--name @authgear/web \
--entryPoints packages/authgear-web/index.d.ts \
--out ./temp/docs/web \
--plugin typedoc-plugin-markdown \
--namedAnchors \
--entryDocument index.md
npx typedoc \
Expand All @@ -28,6 +29,7 @@ docs:
--name @authgear/react-native \
--entryPoints packages/authgear-react-native/index.d.ts \
--out ./temp/docs/react-native \
--plugin typedoc-plugin-markdown \
--namedAnchors \
--entryDocument index.md
npx typedoc \
Expand All @@ -36,6 +38,7 @@ docs:
--name @authgear/capacitor \
--entryPoints packages/authgear-capacitor/index.d.ts \
--out ./temp/docs/capacitor \
--plugin typedoc-plugin-markdown \
--namedAnchors \
--entryDocument index.md
cp ./typedoc/index.md ./temp/docs/index.md
Expand All @@ -46,7 +49,7 @@ docs:
rm -rf ./website/docs
cp -R ./temp/docs/. ./website/docs
cp ./temp/sidebars.js ./website
(cd website && yarn build)
(cd website && npm run build)

.PHONY: deploy-docs
deploy-docs: docs
Expand Down
Loading

0 comments on commit 6148e7d

Please sign in to comment.