Skip to content

Commit

Permalink
feat(ioredis): add new package @tsed/ioredis
Browse files Browse the repository at this point in the history
Closes: #2060
  • Loading branch information
Romakita committed Aug 29, 2022
1 parent 45bb9fc commit 223cd74
Show file tree
Hide file tree
Showing 41 changed files with 2,295 additions and 263 deletions.
81 changes: 3 additions & 78 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,82 +283,7 @@ jobs:
publish-docs:
runs-on: ubuntu-latest
needs: deploy-packages
strategy:
matrix:
node-version: [16.x]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
ref: "production"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile --network-timeout 500000
- name: Build pages
env:
CI: true
run: yarn api:build && yarn vuepress:docs:build
- name: Publish pages
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn docs:publish
# publish-refs:
# runs-on: ubuntu-latest
# needs: deploy-packages
# if: ${{ github.event_name != 'pull_request' && (contains(github.ref, 'production') || contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc')) }}
#
# strategy:
# matrix:
# node-version: [16.x]
#
# steps:
# - uses: actions/checkout@v2
# with:
# ref: "production"
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node-version }}
# - name: Install dependencies
# run: yarn install --frozen-lockfile --network-timeout 500000
# - name: Build pages
# env:
# CI: true
# run: yarn api:build && yarn vuepress:ref:build
# - name: Publish pages
# env:
# CI: true
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: yarn docs:publish
# publish-examples:
# runs-on: ubuntu-latest
# needs: deploy-packages
# if: ${{ github.event_name != 'pull_request' && (contains(github.ref, 'production') || contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc')) }}
#
# strategy:
# matrix:
# node-version: [ 16.x ]
#
# steps:
# - uses: actions/checkout@v2
# with:
# ref: 'production'
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node-version }}
# - name: Install dependencies
# run: yarn install --frozen-lockfile
# - name: Publish examples
# env:
# CI: true
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: yarn examples:publish

- run: gh workflow run website.yml --ref $GITHUB_REF_NAME
24 changes: 19 additions & 5 deletions docs/.vuepress/config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ module.exports = ({title, description, base = "", url, apiRedirectUrl = "", them
text: "Objection.js",
link: `${base}/tutorials/objection.html`
},
{
text: "IORedis",
link: `${base}/tutorials/ioredis.html`
},
{
text: "GraphQL",
link: `${base}/tutorials/graphql.html`
Expand Down Expand Up @@ -289,12 +293,16 @@ module.exports = ({title, description, base = "", url, apiRedirectUrl = "", them
position: "right",
items: [
{
text: "v4 (obsolete)",
link: "http://v4.tsed.io"
text: "v7 (next)",
link: "http://v7.tsed.io"
},
{
text: "v5 (maintenance)",
text: "v5 (obsolete)",
link: "http://v5.tsed.io"
},
{
text: "v4 (obsolete)",
link: "http://v4.tsed.io"
}
]
}
Expand All @@ -311,6 +319,10 @@ module.exports = ({title, description, base = "", url, apiRedirectUrl = "", them
title: "Migration",
collapsable: true,
children: [
{
title: "Migrate to v7",
path: `https://v7.tsed.io/getting-started/migration-from-v6`
},
{
title: "Migrate from v5",
path: `${base}/getting-started/migration-from-v5`
Expand Down Expand Up @@ -381,8 +393,9 @@ module.exports = ({title, description, base = "", url, apiRedirectUrl = "", them
{title: "Stripe", path: base + "/tutorials/stripe"},
{title: "Agenda", path: base + "/tutorials/agenda"},
{title: "Terminus", path: base + "/tutorials/terminus"},
{title: "Serverless", path: base + "/tutorials/serverless"}
]
{title: "Serverless", path: base + "/tutorials/serverless"},
{title: "IORedis", path: base + "/tutorials/ioredis"}
].sort((a, b) => (a.title < b.title ? -1 : 1))
},
{
title: "Extras",
Expand Down Expand Up @@ -418,6 +431,7 @@ module.exports = ({title, description, base = "", url, apiRedirectUrl = "", them
base + "/tutorials/agenda",
base + "/tutorials/terminus",
base + "/tutorials/serverless",
base + "/tutorials/ioredis",
base + "/docs/controllers",
base + "/docs/providers",
base + "/docs/model",
Expand Down
29 changes: 29 additions & 0 deletions docs/.vuepress/public/ioredis.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ frameworks:
- title: TypeORM
href: /tutorials/typeorm.html
src: /typeorm.png
- title: IORedis
href: /tutorials/ioredis.html
src: /ioredis.svg
- title: Apollo
href: /tutorials/graphql.html#apollo
src: /apollo-graphql-compact.svg
Expand Down
Loading

0 comments on commit 223cd74

Please sign in to comment.