Skip to content

Commit f5645cd

Browse files
committed
init
0 parents  commit f5645cd

22 files changed

+409
-0
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not dead

.eslintrc.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
'extends': [
7+
'plugin:vue/essential',
8+
'eslint:recommended',
9+
'@vue/typescript/recommended',
10+
'@vue/prettier',
11+
'@vue/prettier/@typescript-eslint'
12+
],
13+
parserOptions: {
14+
ecmaVersion: 2020
15+
},
16+
rules: {
17+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
18+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
19+
},
20+
overrides: [
21+
{
22+
files: [
23+
'**/__tests__/*.{j,t}s?(x)',
24+
'**/tests/unit/**/*.spec.{j,t}s?(x)'
25+
],
26+
env: {
27+
jest: true
28+
}
29+
}
30+
]
31+
}

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# veb
2+
3+
## Project setup
4+
```
5+
yarn install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
yarn serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
yarn build
16+
```
17+
18+
### Run your unit tests
19+
```
20+
yarn test:unit
21+
```
22+
23+
### Lints and fixes files
24+
```
25+
yarn lint
26+
```
27+
28+
### Customize configuration
29+
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel'
3+
}

package.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "veb",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"test:unit": "vue-cli-service test:unit",
9+
"lint": "vue-cli-service lint"
10+
},
11+
"dependencies": {
12+
"core-js": "^3.6.5",
13+
"vue": "^2.6.11",
14+
"vue-class-component": "^7.2.3",
15+
"vue-property-decorator": "^8.4.2",
16+
"vue-router": "^3.2.0",
17+
"vuex": "^3.4.0"
18+
},
19+
"devDependencies": {
20+
"@types/jest": "^24.0.19",
21+
"@typescript-eslint/eslint-plugin": "^2.33.0",
22+
"@typescript-eslint/parser": "^2.33.0",
23+
"@vue/cli-plugin-babel": "~4.5.0",
24+
"@vue/cli-plugin-eslint": "~4.5.0",
25+
"@vue/cli-plugin-router": "~4.5.0",
26+
"@vue/cli-plugin-typescript": "~4.5.0",
27+
"@vue/cli-plugin-unit-jest": "~4.5.0",
28+
"@vue/cli-plugin-vuex": "~4.5.0",
29+
"@vue/cli-service": "~4.5.0",
30+
"@vue/eslint-config-prettier": "^6.0.0",
31+
"@vue/eslint-config-typescript": "^5.0.2",
32+
"@vue/test-utils": "^1.0.3",
33+
"eslint": "^6.7.2",
34+
"eslint-plugin-prettier": "^3.1.3",
35+
"eslint-plugin-vue": "^6.2.2",
36+
"lint-staged": "^9.5.0",
37+
"node-sass": "^4.12.0",
38+
"prettier": "^1.19.1",
39+
"sass-loader": "^8.0.2",
40+
"typescript": "~3.9.3",
41+
"vue-template-compiler": "^2.6.11"
42+
},
43+
"gitHooks": {
44+
"pre-commit": "lint-staged"
45+
},
46+
"lint-staged": {
47+
"*.{js,jsx,vue,ts,tsx}": [
48+
"vue-cli-service lint",
49+
"git add"
50+
]
51+
}
52+
}

public/favicon.ico

4.19 KB
Binary file not shown.

public/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8+
<title><%= htmlWebpackPlugin.options.title %></title>
9+
</head>
10+
<body>
11+
<noscript>
12+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13+
</noscript>
14+
<div id="app"></div>
15+
<!-- built files will be auto injected -->
16+
</body>
17+
</html>

src/App.vue

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<template>
2+
<div id="app">
3+
<div id="nav">
4+
<router-link to="/">Home</router-link> |
5+
<router-link to="/about">About</router-link>
6+
</div>
7+
<router-view/>
8+
</div>
9+
</template>
10+
11+
<style lang="scss">
12+
#app {
13+
font-family: Avenir, Helvetica, Arial, sans-serif;
14+
-webkit-font-smoothing: antialiased;
15+
-moz-osx-font-smoothing: grayscale;
16+
text-align: center;
17+
color: #2c3e50;
18+
}
19+
20+
#nav {
21+
padding: 30px;
22+
23+
a {
24+
font-weight: bold;
25+
color: #2c3e50;
26+
27+
&.router-link-exact-active {
28+
color: #42b983;
29+
}
30+
}
31+
}
32+
</style>

0 commit comments

Comments
 (0)