-
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CRA to Vite and upgrade dependencies (#127)
- [x] Migrate CRA to Vite - [x] Upgrade node version to 18 in Github actions - [x] Upgrade node version to 18 in Docker - [x] Migrate styled-jsx to tailwind - [x] Upgrade dependencies - [x] Upgrade `@sentry/react`. Remove `@sentry/tracing` because we don't need to measure performance by Sentry. - [x] Upgrade `jotai`. Add `jotai-immer` because the `jotai` package no longer includes `jotai/immer`. - [x] Upgrade `typescirpt` - [x] Migrate jest to vitest - [x] Migrate `geist-ui` to `shadcn-ui` - [x] Check all Todos
- Loading branch information
Showing
167 changed files
with
12,955 additions
and
17,766 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 |
---|---|---|
|
@@ -5,28 +5,26 @@ on: | |
- dev | ||
|
||
jobs: | ||
build: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: setup node | ||
uses: actions/setup-node@v3 | ||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
node-version: "16" | ||
version: 9 | ||
run_install: false | ||
|
||
- name: Cache pnpm modules | ||
uses: actions/cache@v3 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
node-version: 18 | ||
cache: 'pnpm' | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6.0.2 | ||
run_install: true | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- run: pnpm test |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:16 | ||
FROM node:18 | ||
|
||
# Install pnpm | ||
RUN npm install -g pnpm | ||
|
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,17 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": false, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "global.css", | ||
"baseColor": "zinc", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/utils" | ||
} | ||
} |
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,8 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu({ react: true, rules: { | ||
'react-refresh/only-export-components': 'off', | ||
'style/brace-style': ['error', '1tbs'], | ||
'antfu/top-level-function': 'off', | ||
'@typescript-eslint/consistent-type-definitions': ['warn', 'type'], | ||
} }) |
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,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Regex visualizer & editor, make the regular expression easier." | ||
/> | ||
<meta name="keywords" content="editor,regex,regexp,visualizer" /> | ||
<link rel="icon" href="/favicon.png" /> | ||
<title>Regex Vis</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<div id="portal"></div> | ||
<% if (!isDev) { %> | ||
<!-- Cloudflare Web Analytics --> | ||
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "f684c9449da14b2396a0a944c9acb39f"}'></script> | ||
<!-- End Cloudflare Web Analytics --> | ||
<% } %> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
</html> |
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.
Oops, something went wrong.