Skip to content

Commit 75bf69f

Browse files
committed
init
0 parents  commit 75bf69f

File tree

13 files changed

+9512
-0
lines changed

13 files changed

+9512
-0
lines changed

.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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# vue3-overmind
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+
### Lints and fixes files
19+
```
20+
yarn lint
21+
```
22+
23+
### Customize configuration
24+
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/cli-plugin-babel/preset"],
3+
};

package.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "vue3-overmind",
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+
},
10+
"dependencies": {
11+
"core-js": "^3.6.5",
12+
"vue": "^3.0.0"
13+
},
14+
"devDependencies": {
15+
"@typescript-eslint/eslint-plugin": "^4.18.0",
16+
"@typescript-eslint/parser": "^4.18.0",
17+
"@vue/cli-plugin-babel": "~4.5.0",
18+
"@vue/cli-plugin-eslint": "~4.5.0",
19+
"@vue/cli-plugin-typescript": "~4.5.0",
20+
"@vue/cli-service": "~4.5.0",
21+
"@vue/compiler-sfc": "^3.0.0",
22+
"@vue/eslint-config-prettier": "^6.0.0",
23+
"@vue/eslint-config-typescript": "^7.0.0",
24+
"eslint": "^6.7.2",
25+
"eslint-plugin-prettier": "^3.3.1",
26+
"eslint-plugin-vue": "^7.0.0",
27+
"prettier": "^2.2.1",
28+
"typescript": "~4.1.5"
29+
},
30+
"eslintConfig": {
31+
"root": true,
32+
"env": {
33+
"node": true
34+
},
35+
"extends": [
36+
"plugin:vue/vue3-essential",
37+
"eslint:recommended",
38+
"@vue/typescript/recommended",
39+
"@vue/prettier",
40+
"@vue/prettier/@typescript-eslint"
41+
],
42+
"parserOptions": {
43+
"ecmaVersion": 2020
44+
},
45+
"rules": {}
46+
},
47+
"browserslist": [
48+
"> 1%",
49+
"last 2 versions",
50+
"not dead"
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="">
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: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<template>
2+
<img alt="Vue logo" src="./assets/logo.png" />
3+
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App" />
4+
</template>
5+
6+
<script lang="ts">
7+
import { defineComponent } from "vue";
8+
import HelloWorld from "./components/HelloWorld.vue";
9+
10+
export default defineComponent({
11+
name: "App",
12+
components: {
13+
HelloWorld,
14+
},
15+
});
16+
</script>
17+
18+
<style>
19+
#app {
20+
font-family: Avenir, Helvetica, Arial, sans-serif;
21+
-webkit-font-smoothing: antialiased;
22+
-moz-osx-font-smoothing: grayscale;
23+
text-align: center;
24+
color: #2c3e50;
25+
margin-top: 60px;
26+
}
27+
</style>

src/assets/logo.png

6.69 KB
Loading

src/components/HelloWorld.vue

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
<template>
2+
<div class="hello">
3+
<h1>{{ msg }}</h1>
4+
<p>
5+
For a guide and recipes on how to configure / customize this project,<br />
6+
check out the
7+
<a href="https://cli.vuejs.org" target="_blank" rel="noopener"
8+
>vue-cli documentation</a
9+
>.
10+
</p>
11+
<h3>Installed CLI Plugins</h3>
12+
<ul>
13+
<li>
14+
<a
15+
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel"
16+
target="_blank"
17+
rel="noopener"
18+
>babel</a
19+
>
20+
</li>
21+
<li>
22+
<a
23+
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-typescript"
24+
target="_blank"
25+
rel="noopener"
26+
>typescript</a
27+
>
28+
</li>
29+
<li>
30+
<a
31+
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint"
32+
target="_blank"
33+
rel="noopener"
34+
>eslint</a
35+
>
36+
</li>
37+
</ul>
38+
<h3>Essential Links</h3>
39+
<ul>
40+
<li>
41+
<a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a>
42+
</li>
43+
<li>
44+
<a href="https://forum.vuejs.org" target="_blank" rel="noopener"
45+
>Forum</a
46+
>
47+
</li>
48+
<li>
49+
<a href="https://chat.vuejs.org" target="_blank" rel="noopener"
50+
>Community Chat</a
51+
>
52+
</li>
53+
<li>
54+
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener"
55+
>Twitter</a
56+
>
57+
</li>
58+
<li>
59+
<a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a>
60+
</li>
61+
</ul>
62+
<h3>Ecosystem</h3>
63+
<ul>
64+
<li>
65+
<a href="https://router.vuejs.org" target="_blank" rel="noopener"
66+
>vue-router</a
67+
>
68+
</li>
69+
<li>
70+
<a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a>
71+
</li>
72+
<li>
73+
<a
74+
href="https://github.com/vuejs/vue-devtools#vue-devtools"
75+
target="_blank"
76+
rel="noopener"
77+
>vue-devtools</a
78+
>
79+
</li>
80+
<li>
81+
<a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener"
82+
>vue-loader</a
83+
>
84+
</li>
85+
<li>
86+
<a
87+
href="https://github.com/vuejs/awesome-vue"
88+
target="_blank"
89+
rel="noopener"
90+
>awesome-vue</a
91+
>
92+
</li>
93+
</ul>
94+
</div>
95+
</template>
96+
97+
<script lang="ts">
98+
import { defineComponent } from "vue";
99+
100+
export default defineComponent({
101+
name: "HelloWorld",
102+
props: {
103+
msg: String,
104+
},
105+
});
106+
</script>
107+
108+
<!-- Add "scoped" attribute to limit CSS to this component only -->
109+
<style scoped>
110+
h3 {
111+
margin: 40px 0 0;
112+
}
113+
ul {
114+
list-style-type: none;
115+
padding: 0;
116+
}
117+
li {
118+
display: inline-block;
119+
margin: 0 10px;
120+
}
121+
a {
122+
color: #42b983;
123+
}
124+
</style>

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { createApp } from "vue";
2+
import App from "./App.vue";
3+
4+
createApp(App).mount("#app");

0 commit comments

Comments
 (0)