Giter VIP home page Giter VIP logo

presets's Introduction

presets

JavaScript / TypeScript 项目模板合集。

tiged 不支持 gitee,如果你想要寻找更便捷的方法,不妨看看 giget这里

注意事项

# 不自动转换换行符
git config --global core.autocrlf false
# 不忽略文件名大小写
git config --global core.ignorecase false
# 设置默认分支名为 main
git config --global init.defaultBranch main
# 移除多余分支
git config --global remote.origin.prune true
# 推送时直接发布新分支
git config --global push.autoSetupRemote true

使用最新的 Node.js LTS(截至 2023 年 10 月 26 日为 v20)。

请自行修改 HBuilderX 使用的 Node.js 和 npm 路径。

依赖管理

npm install --location=global --force corepack

在项目下设置对应的包管理工具。

corepack enable

使用以下命令安装依赖:

pnpm install

运行项目需查看 package.jsonscripts

镜像

下载 Node.js 和安装依赖过慢时,可以设置 npmmirror 镜像。克隆下来的项目已经设置了该镜像。

也可以使用 nrmcgr

# nrm
npm install --location=global nrm --registry=https://registry.npmmirror.com
nrm use taobao

# cgr
npm install --location=global cgr --registry=https://registry.npmmirror.com
cgr use taobao

Terminal + Shell

Windows 下可使用 Windows Terminal + Git Bash(安装 Git 时附带),其它系统可使用自带的 Terminal + zsh + oh-my-zsh

其它注意点

  • 请及时更新版本。
  • 项目下载之后,先初始化成 Git 项目,再安装依赖。

vue 模板,适用于桌面端网页和移动端网页开发。

自行增加 vite-plugin-electron 并根据文档调整可以开发桌面端应用。

请使用 Vue Language Features (Volar)Takeover Mode

# github
npx tiged MillCloud/presets/vue your-project-name

# gitee
git clone --depth 1 [email protected]:MillCloud/presets
cp presets/vue your-project-name
rm -rf presets

uni-app 模板,适用于小程序和移动端应用开发。

请使用 Vue Language Features (Volar)Takeover Mode

# github
npx tiged MillCloud/presets/uni-app your-project-name

# gitee
git clone --depth 1 [email protected]:MillCloud/presets
cp presets/uni-app your-project-name
rm -rf presets

koa 模板,只适用于后端服务原型开发,不应用于生产环境。

# github
npx tiged MillCloud/presets/koa your-project-name

# gitee
git clone --depth 1 [email protected]:MillCloud/presets
cp presets/koa your-project-name
rm -rf presets

计划内

nest 模板,适用于后端服务开发,基于 fastify。

# github
npx tiged MillCloud/presets/nest your-project-name

# gitee
git clone --depth 1 [email protected]:MillCloud/presets
cp presets/nest your-project-name
rm -rf presets

presets's People

Contributors

modyqyw avatar lin-w-b 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.