Browse Source

documentation

master
pvincent 4 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. 6
      src/shims-vue.d.ts
  8. 2
      tsconfig.json
  9. 6
      vite.config.ts

7
README.md

@ -1,15 +1,10 @@
VAPARA-VUE3 VAPARA-VUE3
=========== ===========
## TODO
* [ ] composition API
* [ ] eslint
more [doc](doc/INDEX.md)
## Expected Features ## Expected Features
* [ ] tailwind
* [ ] https://tailwindcss.com/docs/guides/vue-3-vite
* [ ] login/logout * [ ] login/logout
* [ ] fake rest api * [ ] fake rest api
* [ ] i18n * [ ] 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> <!DOCTYPE html>
<html lang="en"> <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> </html>

2
package.json

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

5
src/main.ts

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

6
src/shims-vue.d.ts

@ -1,5 +1,5 @@
declare module "*.vue" { 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", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,
"isolatedModules": true, "isolatedModules": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"noEmit": 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