Giter Site home page Giter Site logo

lhaosss / tutorial-monorepo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dmokel/tutorial-monorepo

0.0 0.0 0.0 608 KB

A typescript monorepo example using pnpm workspace, turbo, prettier, eslint, commitlint, lint-staged, husky and esbuild.

Shell 1.43% JavaScript 5.17% TypeScript 88.41% Dockerfile 4.99%

tutorial-monorepo's Introduction

@data-farmer/monorepo

Commitizen friendly

# 你应该通过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安装依赖,
# 从而减少你本地所需要安装的依赖,和减少安装依赖所需的时间。

@data-farmer/ex-http-graphql

# 需要pnpm支持,通过
npm install -g [email protected]
# 安装

# 在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 的信息

@data-farmer/ex-copy-static-asset-with-esbuild

# 需要pnpm支持,通过
npm install -g [email protected]
# 安装

# 在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镜像

获取更多@data-farmer/ex-copy-static-asset-with-esbuild 的信息

tutorial-monorepo's People

Contributors

dmokel 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.