-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from aiji42/v5.0.0
V5.0.0
- Loading branch information
Showing
30 changed files
with
2,828 additions
and
9,067 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,56 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- beta | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
Test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.x | ||
registry-url: https://registry.npmjs.org | ||
- uses: actions/cache@v2 | ||
with: | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install dependencies 💿 | ||
run: yarn install --frozen-lockfile | ||
- name: Run Tests 🧪 | ||
run: yarn test:coverage | ||
- name: Report coverage (client) 📏 | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
Publish: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- Test | ||
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.x | ||
registry-url: https://registry.npmjs.org | ||
- uses: actions/cache@v2 | ||
with: | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install dependencies 💿 | ||
run: yarn install --frozen-lockfile | ||
- name: Publish 🚀 | ||
run: yarn run semantic-release | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ npm-debug.log* | |
coverage | ||
build | ||
dist | ||
/*.d.ts | ||
|
||
# log | ||
*.log |
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 commitlint --edit | ||
yarn commitlint --edit |
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 format && yarn lint --max-warnings=0 | ||
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
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
import { buildSync } from 'esbuild' | ||
import * as fs from 'fs' | ||
|
||
const readdirRecursively = (dir, files = []) => { | ||
const entries = fs.readdirSync(dir, { withFileTypes: true }) | ||
const dirs = [] | ||
for (const dirent of entries) { | ||
if (dirent.isDirectory()) dirs.push(`${dir}/${dirent.name}`) | ||
if (dirent.isFile()) files.push(`${dir}/${dirent.name}`) | ||
} | ||
for (const d of dirs) { | ||
files = readdirRecursively(d, files) | ||
} | ||
return files | ||
} | ||
|
||
buildSync({ | ||
entryPoints: readdirRecursively('./src').filter( | ||
(n) => n.match(/\.(ts|tsx)$/) && !n.includes('__tests__') | ||
), | ||
outdir: './dist', | ||
format: 'esm', | ||
target: 'esnext' | ||
}) |
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.
ca2b1f1
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:
next-fortress – ./
next-fortress-aiji42.vercel.app
next-fortress.vercel.app
next-fortress-git-main-aiji42.vercel.app