Skip to content

spblog/spfx-library-component-lerna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Lerna to manage SPFx projects with library components

How to run the sample

  1. $ lerna bootstrap
  2. $ lerna run build - build all solutions
  3. $ lerna run --parallel serve - for development

How to init a new repo from scratch

  1. install lerna $ npm install lerna -g
  2. $ lerna init
  3. update lerna config - add spfx-library/** etc. to support deep structures
  4. scaffold lib component and web part - utils and org-app
  5. $ lerna bootstrap - install deps
  6. add dependency "spfx-utils" to org-app, update code
  7. run $ lerna run build - runs npm run build in each repo
  8. dev flow - in lib project add npm command - "serve": "gulp serve --nobrowser" and chagne port to 4322 in serve.json; in app project add npm command "serve": "gulp serve"; run $ lerna run --parallel serve

Blog post - Using Lerna to manage SPFx projects with library components

About

Using Lerna to manage SPFx projects with library components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published