Michael Wang 3 ani în urmă
părinte
comite
e6e21d4864
4 a modificat fișierele cu 9 adăugiri și 59 ștergeri
  1. 8 2
      package.json
  2. 1 5
      src/App.vue
  3. BIN
      src/assets/logo.png
  4. 0 52
      src/components/HelloWorld.vue

+ 8 - 2
package.json

@@ -3,9 +3,15 @@
   "private": true,
   "version": "3.0.0",
   "scripts": {
+    "start": "vite --host 0.0.0.0",
     "dev": "vite",
-    "build": "vue-tsc --noEmit && vite build",
-    "preview": "vite preview"
+    "prebuild": "node --experimental-json-modules prebuild.mjs",
+    "build": "vue-tsc --noEmit --skipLibCheck && vite build",
+    "build-without-type-check": "vite build",
+    "typecheck": "vue-tsc --noEmit --skipLibCheck",
+    "serve": "vite preview",
+    "lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src",
+    "format": "prettier .  --write"
   },
   "dependencies": {
     "vue": "^3.2.31"

+ 1 - 5
src/App.vue

@@ -1,12 +1,8 @@
 <script setup lang="ts">
-// This starter template is using Vue 3 <script setup> SFCs
-// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
-import HelloWorld from './components/HelloWorld.vue'
 </script>
 
 <template>
-  <img alt="Vue logo" src="./assets/logo.png" />
-  <HelloWorld msg="Hello Vue 3 + TypeScript + Vite" />
+<div></div>
 </template>
 
 <style>

BIN
src/assets/logo.png


+ 0 - 52
src/components/HelloWorld.vue

@@ -1,52 +0,0 @@
-<script setup lang="ts">
-import { ref } from 'vue'
-
-defineProps<{ msg: string }>()
-
-const count = ref(0)
-</script>
-
-<template>
-  <h1>{{ msg }}</h1>
-
-  <p>
-    Recommended IDE setup:
-    <a href="https://code.visualstudio.com/" target="_blank">VSCode</a>
-    +
-    <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>
-  </p>
-
-  <p>See <code>README.md</code> for more information.</p>
-
-  <p>
-    <a href="https://vitejs.dev/guide/features.html" target="_blank">
-      Vite Docs
-    </a>
-    |
-    <a href="https://v3.vuejs.org/" target="_blank">Vue 3 Docs</a>
-  </p>
-
-  <button type="button" @click="count++">count is: {{ count }}</button>
-  <p>
-    Edit
-    <code>components/HelloWorld.vue</code> to test hot module replacement.
-  </p>
-</template>
-
-<style scoped>
-a {
-  color: #42b983;
-}
-
-label {
-  margin: 0 0.5em;
-  font-weight: bold;
-}
-
-code {
-  background-color: #eee;
-  padding: 2px 4px;
-  border-radius: 4px;
-  color: #304455;
-}
-</style>