Skip to content

Commit

Permalink
migrate to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev committed Jan 11, 2024
1 parent e935f50 commit f90735c
Show file tree
Hide file tree
Showing 24 changed files with 3,452 additions and 39,949 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

41 changes: 21 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# pull official base image
FROM node:16.13.1-alpine as build
FROM node:18-alpine as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY package.json ./
COPY package-lock.json ./
RUN npm ci --silent
RUN npm install [email protected] -g --silent
COPY . ./
RUN npm run build

# production environment
FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html
COPY --from=build /dist /usr/share/nginx/html
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
46 changes: 46 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link
rel="icon"
href="https://uploads-ssl.webflow.com/616ab4741d375d1642c19027/617952f8510cfc45cbf09312_Favicon(3)(1).png"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>

<meta name="theme-color" content="#000000" />
<meta name="description" content="Tezos Node API" />
<title>Marigold - Tezos Node API</title>
<link
href="https://uploads-ssl.webflow.com/616ab4741d375d1642c19027/617952f8510cfc45cbf09312_Favicon(3)(1).png"
rel="shortcut icon"
type="image/x-icon"
/>
<link
href="https://uploads-ssl.webflow.com/616ab4741d375d1642c19027/6179528a2b3dd5016df0449f_Webclip(1).png"
rel="apple-touch-icon"
/>
<meta name="keywords" content="Tezos, API, REST, Documentation, Marigold" />
<meta content="API of Tezos Nodes" name="description" />
<meta content="Marigold - Tezos Node API" property="og:title" />
<meta content="API of Tezos Nodes" property="og:description" />
<meta
content="https://uploads-ssl.webflow.com/616ab4741d375d1642c19027/62161fbfabb25010fe348ee8_Logo-Marigold-Rouge-1200x630.jpg"
property="og:image"
/>
<meta content="Marigold - Tezos Node API" property="twitter:title" />
<meta content="API of Tezos Nodes" property="twitter:description" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit f90735c

Please sign in to comment.