web_base
1.0.0
前端模板-基於React + TypeScript + Vite + Antd + Electron + ServiceWorker 實現的模塊化前端模板(支持基礎版本、多頁面模塊版本、客戶端版本等)
基础版本分支模块化版本分支客户端版本分支Web / Client & Electron / App & Cordova ) DevEnvTips: (node >= 14.20.0)、(npm >= 8.0.0)、(git >= 2.30.0)
git clone https://github.com/biugle/web_base.git
npm i -g js-xcmd
xcmd create-web-base [dir] [branch]
# client-main ===> c-main
# client-modules ===> c-modules
# simple-cross-platform ===> cross npm install or npm run init若
husky hooks安裝失敗,請檢查是否已進行git init。
注意:若代碼標紅提示,請檢查是否因為
npm版本過低,導致安裝了react18的聲明文件。 可以使用npm install --no-optional來避免安裝react18的聲明文件。 或者直接升級npm版本,(*∩_∩*)嘻嘻。
npm run dev or npm run dev:exe npm run preview or npm run preview:exe npm run build or npm run build:exe npm run lint Buy me a coffee!