All Projects → AllenFang → lerna-tutorial-example

AllenFang / lerna-tutorial-example

Licence: other
A lerna practice project provided by Docker

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to lerna-tutorial-example

uno-game
🎴 An UNO Game made in Javascript
Stars: ✭ 93 (+181.82%)
Mutual labels:  lerna
microservice-chat-app
The chat app built with microservice architecture, the app using: Lerna, pm2, GraphQL
Stars: ✭ 24 (-27.27%)
Mutual labels:  lerna
monopacker
A tool for managing builds of monorepo frontend projects with eg. npm- or yarn workspaces, lerna or similar tools into a standalone application - no other tools needed.
Stars: ✭ 17 (-48.48%)
Mutual labels:  lerna
babel-loader-lerna-cra
Transpile Create-React-App imports in Lerna projects.
Stars: ✭ 30 (-9.09%)
Mutual labels:  lerna
sqrs
🚌SQRS is a JavaScript library for implementing CQRS pattern.
Stars: ✭ 23 (-30.3%)
Mutual labels:  lerna
medly-components
🧩 Medly components provides numerous themable react components, each with multiple varitaions of sizes, colors, position etc.
Stars: ✭ 66 (+100%)
Mutual labels:  lerna
react-ecommerce
E-commerce monorepo application using NextJs, React, React-native, Design-System and Graphql with Typescript
Stars: ✭ 136 (+312.12%)
Mutual labels:  lerna
elements
Lovingly crafted ui components based on web components. Works well with all Frameworks - including Angular, React and Vue.
Stars: ✭ 42 (+27.27%)
Mutual labels:  lerna
ng-mono-repo-starter
Angular Mono Repo Starter
Stars: ✭ 79 (+139.39%)
Mutual labels:  lerna
knack
A streamlined wrapper around node-rdkafka made with independent composable parts.
Stars: ✭ 15 (-54.55%)
Mutual labels:  lerna
manager
OVHcloud Control Panel
Stars: ✭ 153 (+363.64%)
Mutual labels:  lerna
lerna-terminal
Powerful cli ui for monorepos
Stars: ✭ 25 (-24.24%)
Mutual labels:  lerna
lerna-cola
Superpowers for your Lerna monorepos.
Stars: ✭ 23 (-30.3%)
Mutual labels:  lerna
vue-cli3-lerna-ui
基于VUE CLI 3 & Lerna的UI框架设计
Stars: ✭ 73 (+121.21%)
Mutual labels:  lerna
monopack
A JavaScript bundler for node.js monorepo-codebased applications.
Stars: ✭ 52 (+57.58%)
Mutual labels:  lerna
html-integrations
The official JavaScript library for MathType, the leading formula editor and equation writer for the web by Wiris
Stars: ✭ 36 (+9.09%)
Mutual labels:  lerna
lerna-semantic-release
📦:🛠✨💥 – fully automated package publishing
Stars: ✭ 651 (+1872.73%)
Mutual labels:  lerna
mono.ts
A minimal example of a typescript mono repo with pre-build support (tests, vscode).
Stars: ✭ 58 (+75.76%)
Mutual labels:  lerna
belleui
Web Components UI library
Stars: ✭ 36 (+9.09%)
Mutual labels:  lerna
pacote
A box of goodies, in TypeScript.
Stars: ✭ 14 (-57.58%)
Mutual labels:  lerna

Lerna Tutorial Example

This repo give you an independent enviornment to play with lerna. We leverage on Docker to provide you a gitserver and a lightweight npm server so that you can easy to understand and learn how lerna publish, release and so on.

You will have following components after setup:

  • NPM server(We use verdaccio)
    • npmserver is docker dontainer name
  • GIT server(Simple git server on SSH and already contain a bare repository)
    • gitserver is docker dontainer name
  • Workspace(Git, Node.js and NPM installed), develop/testing/deploy/publish here!!
    • workspace is docker dontainer name

Setup

Install and run

####### GENERATE SSH KEY IF YOU DON'T HAVE YET #######
$ cd ~
$ mkdir .ssh
$ ssh-keygen -t rsa
######################################################

$ git clone https://github.com/AllenFang/lerna-tutorial-example.git
$ cd lerna-tutorial-example
$ cp ~/.ssh/id_rsa.pub ./docker/git-server/keys
$ cp ~/.ssh/id_rsa ./docker/git-server/keys
$ cd docker
$ docker-compose up -d

After docker compose start, gitserver and npmserver will run in the background then you need to type following commands to launch to workspace container to do further setup:

docker-compose run workspace sh

Setup NPM

$ npm set registry http://npmserver:4873
$ npm adduser --registry http://npmserver:4873  # Keyin your username, password and email

Then open your browser and do login via http://localhost:4873. After login, you will see no any package published yet. So two steps you need to do as below:

Setup GIT

$ git config --global user.email "[email protected]"  # Keyin your email
$ git config --global user.name "Your Name"  # Keyin your username

Setup Dummy Project

$ git clone ssh://git@gitserver/git-server/repos/examples.git
$ cd examples
$ npm install

Lerna Test

After above commands, you already setup the git and npm config in the workspace container then it's time that we can publish modules via lerna:

$ ./node_modules/.bin/lerna publish

After above comment, lerna will ask you auto detect what packages had changes since last publish and ask you what version you want to upgrade by a prmopt. Following is the result screenshot:

lerna publish result

When you go to http://localhost:4873, you will see following result: npm publish result

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].