Skip to content

Commit

Permalink
Modernize build
Browse files Browse the repository at this point in the history
  • Loading branch information
tu4mo committed May 29, 2024
1 parent 206589b commit 2323b5b
Show file tree
Hide file tree
Showing 28 changed files with 12,131 additions and 19,992 deletions.
21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"root": true,
"rules": {}
}
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'npm'

- name: Install
run: npm ci --legacy-peer-deps --no-audit

- name: Check types
run: npm run type-check

- name: Test
run: npm test

Expand Down
2 changes: 1 addition & 1 deletion functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"logs": "firebase functions:log"
},
"engines": {
"node": "18"
"node": "20"
},
"main": "lib/index.js",
"dependencies": {
Expand Down
4 changes: 4 additions & 0 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
gtag('js', new Date())
gtag('config', 'UA-117384183-1')
</script>
<script
type="module"
src="/src/index.tsx"
></script>
<noscript>Your browser does not support JavaScript.</noscript>
</body>
</html>
Loading

0 comments on commit 2323b5b

Please sign in to comment.