GithubHelp home page GithubHelp logo

demo-pnpm-workspaces's Introduction

Demo 演示 pnpm workspaces 的用法

环境

node 版本要大于等于 14

pnpm 版本要大于等于 7

命令

根目录执行:

pnpm add @pn/components @pn/models -r --filter @pn/web

pnpm start

然后就可以看见一下执行效果:

补充

另外,如果想把项目放在 apps 目录下,把公共库放在 packages 目录下,可以直接在 pnpm-workspace.yaml 增加一行 - 'apps/*'

然后在根目录执行:

pnpm add @pn/components @pn/models -r --filter @pn/exam

pnpm run start:exam

即可看到以下效果:

demo-pnpm-workspaces's People

Contributors

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