Skip to content

softspiders/lerna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOFTSPIDERS

lerna

Starter for Lerna monorepo


Feature tags

  • lerna
  • starter
  • template

Children


Authors

Alexander Lapygin


Lerna installation

npm install --global lerna

Install

Being at the root, execute

npm run bootstrap

Run

Run simplest some-command which was previously defined in scripts field of package.json files.

npm run some-command

See the result:

lerna notice cli v3.20.1
lerna info Executing command in 2 packages: "npm run some-command"
lerna info run Ran npm script 'some-command' in 'package-1' in 0.7s:

> [email protected] some-command D:\tmp\200102\lerna\packages\package-1
> echo some-command for package-1

some-command for package-1
lerna info run Ran npm script 'some-command' in 'package-2' in 0.7s:

> [email protected] some-command D:\tmp\200102\lerna\packages\package-2
> echo some-command for package-2

some-command for package-2
lerna success run Ran npm script 'some-command' in 2 packages in 0.7s:
lerna success - package-1
lerna success - package-2


License

Licensed under the MIT license.