Giter Club home page Giter Club logo

2023-vue-w6-co's Introduction

六角學院 Vue 樣板

這是六角學院的 Vue 樣板,是基於 Vite 所建立的專案。

Node.js 版本建議為:18.17.1 以上

安裝與使用

以下將會引導你如何安裝此專案到你的電腦上。

取得專案

git clone https://github.com/hexschool/vite-template.git

移動到專案資料夾

cd vite-template

環境變數

請將 .env.example 複製一份並命名為 .env,並將裡面的環境變數設定為你的值。

cp .env.example .env

安裝套件

npm install

啟動開發環境

npm run dev

打包專案

npm run build

部署專案

npm run deploy

套件

以下是已經安裝在專案中的套件。

  • axios (^1.6.5)
  • bootstrap (^5.3.2)
  • bootstrap-icons (^1.11.3)
  • dotenv (^16.3.1)
  • pinia (^2.1.7)
  • vue (^3.3.11)
  • vue-router (^4.2.5)
  • @vitejs/plugin-vue (^4.5.2)
  • eslint (^8.49.0)
  • eslint-config-standard (^^17.1.0)
  • eslint-import-resolver-alias (^1.1.2)
  • eslint-plugin-import (^2.29.1)
  • eslint-plugin-n (^16.6.2)
  • eslint-plugin-promise (^6.1.1)
  • eslint-plugin-vue (^9.20.1)
  • gh-pages (^6.1.1)
  • sass (^1.69.7)
  • vite (^5.0.10)
  • vite-plugin-eslint (^1.8.1)

資料夾結構

  • .vscode:Visual Studio Code 的設定檔
  • dist:打包後的檔案
  • public:公開的靜態檔案
  • src:專案的程式碼
    • assets:靜態檔案
    • components:元件
    • router:路由
    • store:狀態管理
    • views:頁面
    • App.vue:根元件
    • main.js:進入點
  • .env.example:環境變數範本
  • .eslintrc.js:ESLint 設定檔
  • .gitignore:Git 忽略檔案
  • .nvmrc:Node.js 版本
  • index.html:進入點 HTML
  • package-lock.json:套件版本鎖定
  • package.json:專案資訊
  • README.md:專案說明
  • vite.config.js:Vite 設定檔

gh-pages 部署說明

內建預設是使用 gh-pages 進行部署,因此只需要在專案根目錄下執行以下指令即可。

npm run deploy

(請記得將 .env 中的 REPOSITORY_NAME 改為你的專案名稱即可。)

2023-vue-w6-co's People

Contributors

hsuanin1214 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.