Skip to content

Commit

Permalink
refactor(example): tidy up directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn committed Oct 9, 2018
1 parent 6ec2f5f commit 3d1634b
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example/example.html → example/index.html
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<title>Vue Class Component Example</title>
</head>
<body>
<div id="app"></div>
Expand Down
6 changes: 3 additions & 3 deletions example/App.vue → example/src/App.vue
Expand Up @@ -19,9 +19,9 @@

<script lang="ts">
import Vue from 'vue'
import Component from '../lib/index'
import Hello from './Hello.vue'
import World from './World'
import Component from '../../lib/index'
import Hello from './components/Hello.vue'
import World from './components/World'
import { mapGetters, mapActions } from 'vuex'
// We declare the props separately
Expand Down
2 changes: 1 addition & 1 deletion example/Hello.vue → example/src/components/Hello.vue
Expand Up @@ -4,7 +4,7 @@

<script lang="ts">
import Vue from 'vue'
import Component from '../lib/index'
import Component from '../../../lib/index'
@Component
export default class Hello extends Vue {
Expand Down
2 changes: 1 addition & 1 deletion example/World.tsx → example/src/components/World.tsx
@@ -1,5 +1,5 @@
import Vue, { CreateElement } from 'vue'
import Component from '../lib/index'
import Component from '../../../lib/index'

@Component
export default class World extends Vue {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion example/webpack.config.js
Expand Up @@ -2,7 +2,8 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin')

module.exports = {
mode: 'development',
entry: './example/example.ts',
context: __dirname,
entry: './src/main.ts',
output: {
path: __dirname,
filename: 'build.js'
Expand Down

0 comments on commit 3d1634b

Please sign in to comment.