refactor: code refactor
This commit is contained in:
parent
e30b2cc403
commit
687e02f38c
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
build
|
||||||
|
public/build
|
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM node:22-alpine AS base
|
||||||
|
|
||||||
|
RUN apk add --no-cache libc6-compat
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package.json package-lock.json ./
|
||||||
|
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm run build && npm cache clean --force
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
ENV PORT 3000
|
||||||
|
|
||||||
|
CMD ["npm", "run", "start"]
|
@ -2,7 +2,6 @@ import { Link } from "@remix-run/react";
|
|||||||
import {
|
import {
|
||||||
FaGithub,
|
FaGithub,
|
||||||
FaGitlab,
|
FaGitlab,
|
||||||
FaKey,
|
|
||||||
FaLinkedin,
|
FaLinkedin,
|
||||||
FaMastodon,
|
FaMastodon,
|
||||||
FaStackOverflow,
|
FaStackOverflow,
|
||||||
@ -50,9 +49,6 @@ export default function Index() {
|
|||||||
<a href="https://stackoverflow.com/users/10503039/nullndr">
|
<a href="https://stackoverflow.com/users/10503039/nullndr">
|
||||||
<FaStackOverflow />
|
<FaStackOverflow />
|
||||||
</a>
|
</a>
|
||||||
<a href="/key.pub" download={true}>
|
|
||||||
<FaKey />
|
|
||||||
</a>
|
|
||||||
</IconContext.Provider>
|
</IconContext.Provider>
|
||||||
</nav>
|
</nav>
|
||||||
<LinkWrapper>
|
<LinkWrapper>
|
||||||
|
4211
package-lock.json
generated
4211
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
55
package.json
55
package.json
@ -4,40 +4,39 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "remix vite:build",
|
"build": "remix vite:build",
|
||||||
"deploy": "npm run build && wrangler pages deploy ./build/client",
|
|
||||||
"dev": "remix vite:dev",
|
"dev": "remix vite:dev",
|
||||||
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
|
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
|
||||||
"start": "wrangler pages dev ./build/client",
|
"start": "remix-serve ./build/server/index.js",
|
||||||
"typecheck": "tsc",
|
"typecheck": "tsc"
|
||||||
"typegen": "wrangler types",
|
|
||||||
"preview": "npm run build && wrangler pages dev ./build/client",
|
|
||||||
"build-cf-types": "wrangler types"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@code-hike/mdx": "0.9.0",
|
"@code-hike/mdx": "0.9.0",
|
||||||
"@remix-run/node": "2.9.2",
|
"@remix-run/node": "2.12.1",
|
||||||
"@remix-run/serve": "2.9.2",
|
"@remix-run/react": "2.12.1",
|
||||||
"@remix-run/react": "2.9.2",
|
"@remix-run/serve": "2.12.1",
|
||||||
"esbuild": "0.20.2",
|
"codehike": "1.0.1",
|
||||||
"isbot": "4.1.0",
|
"esbuild": "0.24.0",
|
||||||
"mdx-bundler": "10.0.2",
|
"isbot": "5.1.17",
|
||||||
"react": "18.2.0",
|
"mdx-bundler": "10.0.3",
|
||||||
"react-dom": "18.2.0",
|
"react": "18.3.1",
|
||||||
"react-icons": "5.0.1"
|
"react-dom": "18.3.1",
|
||||||
|
"react-icons": "5.3.0",
|
||||||
|
"remark-frontmatter": "^5.0.0",
|
||||||
|
"remark-mdx-frontmatter": "^5.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@mdx-js/rollup": "^3.0.1",
|
"@mdx-js/rollup": "3.0.1",
|
||||||
"@remix-run/dev": "2.9.2",
|
"@remix-run/dev": "2.12.1",
|
||||||
"@tailwindcss/typography": "0.5.12",
|
"@tailwindcss/typography": "0.5.15",
|
||||||
"@types/eslint": "^8.56.7",
|
"@types/eslint": "9.6.1",
|
||||||
"@types/react": "18.2.74",
|
"@types/react": "18.3.8",
|
||||||
"@types/react-dom": "18.2.24",
|
"@types/react-dom": "18.3.0",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "10.4.20",
|
||||||
"eslint": "8.57.0",
|
"eslint": "9.11.0",
|
||||||
"postcss": "^8.4.38",
|
"postcss": "8.4.47",
|
||||||
"tailwindcss": "^3.4.3",
|
"tailwindcss": "3.4.12",
|
||||||
"typescript": "5.4.4",
|
"typescript": "5.6.2",
|
||||||
"vite": "5.1.7",
|
"vite": "5.4.7",
|
||||||
"vite-tsconfig-paths": "4.2.1"
|
"vite-tsconfig-paths": "5.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user