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 ===> crossnpm install or npm run init若
husky hooks安装失败,请检查是否已进行git init。
注意:若代码标红提示,请检查是否因为
npm版本过低,导致安装了react18的声明文件。 可以使用npm install --no-optional来避免安装react18的声明文件。 或者直接升级npm版本,(*∩_∩*)嘻嘻。
npm run dev or npm run dev:exenpm run preview or npm run preview:exenpm run build or npm run build:exenpm run lintBuy me a coffee!