- Notifications
You must be signed in to change notification settings - Fork1
dmokel/tutorial-monorepo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# 你应该通过pnpm run cz来创建规范化的commit-msg,# 如果你的commit-msg不符合规范,那么你的commit将被中断。# 在根目录执行pnpm run cz
# 关于如何在本monorepo进行开发## 当你第一次 clone 该 monorepo 工程到本地时,你需要通过 pnpm 安装依赖,# 首先你需要在 monorepo 根目录执行pnpm install# 安装monorepo root依赖,请注意,此时你还未安装各个apps/packages的依赖,# 因此你需要继续执行相关命令安装apps/pakcages的依赖,格式如下:pnpm --filter @data-farmer/{APP_NAME} install# 示例如:pnpm --filter @data-farmer/ex-http-graphql install# 你可以仅对你进行开发的apps/packages安装依赖,# 从而减少你本地所需要安装的依赖,和减少安装依赖所需的时间。
# 需要pnpm支持,通过npm install -g pnpm@7.29.3# 安装# 在monorepo根目录执行pnpm install# 安装monorepo root依赖# 然后执行pnpm --filter @data-farmer/ex-http-graphql install# 安装ex-http-graphql项目的依赖# 在monorepo根目录执行pnpm run ex-http-graphql:build# 构建js产物# 继续在monorepo根目录执行docker build -t ex-http-graphql -f apps/ex-http-graphql/Dockerfile apps/ex-http-graphql# 构建image镜像
获取更多@data-farmer/ex-http-graphql 的信息
# 需要pnpm支持,通过npm install -g pnpm@7.29.3# 安装# 在monorepo根目录执行pnpm install# 安装monorepo root依赖# 然后执行pnpm --filter @data-farmer/ex-copy-static-asset-with-esbuild install# 安装ex-copy-static-asset-with-esbuild项目的依赖# 在monorepo根目录执行pnpm run ex-copy-static-asset-with-esbuild:build# 构建js产物# 继续在monorepo根目录执行docker build -t ex-copy-static-asset-with-esbuild -f apps/ex-copy-static-asset-with-esbuild/Dockerfile apps/ex-copy-static-asset-with-esbuild# 构建image镜像
About
A typescript monorepo example using pnpm workspace, turbo, prettier, eslint, commitlint, lint-staged, husky and esbuild.