0

I have a project created with vue cli (vue --version -> 3.0.1.) It has next file structure: |-public |-src | ... |-pakage.json

I want to add server part using same package.json. It will be great to move src and public folders to client folder to have file structure like this: |-client | |-public | |-src | |-server |... |-package.json It should be very simple but I can't find exact example.

P.S.: This solution not works - I get This dependency was not found ./client/src error.

beardmeaning
  • 232
  • 3
  • 14
  • Do your client and server get built differently and have different dependencies? – smcstewart Aug 21 '18 at 08:37
  • 1
    Yes. I use `express` framework for server. But I want keep all dependencies inside one `package.json` file. There is video example with two separate projects for client and server at https://www.youtube.com/watch?v=Fa4cRMaTDUI but it is much easier for deployment to have one `package.json` – beardmeaning Aug 21 '18 at 09:34

0 Answers0