Skip to content

Commit

Permalink
reset branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JoltCode committed Oct 8, 2023
1 parent cfdbf37 commit 8ffd256
Show file tree
Hide file tree
Showing 10 changed files with 11,265 additions and 30,332 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/r-frontend_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,14 @@ jobs:
with:
node-version: "18"

- name: Cache Node Modules
uses: actions/cache@v3
- name: Setup pnpm
uses: pnpm/[email protected]
with:
path: |
src/frontend/node_modules
keys: node-modules-${{ env.cache_id }}
restore-keys: |
node-modules-
package_json_file: src/frontend/main/package.json
version: 8.8.0

- name: Test Frontend
working-directory: src/frontend/main
run: |
cd src/frontend
npm ci --only-dev
npm run test
pnpm ci --only-dev
pnpm run test
5 changes: 4 additions & 1 deletion src/frontend/debug.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ ARG FRONTEND_MAIN_URL
ENV FRONTEND_MAIN_URL="${FRONTEND_MAIN_URL}"
WORKDIR /app
COPY ./package*.json ./
RUN npm install
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN pnpm install
ENV NODE_ENV development
ENTRYPOINT ["npm", "run", "start:live"]
24 changes: 24 additions & 0 deletions src/frontend/main/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="favicon.ico" />
<link rel="manifest" href="/manifest.json" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/openlayers/7.4.0/ol.min.css"
integrity="sha512-InhY7dfdkf2+ZyIsz9AX9M1xDC3GjEy0zVnAIudX1fTUOEhBu13KooX9txjBoWkDAMI3fQ07VE/D0gMUvweerw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<title>Field Mapping Tasking Manager</title>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/App.jsx"></script>
</body>
</html>
Loading

0 comments on commit 8ffd256

Please sign in to comment.