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 {
|
||||
FaGithub,
|
||||
FaGitlab,
|
||||
FaKey,
|
||||
FaLinkedin,
|
||||
FaMastodon,
|
||||
FaStackOverflow,
|
||||
@ -50,9 +49,6 @@ export default function Index() {
|
||||
<a href="https://stackoverflow.com/users/10503039/nullndr">
|
||||
<FaStackOverflow />
|
||||
</a>
|
||||
<a href="/key.pub" download={true}>
|
||||
<FaKey />
|
||||
</a>
|
||||
</IconContext.Provider>
|
||||
</nav>
|
||||
<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",
|
||||
"scripts": {
|
||||
"build": "remix vite:build",
|
||||
"deploy": "npm run build && wrangler pages deploy ./build/client",
|
||||
"dev": "remix vite:dev",
|
||||
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
|
||||
"start": "wrangler pages dev ./build/client",
|
||||
"typecheck": "tsc",
|
||||
"typegen": "wrangler types",
|
||||
"preview": "npm run build && wrangler pages dev ./build/client",
|
||||
"build-cf-types": "wrangler types"
|
||||
"start": "remix-serve ./build/server/index.js",
|
||||
"typecheck": "tsc"
|
||||
},
|
||||
"dependencies": {
|
||||
"@code-hike/mdx": "0.9.0",
|
||||
"@remix-run/node": "2.9.2",
|
||||
"@remix-run/serve": "2.9.2",
|
||||
"@remix-run/react": "2.9.2",
|
||||
"esbuild": "0.20.2",
|
||||
"isbot": "4.1.0",
|
||||
"mdx-bundler": "10.0.2",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-icons": "5.0.1"
|
||||
"@remix-run/node": "2.12.1",
|
||||
"@remix-run/react": "2.12.1",
|
||||
"@remix-run/serve": "2.12.1",
|
||||
"codehike": "1.0.1",
|
||||
"esbuild": "0.24.0",
|
||||
"isbot": "5.1.17",
|
||||
"mdx-bundler": "10.0.3",
|
||||
"react": "18.3.1",
|
||||
"react-dom": "18.3.1",
|
||||
"react-icons": "5.3.0",
|
||||
"remark-frontmatter": "^5.0.0",
|
||||
"remark-mdx-frontmatter": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mdx-js/rollup": "^3.0.1",
|
||||
"@remix-run/dev": "2.9.2",
|
||||
"@tailwindcss/typography": "0.5.12",
|
||||
"@types/eslint": "^8.56.7",
|
||||
"@types/react": "18.2.74",
|
||||
"@types/react-dom": "18.2.24",
|
||||
"autoprefixer": "^10.4.19",
|
||||
"eslint": "8.57.0",
|
||||
"postcss": "^8.4.38",
|
||||
"tailwindcss": "^3.4.3",
|
||||
"typescript": "5.4.4",
|
||||
"vite": "5.1.7",
|
||||
"vite-tsconfig-paths": "4.2.1"
|
||||
"@mdx-js/rollup": "3.0.1",
|
||||
"@remix-run/dev": "2.12.1",
|
||||
"@tailwindcss/typography": "0.5.15",
|
||||
"@types/eslint": "9.6.1",
|
||||
"@types/react": "18.3.8",
|
||||
"@types/react-dom": "18.3.0",
|
||||
"autoprefixer": "10.4.20",
|
||||
"eslint": "9.11.0",
|
||||
"postcss": "8.4.47",
|
||||
"tailwindcss": "3.4.12",
|
||||
"typescript": "5.6.2",
|
||||
"vite": "5.4.7",
|
||||
"vite-tsconfig-paths": "5.0.1"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user