Giter Site home page Giter Site logo

ycjcl868 / monorepo Goto Github PK

View Code? Open in Web Editor NEW
191.0 3.0 35.0 1.94 MB

Monorepo with pnpm and turborepo, deploying into Vercel.

TypeScript 34.75% JavaScript 45.04% CSS 3.77% HTML 10.02% Rust 0.70% Vue 3.81% Less 0.10% Shell 1.82%
react monorepo turborepo vue vite rust nodejs

monorepo's Introduction

Monorepo

Quick Start

Preinstall

$ npm i -g pnpm
$ pnpm -v # should >= 6.20.0
# Install Rust and Cargo
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install dependencies

$ pnpm install

Apps

Preview:

React App

# Start React App
$ pnpm --filter "react-app" start

Vite App

$ pnpm start --filter "vite-app"

Node.js App

$ pnpm --filter "node-app" start

Dumi App

# using `...` will run `start` script of dumi-app and all of its dependencies:
$ pnpm --filter "dumi-app..." --parallel start

Packages Development

packages/shared

$ pnpm --filter "@infras/shared" dev

packages/ui

$ pnpm --filter "@infras/ui" dev

packages/native

$ pnpm --filter "@infras/native" build

monorepo's People

Contributors

ycjcl868 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

monorepo's Issues

请问如何结合dumi来生产组件的文档?如何同时渲染vue和react组件?

你的monorepo仓库思路很好,感谢你!我打算使用下。

在我使用过程中,我想在根据你的UI组件生成组件使用文档,包括组件预览,dumi是一个很好的方案,由于dumi是基于src向下查找md文件生成文档,就需要对你的ui目录结构进行修改,我修改过,有报错,还在调试;另一方面,当需要对组件进行预览时,dumi只支持react组件预览,不支持vue组件预览。请问以上两点有合适的解决方案吗?

非常期待,再次感谢!

项目启动报错 linking with `cc` failed

根据命令 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 装完rust,安装项目依赖后,会有build的报错,是不是和 host triple 有关系? Ventura 下推荐的是 x86_64-apple-darwin,看网上说的是 aarch64-apple-darwin(但是这个命令不好切换其他的 host triple

rust 安装信息

Current installation options:
   default host triple: x86_64-apple-darwin
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

pnpm i

Progress: resolved 3659, reused 3419, downloaded 1, added 3659, done
packages/native prepare$ npm run build
│ npm WARN using --force Recommended protections disabled.
[1 lines collapsed]
│ > napi build --platform --release
│ npm WARN using --force Recommended protections disabled.
│ > @infras/[email protected] build
│ > napi build --platform --release
│    Compiling proc-macro2 v1.0.56
│    Compiling quote v1.0.26
│    Compiling memchr v2.4.1
│    Compiling semver v1.0.17
│    Compiling syn v1.0.82
│    Compiling infras_native v0.0.0 (/Users/xuzili/Desktop/monorepo/packages/n
│ error: linking with `cc` failed: exit status: 1
│   |
│   = note: LC_ALL="C" PATH="/Users/xuzili/.rustup/toolchains/stable-x86_64-ap
│   = note: xcrun: error: invalid active developer path (/Library/Developer/Co

│ error: could not compile `infras_native` due to previous error
│ warning: build failed, waiting for other jobs to finish...
│ error: linking with `cc` failed: exit status: 1
│   |
│   = note: LC_ALL="C" PATH="/Users/xuzili/.rustup/toolchains/stable-x86_64-ap
│   = note: xcrun: error: invalid active developer path (/Library/Developer/Co
│           
│ error: linking with `cc` failed: exit status: 1
│   |
│   = note: LC_ALL="C" PATH="/Users/xuzili/.rustup/toolchains/stable-x86_64-ap
│   = note: xcrun: error: invalid active developer path (/Library/Developer/Co

│ error: linking with `cc` failed: exit status: 1
│   |
│   = note: LC_ALL="C" PATH="/Users/xuzili/.rustup/toolchains/stable-x86_64-ap
│   = note: xcrun: error: invalid active developer path (/Library/Developer/Co
│           
│ error: could not compile `quote` due to previous error
│ error: could not compile `semver` due to previous error
│ error: could not compile `memchr` due to previous error
│ error: linking with `cc` failed: exit status: 1
│   |
│   = note: LC_ALL="C" PATH="/Users/xuzili/.rustup/toolchains/stable-x86_64-ap
│   = note: xcrun: error: invalid active developer path (/Library/Developer/Co

│ error: could not compile `syn` due to previous error
│ error: linking with `cc` failed: exit status: 1
│   |
│   = note: LC_ALL="C" PATH="/Users/xuzili/.rustup/toolchains/stable-x86_64-ap
│   = note: xcrun: error: invalid active developer path (/Library/Developer/Co
│           
│ error: could not compile `proc-macro2` due to previous error
│ Internal Error: Command failed: cargo build --release
│     at checkExecSyncError (node:child_process:826:11)
│     at Object.execSync (node:child_process:900:15)
│     at BuildCommand.<anonymous> (/Users/xuzili/Desktop/monorepo/node_modules
│     at Generator.next (<anonymous>)
│     at /Users/xuzili/Desktop/monorepo/node_modules/.pnpm/@[email protected]
│     at new Promise (<anonymous>)
│     at __awaiter$1 (/Users/xuzili/Desktop/monorepo/node_modules/.pnpm/@napi-
│     at BuildCommand.execute (/Users/xuzili/Desktop/monorepo/node_modules/.pn
│     at BuildCommand.validateAndExecute (/Users/xuzili/Desktop/monorepo/node_
│     at /Users/xuzili/Desktop/monorepo/node_modules/.pnpm/@[email protected]
└─ Failed in 2.9s at /Users/xuzili/Desktop/monorepo/packages/native
packages/shared prepare$ npm run build
[16 lines collapsed]
│ CJS dist/configs/windi.config.js 4.83 KB
│ CJS dist/types/index.js          1.17 KB
│ ESM dist/utils/index.mjs          198.00 B
│ ESM dist/types/index.mjs          213.00 B
│ ESM dist/configs/windi.config.mjs 3.50 KB
│ DTS Build start
│ DTS ⚡️ Build success in 822ms
│ DTS dist/utils/index.d.ts          157.00 B
│ DTS dist/types/index.d.ts          74.00 B
│ DTS dist/configs/windi.config.d.ts 168.00 B
└─ Done in 2.6s
 ELIFECYCLE  Command failed with exit code 1.

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.