How to setup angular project as a dependency in package.json of another angular project

前端 未结 3 1602
北海茫月
北海茫月 2021-01-05 07:58

I have three different Angular cli projects (X, Y, Z). I want to make [X] as a parent project while I want to add Y and Z as npm package dependencies to X. That means [X] pa

3条回答
  •  走了就别回头了
    2021-01-05 08:15

    You need to package your Y and Z projects and publish them on npm repository or you can develop it locally and use them via npm link... Here the Yeoman generator that can help you out.

    https://github.com/jvandemo/generator-angular2-library

提交回复
热议问题