Skip to content

Commit

Permalink
tools(project): Set up vite dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mst101 committed Jul 19, 2022
1 parent 626c95f commit c02da06
Show file tree
Hide file tree
Showing 10 changed files with 1,513 additions and 198 deletions.
6 changes: 4 additions & 2 deletions example-e2e/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div id="app">
<div>
<h1>Datepicker Integration Tests</h1>
<div class="example">
<h3>Default datepicker...</h3>
Expand Down Expand Up @@ -54,7 +54,7 @@ import Datepicker from '~/components/Datepicker.vue'
import * as lang from '~/locale/index'
export default {
name: 'Demo',
name: 'App',
components: {
Datepicker,
},
Expand Down Expand Up @@ -180,6 +180,8 @@ export default {
</script>

<style>
@import url('https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css');
body {
font-family: 'Helvetica Neue Light', Helvetica, sans-serif;
padding: 1em 2em 2em;
Expand Down
3 changes: 1 addition & 2 deletions example-e2e/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
<head>
<meta charset="utf-8" />
<title>Vue.js Datepicker</title>
<link rel="stylesheet" type="text/css" href="styles/bootstrap.min.css">
</head>
<body data-test-body>
<div id="app"></div>
<script src="./app.js"></script>
<script type="module" src="./main.js"></script>
</body>
</html>
11 changes: 11 additions & 0 deletions example-e2e/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { createVuePlugin } from 'vite-plugin-vue2'
import path from 'path'

export default {
plugins: [createVuePlugin()],
resolve: {
alias: {
'~': path.resolve(__dirname, '../src'),
},
},
}
2 changes: 1 addition & 1 deletion example/Demo.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div id="app">
<div>
<h1>Datepicker Examples</h1>
<div class="example">
<h3>Default datepicker...</h3>
Expand Down
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body data-test-body>
<div id="app"></div>
<script src="./demo.js"></script>
<script type="module" src="./main.js"></script>
</body>
</html>
11 changes: 11 additions & 0 deletions example/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { createVuePlugin } from 'vite-plugin-vue2'
import path from 'path'

export default {
plugins: [createVuePlugin()],
resolve: {
alias: {
'~': path.resolve(__dirname, '../src'),
},
},
}
Loading

0 comments on commit c02da06

Please sign in to comment.