Skip to content

Commit

Permalink
refactor: migrate Vue 2 to 3
Browse files Browse the repository at this point in the history
Migrate Vue 2 to 3 #52
  • Loading branch information
ninoseki committed Dec 12, 2020
1 parent 26dff90 commit 27affc2
Show file tree
Hide file tree
Showing 69 changed files with 10,655 additions and 20,709 deletions.
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

0 comments on commit 27affc2

Please sign in to comment.