Skip to content

Commit

Permalink
merge: prepare for release v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CSharperMantle committed Jun 19, 2023
2 parents 1ab09d6 + 2a977a7 commit c41b815
Show file tree
Hide file tree
Showing 90 changed files with 6,851 additions and 7,318 deletions.
18 changes: 13 additions & 5 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@ version: "2"
plugins:
eslint:
enabled: true
channel: "eslint-7"
channel: "eslint-8"
config:
extensions:
- .js
- .jsx
- .ts
- .tsx
duplication:
enabled: true
config:
languages:
javascript:
mass_threshold: 45
typescript:
mass_threshold: 45

exclude_patterns:
- "**/__tests__/"
Expand All @@ -20,11 +28,11 @@ exclude_patterns:
- ".yarn/"
- ".github/"
- ".vscode/"
- "assets/"
- "public/"
- "**/*.cjs"
- ".pnp.*"
- "jest.config.js"
- "jest-preprocess.js"
- "gatsby-config.js"
- "gatsby-node.js"
- "gatsby-browser.js"
- "gatsby-ssr.js"
- "gatsby-*.[jt]s"
- "gatsby-*.[jt]sx"
5 changes: 5 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@
"ecmaVersion": 12,
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["react", "@typescript-eslint"]
}
9 changes: 2 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"

Expand Down
39 changes: 1 addition & 38 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [develop, feature-*, main, rel-*]
pull_request:
# The branches below must be a subset of the branches above
branches: [develop]

jobs:
Expand All @@ -31,39 +19,14 @@ jobs:
fail-fast: false
matrix:
language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ jobs:
build:
runs-on: ubuntu-20.04
env:
- BUILD_ADD_PATH_PREFIX: true
BUILD_ADD_PATH_PREFIX: true
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
Expand All @@ -27,7 +26,7 @@ jobs:
run: |
yarn run build --prefix-paths
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.4.0
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages
folder: public
36 changes: 10 additions & 26 deletions .github/workflows/gatsby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,6 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
- name: Set up dependencies
run: |
yarn install --immutable
- name: Static type check
run: |
yarn run check
- name: Build
run: |
yarn run build
test:
needs: [build]
strategy:
matrix:
os:
Expand All @@ -34,34 +14,38 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Set up dependencies
run: |
yarn install --immutable
- name: Build
run: |
yarn run build
- name: Static type check
run: |
yarn run check
- name: Test
run: |
yarn run test
coverage:
needs: [test]
needs: [build]
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/develop' }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
- name: Set up dependencies
run: |
yarn install --immutable
- name: Coverage
uses: paambaati/codeclimate-action@v3.0.0
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,6 @@ temp/

# TypeScript build artifacts
build/

# Generated Gatsby GraphQL types
gatsby-types.d.ts
24 changes: 0 additions & 24 deletions .gitpod.yml

This file was deleted.

23 changes: 22 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,30 @@
{
"name": "Launch Edge 8000",
"request": "launch",
"type": "pwa-msedge",
"type": "msedge",
"url": "http://localhost:8000",
"webRoot": "${workspaceFolder}/public/"
},
{
"name": "Launch Firefox 8000",
"request": "launch",
"type": "firefox",
"url": "http://localhost:8000",
"webRoot": "${workspaceFolder}/public/"
},
{
"name": "Launch Edge 9000",
"request": "launch",
"type": "msedge",
"url": "http://localhost:9000",
"webRoot": "${workspaceFolder}/public/"
},
{
"name": "Launch Firefox 9000",
"request": "launch",
"type": "firefox",
"url": "http://localhost:9000",
"webRoot": "${workspaceFolder}/public/"
}
]
}
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"tetriminos",
"topo",
"toposort",
"typegen",
"Unmount",
"viewmodel",
"workerloader"
Expand Down
2 changes: 1 addition & 1 deletion .yarn/sdks/eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint",
"version": "8.38.0-sdk",
"version": "8.41.0-sdk",
"main": "./lib/api.js",
"type": "commonjs"
}
2 changes: 1 addition & 1 deletion .yarn/sdks/prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier",
"version": "2.8.7-sdk",
"version": "2.8.8-sdk",
"main": "./index.js",
"type": "commonjs"
}
4 changes: 2 additions & 2 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ cd periotrisjs

需要手动安装的依赖:

- [Node.js v14.x+](https://nodejs.org/)
- [yarn berry+](https://yarnpkg.com/)
- [Node.js 18.x](https://nodejs.org/)
- [yarn 3+](https://yarnpkg.com/)

之后,运行:

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ You may omit the `--depth=1` flag if you want a complete commit history rather t

Dependencies that need to be installed manually:

- [Node.js v14.x+](https://nodejs.org/)
- [yarn berry+](https://yarnpkg.com/)
- [Node.js 18.x](https://nodejs.org/)
- [yarn 3+](https://yarnpkg.com/)

Once you have installed all above, run the following commands:

Expand Down
File renamed without changes.
Loading

1 comment on commit c41b815

@vercel
Copy link

@vercel vercel bot commented on c41b815 Jun 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.