I've got an existing project where I'd like to add an Angular application using the Angular CLI.
The project structure looks like this right now:
- node_modules
- src
- client
- server
- shared
- .angular-cli.json
- package.json
The client and shared folders are still empty and I'd like to install my angular app inside the client folder but still I want to maintain just one package.json for the whole project. That's why I tried to add the angular-cli.json with the following content:
{
"project": {
"name": "projectname"
},
"apps": [
{
"root": "./src/client",
"outDir": "./dist/browser"
}
]
}
The question:
What's the best way to add the Angular application (into /src/client) to my project now? I wasn't able to simply run ng new because of the existing package.json and probably it wouldn't generate the app inside the /src/client folder then either.