Skip to content

Commit fcfdc18

Browse files
committed
Initial commit
1 parent ad0003a commit fcfdc18

19 files changed

+1680
-113
lines changed

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
# blog-markdown
1+
# vue-markdown-blog
2+
> Creating a simple blog using Vue with markdown.
3+
4+
## Getting started
5+
```
6+
git clone https://github.com/josephharveyangeles/vue-markdown-blog
7+
cd vue-markdown-blog
8+
yarn install
9+
yarn serve
10+
```
11+
12+
## Demo
13+
Demo website is over here: [vue-markdown-blog.netlify.com](https://vue-markdown-blog.netlify.com/)
214

315
## Project setup
416
```
@@ -15,15 +27,7 @@ yarn run serve
1527
yarn run build
1628
```
1729

18-
### Run your tests
19-
```
20-
yarn run test
21-
```
22-
2330
### Lints and fixes files
2431
```
2532
yarn run lint
2633
```
27-
28-
### Customize configuration
29-
See [Configuration Reference](https://cli.vuejs.org/config/).

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "blog-markdown",
2+
"name": "blog-vue-markdown",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
@@ -8,7 +8,8 @@
88
"lint": "vue-cli-service lint"
99
},
1010
"dependencies": {
11-
"vue": "^2.6.6"
11+
"vue": "^2.6.6",
12+
"vue-router": "^3.0.1"
1213
},
1314
"devDependencies": {
1415
"@vue/cli-plugin-babel": "^3.4.0",
@@ -17,6 +18,9 @@
1718
"babel-eslint": "^10.0.1",
1819
"eslint": "^5.8.0",
1920
"eslint-plugin-vue": "^5.0.0",
21+
"node-sass": "^4.11.0",
22+
"sass-loader": "^7.1.0",
23+
"vue-markdown-loader": "^2.4.1",
2024
"vue-template-compiler": "^2.5.21"
2125
},
2226
"eslintConfig": {

src/App.vue

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
<template>
22
<div id="app">
3-
<img alt="Vue logo" src="./assets/logo.png">
4-
<HelloWorld msg="Welcome to Your Vue.js App"/>
3+
<div>
4+
<router-view/>
5+
</div>
56
</div>
67
</template>
7-
8-
<script>
9-
import HelloWorld from './components/HelloWorld.vue'
10-
11-
export default {
12-
name: 'app',
13-
components: {
14-
HelloWorld
15-
}
16-
}
17-
</script>
18-
19-
<style>
8+
<style scoped>
209
#app {
2110
font-family: 'Avenir', Helvetica, Arial, sans-serif;
2211
-webkit-font-smoothing: antialiased;
2312
-moz-osx-font-smoothing: grayscale;
24-
text-align: center;
2513
color: #2c3e50;
26-
margin-top: 60px;
14+
max-width: 90vw;
15+
margin: 0 auto;
2716
}
17+
2818
</style>

src/components/HelloWorld.vue

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/components/foo.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This is a test
2+
## Heading 2
3+
_lorem ipsum_ dolor __amet__

src/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import Vue from 'vue'
22
import App from './App.vue'
3+
import router from './router'
34

45
Vue.config.productionTip = false
56

67
new Vue({
7-
render: h => h(App),
8+
router,
9+
render: h => h(App)
810
}).$mount('#app')

0 commit comments

Comments
 (0)