Giter Club home page Giter Club logo

lerna-test's Introduction

lerna-test

👥 a monorepo with lerna demo

lerna 作用

帮你解决多 package 相互依赖的版本问题——发布繁琐,有牵一发而动全身内味

主要流程

  1. 任何一个由git托管的项目文件夹
  2. lerna init:初始化一个 lerna monorepo 项目,生成基本的项目骨架
  3. packages文件夹中添加您的子package,然后终端进入该文件夹npm init -y初始化该package
  4. 在该子packagepackage.json文件中添加依赖文件
  5. 然后终端回到项目根目录,执行lerna bootstrap,便可发现您的子package的依赖都已经装上了

参考文档:

lerna官方中文文档

掘金博客:lerna管理前端模块最佳实践

lerna-test's People

Contributors

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