-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from rcpch/revert-103-revert-102-vite-vite
Revert "Revert "Vite-vite""
- Loading branch information
Showing
46 changed files
with
4,442 additions
and
35,226 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
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
|
||
# production | ||
/build | ||
/dist | ||
|
||
# misc | ||
.DS_Store | ||
|
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,21 +1,23 @@ | ||
FROM node:16.20.1-alpine3.17 | ||
# Use the latest Node.js LTS version as the base image | ||
FROM node:18-alpine3.18 AS base | ||
|
||
# set working directory | ||
# Set working directory | ||
WORKDIR /app | ||
|
||
# add `/app/node_modules/.bin` to $PATH | ||
ENV PATH /app/node_modules/.bin:$PATH | ||
# Add `/app/node_modules/.bin` to $PATH | ||
ENV PATH=/app/node_modules/.bin:$PATH | ||
|
||
# set ownership of .cache to node user | ||
RUN mkdir -p node_modules/.cache && chmod -R 777 node_modules/.cache | ||
# Copy package.json and package-lock.json | ||
COPY package.json package-lock.json ./ | ||
|
||
# install app dependencies | ||
COPY package.json ./ | ||
COPY package-lock.json ./ | ||
RUN npm install | ||
# Install app dependencies | ||
RUN npm install --development | ||
|
||
# add app | ||
# Copy the rest of the application files | ||
COPY . ./ | ||
|
||
# start app | ||
CMD ["npm", "start"] | ||
# Expose the port the app runs on | ||
EXPOSE 3000 | ||
|
||
# Start the application | ||
CMD ["npm", "run", "dev"] |
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,38 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import react from 'eslint-plugin-react' | ||
import reactHooks from 'eslint-plugin-react-hooks' | ||
import reactRefresh from 'eslint-plugin-react-refresh' | ||
|
||
export default [ | ||
{ | ||
files: ['**/*.{js,jsx}'], | ||
ignores: ['dist'], | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
globals: globals.browser, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
ecmaFeatures: { jsx: true }, | ||
sourceType: 'module', | ||
}, | ||
}, | ||
settings: { react: { version: '18.3' } }, | ||
plugins: { | ||
react, | ||
'react-hooks': reactHooks, | ||
'react-refresh': reactRefresh, | ||
}, | ||
rules: { | ||
...js.configs.recommended.rules, | ||
...react.configs.recommended.rules, | ||
...react.configs['jsx-runtime'].rules, | ||
...reactHooks.configs.recommended.rules, | ||
'react/jsx-no-target-blank': 'off', | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
}, | ||
] |
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" /> | ||
<!-- <link rel="icon" href="%PUBLIC_URL%/dynamic-child-favicon.png" /> --> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="React Client for RCPCH Growth Chart API" | ||
/> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content="RCPCH | Digital Growth Charts" /> | ||
<meta | ||
property="og:description" | ||
content="React Client for RCPCH Growth Chart API" | ||
/> | ||
<title>RCPCH | Digital Growth Charts</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<script type="module" src="/src/main.jsx"></script> | ||
</body> | ||
<!-- <script src="%PUBLIC_URL%/compatibilityCheck.js"></script> --> | ||
</html> |
Oops, something went wrong.