Skip to content

Commit 6177c56

Browse files
committed
init
0 parents  commit 6177c56

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+12136
-0
lines changed

.browserslistrc

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

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
extends: ["plugin:vue/essential", "@vue/prettier", "@vue/typescript"],
7+
rules: {
8+
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
9+
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
10+
},
11+
parserOptions: {
12+
parser: "@typescript-eslint/parser"
13+
}
14+
};

.gitignore

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

README.md

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

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["@vue/app"]
3+
};

cypress.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pluginsFile": "tests/e2e/plugins/index.js"
3+
}

jest.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
moduleFileExtensions: ["js", "jsx", "json", "vue", "ts", "tsx"],
3+
transform: {
4+
"^.+\\.vue$": "vue-jest",
5+
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$":
6+
"jest-transform-stub",
7+
"^.+\\.tsx?$": "ts-jest"
8+
},
9+
transformIgnorePatterns: ["/node_modules/"],
10+
moduleNameMapper: {
11+
"^@/(.*)$": "<rootDir>/src/$1"
12+
},
13+
snapshotSerializers: ["jest-serializer-vue"],
14+
testMatch: [
15+
"**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"
16+
],
17+
testURL: "http://localhost/",
18+
watchPlugins: [
19+
"jest-watch-typeahead/filename",
20+
"jest-watch-typeahead/testname"
21+
],
22+
globals: {
23+
"ts-jest": {
24+
babelConfig: true
25+
}
26+
}
27+
};

package.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"name": "hello-world",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint",
9+
"test:e2e": "vue-cli-service test:e2e",
10+
"test:unit": "vue-cli-service test:unit"
11+
},
12+
"dependencies": {
13+
"core-js": "^2.6.5",
14+
"register-service-worker": "^1.6.2",
15+
"vue": "^2.6.10",
16+
"vue-router": "^3.0.3",
17+
"vuex": "^3.0.1"
18+
},
19+
"devDependencies": {
20+
"@types/jest": "^23.1.4",
21+
"@vue/cli-plugin-babel": "^3.9.0",
22+
"@vue/cli-plugin-e2e-cypress": "^3.9.0",
23+
"@vue/cli-plugin-eslint": "^3.9.0",
24+
"@vue/cli-plugin-pwa": "^3.9.0",
25+
"@vue/cli-plugin-typescript": "^3.9.0",
26+
"@vue/cli-plugin-unit-jest": "^3.9.0",
27+
"@vue/cli-service": "^3.9.0",
28+
"@vue/eslint-config-prettier": "^4.0.1",
29+
"@vue/eslint-config-typescript": "^4.0.0",
30+
"@vue/test-utils": "1.0.0-beta.29",
31+
"babel-core": "7.0.0-bridge.0",
32+
"babel-eslint": "^10.0.1",
33+
"eslint": "^5.16.0",
34+
"eslint-plugin-vue": "^5.0.0",
35+
"lint-staged": "^8.1.5",
36+
"node-sass": "^4.9.0",
37+
"sass-loader": "^7.1.0",
38+
"ts-jest": "^23.0.0",
39+
"typescript": "^3.4.3",
40+
"vue-template-compiler": "^2.6.10"
41+
},
42+
"gitHooks": {
43+
"pre-commit": "lint-staged"
44+
},
45+
"lint-staged": {
46+
"*.{js,vue}": [
47+
"vue-cli-service lint",
48+
"git add"
49+
]
50+
}
51+
}

postcss.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: {
3+
autoprefixer: {}
4+
}
5+
};

public/favicon.ico

4.19 KB
Binary file not shown.
9.2 KB
Loading
29.1 KB
Loading
3.29 KB
Loading
3.95 KB
Loading
4.57 KB
Loading
1.46 KB
Loading
1.78 KB
Loading

public/img/icons/apple-touch-icon.png

4.57 KB
Loading

public/img/icons/favicon-16x16.png

799 Bytes
Loading

public/img/icons/favicon-32x32.png

1.24 KB
Loading
1.14 KB
Loading

public/img/icons/mstile-150x150.png

4.18 KB
Loading
Lines changed: 149 additions & 0 deletions
Loading

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>hello-world</title>
9+
</head>
10+
<body>
11+
<noscript>
12+
<strong>We're sorry but hello-world 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>

public/manifest.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "hello-world",
3+
"short_name": "hello-world",
4+
"icons": [
5+
{
6+
"src": "./img/icons/android-chrome-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "./img/icons/android-chrome-512x512.png",
12+
"sizes": "512x512",
13+
"type": "image/png"
14+
}
15+
],
16+
"start_url": "./index.html",
17+
"display": "standalone",
18+
"background_color": "#000000",
19+
"theme_color": "#4DBA87"
20+
}

public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

src/App.vue

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
#nav {
20+
padding: 30px;
21+
a {
22+
font-weight: bold;
23+
color: #2c3e50;
24+
&.router-link-exact-active {
25+
color: #42b983;
26+
}
27+
}
28+
}
29+
</style>

src/assets/logo.png

6.69 KB
Loading

0 commit comments

Comments
 (0)