-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from KunHwanAhn/release/0.0.2
Release/0.0.2
- Loading branch information
Showing
18 changed files
with
2,956 additions
and
4,288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"*.{js,vue}": [ | ||
"eslint --fix --ext .js,.vue src", | ||
"git add" | ||
"eslint --fix --ext .js,.vue src" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
"editor.renderWhitespace": "all", | ||
"files.trimTrailingWhitespace": true, | ||
"files.insertFinalNewline": true, | ||
"eslint.alwaysShowStatus": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"files.eol": "\n" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
# webpack-babel-vue-template | ||
Webpack + Babel + Vue.js Template without VueCli | ||
|
||
## Project setup | ||
``` | ||
yarn install | ||
``` | ||
|
||
### Compiles and hot-reloads for development | ||
``` | ||
yarn serve | ||
``` | ||
|
||
### Compiles and minifies for production | ||
``` | ||
yarn build | ||
``` | ||
|
||
### Lints and fixes files | ||
``` | ||
yarn lint | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"include": [ | ||
"./src/**/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<template> | ||
<div :class="$style.hello"> | ||
Hello Vue! | ||
<div> | ||
<RouterView /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default {}; | ||
export default { | ||
data() { | ||
return { | ||
drawer: false, | ||
}; | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="scss" module> | ||
.hello { | ||
font-size: 24px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
import Vue from 'vue'; | ||
// eslint-disable-next-line import/no-unresolved | ||
import '@/styles/index.scss'; | ||
|
||
import store from './store'; | ||
import router from './routes'; | ||
import plugins from './plugins'; | ||
|
||
import App from './App.vue'; | ||
|
||
new Vue({ | ||
store, | ||
router, | ||
...plugins, | ||
render: (h) => h(App), | ||
}).$mount('#app'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export default { | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import Vue from 'vue'; | ||
import VueRouter from 'vue-router'; | ||
|
||
import HelloWorld from '@/views/HelloWorld.vue'; | ||
|
||
Vue.use(VueRouter); | ||
|
||
const routes = [ | ||
{ | ||
path: '/', | ||
component: HelloWorld, | ||
}, | ||
{ | ||
path: '/contact', | ||
component: () => import(/* webpackChunkName: "contact" */ '@/views/Contact.vue'), | ||
}, | ||
{ | ||
path: '*', | ||
redirect: '/', | ||
}, | ||
]; | ||
|
||
const router = new VueRouter({ | ||
mode: 'history', | ||
routes, | ||
scrollBehavior(to, from, savedPosition) { | ||
if (to.hash) { | ||
return { selector: to.hash }; | ||
} if (savedPosition) { | ||
return savedPosition; | ||
} | ||
return { x: 0, y: 0 }; | ||
}, | ||
}); | ||
|
||
export default router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Vue from 'vue'; | ||
import Vuex from 'vuex'; | ||
|
||
Vue.use(Vuex); | ||
|
||
export default new Vuex.Store({ | ||
modules: {}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<div> | ||
<div> | ||
<RouterLink to="/"> | ||
Index | ||
</RouterLink> | ||
</div> | ||
<div class="desc"> | ||
This is contact page | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default {}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.desc { | ||
color: tomato; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<div> | ||
<div> | ||
<RouterLink to="/contact"> | ||
Contact | ||
</RouterLink> | ||
</div> | ||
<div>Hello Vue!</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default {}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.img-container { | ||
max-width: 400px; | ||
} | ||
</style> |
Oops, something went wrong.