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

Vue3 Build #1594

Merged
Merged
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
4 changes: 4 additions & 0 deletions ppr-ui/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
dist/
public/
tests/
28 changes: 8 additions & 20 deletions ppr-ui/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
module.exports = {
root: true,
env: {
node: true
node: true,
es2022: true
},
extends: [
'plugin:vue/essential',
'@vue/standard',
'@vue/typescript',
'plugin:vue/base',
'plugin:vuetify/base',
'plugin:vuetify/recommended'
'plugin:vue/vue3-recommended',
'@vue/typescript/recommended'
],
rules: {
'standard/computed-property-even-spacing': 'off',
Expand All @@ -20,19 +18,9 @@ module.exports = {
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'max-len': ['warn', { code: 120, ignoreRegExpLiterals: true }]
},
parser: "vue-eslint-parser",
parserOptions: {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint']
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
parser: "@typescript-eslint/parser",
sourceType: "module"
}
}
16 changes: 8 additions & 8 deletions ppr-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM node:15-buster as build-stage
FROM node:20.5.1 as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build

FROM nginx:1.18 as production-stage

ARG VCS_REF="missing"
ARG BUILD_DATE="missing"
Expand All @@ -9,13 +16,6 @@ ENV BUILD_DATE=${BUILD_DATE}
LABEL org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.build-date=${BUILD_DATE}

WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build

FROM nginx:1.18 as production-stage
COPY nginx.conf /etc/nginx/nginx.conf
RUN mkdir /app
COPY --from=build-stage /app/dist /app
Expand Down
5 changes: 0 additions & 5 deletions ppr-ui/babel.config.js

This file was deleted.

21 changes: 21 additions & 0 deletions ppr-ui/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>BC Personal Property Registry</title>
<link rel="icon" href="/favicon.png">
<link rel="stylesheet" href="/css/addresscomplete-2.30.min.css">
<script type="text/javascript" src="/js/addresscomplete-2.30.min.js" defer></script>
</head>
<body>
<noscript>
<strong>We're sorry but the BC Personal Property Registry doesn't work properly without JavaScript enabled.
Please enable it to continue.
</strong>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading
Loading