diff --git a/README.md b/README.md index 2cb91c7..d807bd6 100644 --- a/README.md +++ b/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 diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..ac1ae21 --- /dev/null +++ b/TODO.md @@ -0,0 +1,8 @@ +TODO +==== + +## TODO + +* [ ] composition API +* [ ] eslint +* [ ] WindyCss diff --git a/doc/INDEX.md b/doc/INDEX.md new file mode 100644 index 0000000..012e802 --- /dev/null +++ b/doc/INDEX.md @@ -0,0 +1,4 @@ +DOCUMENTATION +============= + +to be continued... \ No newline at end of file diff --git a/index.html b/index.html index a508f20..9546eb0 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,12 @@ - - - - - Vite App - - -
- - + + + + + + +
+ + diff --git a/package.json b/package.json index 60738b0..cf1eae7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vapara-vue3", - "version": "0.1.0", + "version": "0.0.1", "scripts": { "dev": "vite", "build": "vite build" diff --git a/src/main.ts b/src/main.ts index 50a4dab..b0b7995 100644 --- a/src/main.ts +++ b/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`) diff --git a/src/shims-vue.d.ts b/src/shims-vue.d.ts index 800b452..c821b24 100644 --- a/src/shims-vue.d.ts +++ b/src/shims-vue.d.ts @@ -1,5 +1,5 @@ declare module "*.vue" { - import { defineComponent } from "vue"; - const Component: ReturnType; - export default Component; -} + import { defineComponent } from "vue" + const Component: ReturnType + export default Component +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index a9d1f16..8f86e4a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,8 @@ "moduleResolution": "node", "importHelpers": true, "isolatedModules": true, + "resolveJsonModule": true, + "allowSyntheticDefaultImports": true, "noEmit": true } } diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..a4aad83 --- /dev/null +++ b/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)}`) \ No newline at end of file