简体   繁体   中英

How to nest NPM projects

I want to nest a second NPM repository inside the current repository. Is it possible to create another repo inside an existing repo without inheriting dependencies?

I'm asking this so that I can separate my API and static files

It's a good idea to have a seperate project for your API. Having it in the same project as your frontend might cause your some trouble when trying to deploy it to a server, or to multiple server for that mather. In term of NPM, as long as you don't import package from the parent, they should be completly independant. Make sure it is in a subfolder though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM