Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renew frontend #112

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Frontend build
FROM node:20-alpine3.18 as build

WORKDIR /opt/app

COPY frontend ./frontend

WORKDIR /opt/app/frontend

RUN npm install && npm run build && rm -rf node_modules

# Main build
FROM elixir:1.8-alpine

WORKDIR /opt/app
Expand All @@ -16,7 +28,7 @@ ADD mix.lock ./

RUN mix do deps.get, deps.compile

COPY frontend/dist/ /opt/app/frontend/dist/
COPY --from=build /opt/app/frontend ./frontend
COPY config/ /opt/app/config/

COPY lib /opt/app/lib/
Expand Down
12 changes: 0 additions & 12 deletions frontend/.babelrc

This file was deleted.

32 changes: 8 additions & 24 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
// https://eslint.org/docs/user-guide/configuring
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution")

module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
amd: true
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard'
],
// required to lint *.vue files
plugins: [
'vue'
],
// add your custom rules here
extends: ["plugin:vue/recommended", "eslint:recommended"],
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
},
parserOptions: {
ecmaVersion: "latest"
}
}
31 changes: 31 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# redoc
public/redoc-static.html
10 changes: 0 additions & 10 deletions frontend/.postcssrc.js

This file was deleted.

8 changes: 8 additions & 0 deletions frontend/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": false,
"printWidth": 100,
"trailingComma": "none"
}
4 changes: 2 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:12-alpine
FROM node:20-alpine3.18 as build

WORKDIR /app

COPY package.json package-lock.json ./

RUN npm install

COPY . .
COPY . .
41 changes: 0 additions & 41 deletions frontend/build/build.js

This file was deleted.

54 changes: 0 additions & 54 deletions frontend/build/check-versions.js

This file was deleted.

101 changes: 0 additions & 101 deletions frontend/build/utils.js

This file was deleted.

22 changes: 0 additions & 22 deletions frontend/build/vue-loader.conf.js

This file was deleted.

Loading