-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: upgrade to typescript 5 (#524)
- Loading branch information
Showing
139 changed files
with
28,475 additions
and
32,460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,29 +6,24 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v1 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.6.1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
cache: "pnpm" | ||
|
||
- name: Install project dependencies and build | ||
run: | | ||
yarn --ignore-engines --frozen-lockfile | ||
yarn build | ||
pnpm install --frozen-lockfile | ||
pnpm run build | ||
git diff --exit-code | ||
- name: Prettier check | ||
run: yarn lint | ||
run: pnpm run lint | ||
|
||
- name: Run test with coverage | ||
run: yarn test-coverage | ||
run: pnpm run test-coverage | ||
|
||
- uses: codecov/codecov-action@v3 | ||
with: | ||
|
@@ -40,44 +35,39 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v1 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.6.1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
cache: "pnpm" | ||
|
||
- name: Install project dependencies and build | ||
run: | | ||
yarn --ignore-engines --frozen-lockfile | ||
yarn build | ||
docker-compose -f ./packages/e2e-test/docker/docker-compose.yml build | ||
pnpm install --frozen-lockfile | ||
pnpm run build | ||
# TODO uncomment me | ||
# docker-compose -f ./packages/e2e-test/docker/docker-compose.yml build | ||
- name: e2e test | ||
run: yarn e2e-test | ||
run: pnpm run e2e-test | ||
|
||
lint-staged: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v1 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.6.1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
cache: "pnpm" | ||
|
||
- name: Install project dependencies and build | ||
run: | | ||
yarn --ignore-engines --frozen-lockfile | ||
yarn build | ||
pnpm install --frozen-lockfile | ||
pnpm run build | ||
- name: Get changed files | ||
uses: tj-actions/[email protected] | ||
id: changed-files | ||
|
@@ -91,4 +81,4 @@ jobs: | |
- name: Run lint for changed files | ||
if: ${{ steps.changed-files.outputs.all_changed_files != '' }} | ||
run: | | ||
yarn eslint -c .eslintrc.next.js ${{ steps.changed-files.outputs.all_changed_files }} | ||
npx eslint -c .eslintrc.next.js ${{ steps.changed-files.outputs.all_changed_files }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,77 +15,65 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v1 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.6.1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
cache: 'pnpm' | ||
|
||
- name: Install project dependencies and build | ||
run: | | ||
yarn --ignore-engines --frozen-lockfile | ||
yarn build | ||
pnpm install --frozen-lockfile | ||
pnpm run build | ||
git diff --exit-code | ||
- name: Prettier check | ||
run: yarn lint | ||
run: pnpm run lint | ||
|
||
- name: Run test with coverage | ||
run: yarn test-coverage | ||
run: pnpm run test-coverage | ||
|
||
- uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | ||
files: ./coverage/cobertura-coverage.xml | ||
verbose: true # optional (default = false) | ||
|
||
test-e2e: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v1 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
version: 8.6.1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'pnpm' | ||
|
||
- name: Install project dependencies and build | ||
run: | | ||
yarn --ignore-engines --frozen-lockfile | ||
yarn build | ||
pnpm install --frozen-lockfile | ||
pnpm run build | ||
- name: e2e test | ||
run: yarn e2e-test | ||
run: pnpm run e2e-test | ||
|
||
lint-staged: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v1 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
version: 8.6.1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'pnpm' | ||
|
||
- name: Install project dependencies and build | ||
run: | | ||
yarn --ignore-engines --frozen-lockfile | ||
yarn build | ||
pnpm install --frozen-lockfile | ||
pnpm run build | ||
- name: Get changed files | ||
uses: tj-actions/[email protected] | ||
id: changed-files | ||
|
@@ -99,18 +87,22 @@ jobs: | |
- name: Run lint for changed files | ||
if: ${{ steps.changed-files.outputs.all_changed_files != '' }} | ||
run: | | ||
yarn eslint -c .eslintrc.next.js ${{ steps.changed-files.outputs.all_changed_files }} | ||
npx eslint -c .eslintrc.next.js ${{ steps.changed-files.outputs.all_changed_files }} | ||
publish: | ||
needs: [test-unit, test-e2e, lint-staged] | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.6.1 | ||
- name: Setup Node ${{ matrix.node_version }} | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'pnpm' | ||
registry-url: "https://registry.npmjs.org" | ||
- name: Git Identity | ||
run: | | ||
|
@@ -120,7 +112,7 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install | ||
run: yarn --frozen-lockfile --frozen-lockfile | ||
run: pnpm install --frozen-lockfile | ||
# Define ${CURRENT_VERSION} | ||
- name: Set Current Version | ||
run: | | ||
|
@@ -185,9 +177,8 @@ jobs: | |
- name: Publish | ||
if: steps.tag_check.outputs.exists_tag == 'false' | ||
run: | | ||
yarn run build | ||
yarn run build-release | ||
yarn lerna publish from-package --yes --dist-tag $([ $PRERELEASE == 'true' ] && echo 'next' || echo 'latest') | ||
pnpm run build | ||
npx lerna publish from-package --yes --dist-tag $([ $PRERELEASE == 'true' ] && echo 'next' || echo 'latest') | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,4 +125,4 @@ experiment/*/lib | |
# IDE or environment specific files | ||
.idea | ||
.parcel-cache | ||
.DS_Store | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn commitlint --edit $1 | ||
npx commitlint --edit $1 | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn run lint | ||
npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Here is the API documentation of Lumos. It is generated by [TypeDoc](https://typedoc.org/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
3af1f4c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
lumos-website – ./
lumos-website-git-develop-magickbase.vercel.app
lumos-website.vercel.app
lumos-website-magickbase.vercel.app