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

refactor: migrate Vue 2 to 3 #57

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
12 changes: 0 additions & 12 deletions frontend/.babelrc

This file was deleted.

3 changes: 3 additions & 0 deletions frontend/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead
5 changes: 0 additions & 5 deletions frontend/.dockerignore

This file was deleted.

9 changes: 0 additions & 9 deletions frontend/.editorconfig

This file was deleted.

4 changes: 0 additions & 4 deletions frontend/.eslintignore

This file was deleted.

39 changes: 16 additions & 23 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
// https://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
amd: true
node: 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'
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/typescript/recommended",
"@vue/prettier",
"@vue/prettier/@typescript-eslint",
],
// add your custom rules here
plugins: ["simple-import-sort"],
parserOptions: {
ecmaVersion: 2020,
},
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",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
};
23 changes: 23 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
10 changes: 0 additions & 10 deletions frontend/.postcssrc.js

This file was deleted.

4 changes: 3 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM node:12-alpine
FROM node:14-alpine

RUN apk add --no-cache git

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion frontend/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build-frontend:
if [ -d "dist/" ]; then rm -rf dist/; fi
docker build -t certstream-frontend .
docker run --rm -it -v $$(pwd)/dist/:/app/dist/ certstream-frontend npm run build
docker run --rm -it -v $$(pwd)/dist/:/app/dist/ certstream-frontend npm run build -- --no-clean
docker rmi certstream-frontend
3 changes: 3 additions & 0 deletions frontend/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
};
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