Git Product home page Git Product logo

monorepo-template's Introduction

Vue + NestJS + Vite Monorepo Template

大杂烩了属于是

待解决的问题

  • 问题背景:nestjs 的构建过程不会将项目依赖一并打包,所以需要把项目开发时用到的 package.json 文件拷到打包产物里,一并推送到服务器后再安装依赖
  • 问题原因:monorepo 项目最好要把子项目的公共依赖提取出来,但如果是 nestjs 子项目运行时所需的依赖,提取之后再打包部署就会出现找不到依赖的问题
  • 解决方案
    1. nestjs 子项目的 package.json 文件中添加运行时所必要的依赖(会给开发阶段带来一定的冗余)
    2. 合并 nestjs 子项目与根目录下的 package.json 文件(更冗余了,还是部署之后【捂脸】)
    3. ...

monorepo-template's People

Contributors

godaraden avatar

Watchers

 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.