web_base
1.0.0
Front-end template - Modular front-end template based on React + TypeScript + Vite + Antd + Electron + ServiceWorker (supports basic version, multi-page module version, client version, etc.)
基础版本Branch模块化版本branch客户端版本branchWeb / 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 initIf the installation of
husky hooksfails, please check whethergit inithas been performed.
Note: If the code is marked with red, please check whether the
npmversion is too low, the declaration file ofreact18has been installed. You can usenpm install --no-optionalto avoid installingreact18's declaration files. Or directly upgrade thenpmversion,(*∩_∩*)hehehe.
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!