Browse Source

documentation

master
pvincent 3 years ago
parent
commit
98d2ec06a9
  1. 7
      README.md
  2. 8
      TODO.md
  3. 4
      doc/INDEX.md
  4. 19
      index.html
  5. 2
      package.json
  6. 5
      src/main.ts
  7. 8
      src/shims-vue.d.ts
  8. 2
      tsconfig.json
  9. 6
      vite.config.ts

7
README.md

@ -1,15 +1,10 @@
VAPARA-VUE3
===========
## TODO
* [ ] composition API
* [ ] eslint
more [doc](doc/INDEX.md)
## Expected Features
* [ ] tailwind
* [ ] https://tailwindcss.com/docs/guides/vue-3-vite
* [ ] login/logout
* [ ] fake rest api
* [ ] i18n

8
TODO.md

@ -0,0 +1,8 @@
TODO
====
## TODO
* [ ] composition API
* [ ] eslint
* [ ] WindyCss

4
doc/INDEX.md

@ -0,0 +1,4 @@
DOCUMENTATION
=============
to be continued...

19
index.html

@ -1,13 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

2
package.json

@ -1,6 +1,6 @@
{
"name": "vapara-vue3",
"version": "0.1.0",
"version": "0.0.1",
"scripts": {
"dev": "vite",
"build": "vite build"

5
src/main.ts

@ -2,4 +2,9 @@ import { createApp } from 'vue'
import App from './App.vue'
import './index.css'
console.log("Starting vite ...")
document.title = "YOUPI"
createApp(App).mount('#app')
console.log(`main.ts loaded`)

8
src/shims-vue.d.ts

@ -1,5 +1,5 @@
declare module "*.vue" {
import { defineComponent } from "vue";
const Component: ReturnType<typeof defineComponent>;
export default Component;
}
import { defineComponent } from "vue"
const Component: ReturnType<typeof defineComponent>
export default Component
}

2
tsconfig.json

@ -5,6 +5,8 @@
"moduleResolution": "node",
"importHelpers": true,
"isolatedModules": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"noEmit": true
}
}

6
vite.config.ts

@ -0,0 +1,6 @@
import pkg from './package.json'
import { execSync } from 'child_process'
const stdout = execSync("git describe --tags `git rev-list --tags --max-count=1`")
console.log(stdout)
console.log(`vite.config.js loaded ${JSON.stringify(pkg.version)}`)
Loading…
Cancel
Save