Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
[feature] add Vue.js base app
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dz committed Oct 26, 2016
1 parent b193254 commit 628e4c7
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/.gitignore
Expand Up @@ -5,3 +5,7 @@ node_modules/
# Locales
locales/
!locales/en.json


# Default
!.gitkeep
9 changes: 9 additions & 0 deletions client/app/app.vue
@@ -0,0 +1,9 @@
<template lang="pug">
div(role="application")
h1 Hello World
</template>


<style lang="stylus">
@import "../node_modules/normalize.css/normalize.css";
</style>
11 changes: 11 additions & 0 deletions client/app/index.js
@@ -0,0 +1,11 @@
import Vue from 'vue'
import App from './app'


document.addEventListener('DOMContentLoaded', function initialize () {
new Vue({
el: '[role=application]',
render: h => h(App),
components: { App }
})
})
1 change: 1 addition & 0 deletions client/package.json
@@ -1,5 +1,6 @@
{
"dependencies": {
"normalize.css": "5.0.0",
"vue": "2.0.3",
"vue-resource": "1.0.3",
"vue-router": "2.0.1"
Expand Down
Empty file added client/vendor/assets/.gitkeep
Empty file.

0 comments on commit 628e4c7

Please sign in to comment.