AngularDoc / angulardoc.github.io

angulardoc.github.io web site
https://angulardoc.github.io
34 stars 2 forks source link

Using extension with Angular project located in nested folder #30

Open massimo-ua opened 5 years ago

massimo-ua commented 5 years ago

Hey, everyone! As stated in plugin description: Note: You have to be inside an angular-cli project in order to use the Angular Explorer view. Otherwise, the root directory must have a tsconfig.json file and the source code is in the "src" sub-directory.

Is it possible to set Angular project root path manually to have ability use plugin with Angular project located in subfolder of project root (e.g. /frontend/tsconfig.json)?

danielschmitz commented 5 years ago

Please add a conf to nested folders 😊

example: settings.json

{
  "angulardoc.project_root": "./frontend"
}
agiledigits commented 5 years ago

We are trying to minimize our footprint and only activate the extension when we detect that there is a tsconfig file. We'd rather not have to scan the whole directory structure. Let us think of an alternative.

massimo-ua commented 5 years ago

Please add a conf to nested folders

example: settings.json

{
  "angulardoc.project_root": "./frontend"
}

Hi @danielschmitz ! Thanx for the reply. But still have no luck with my structure and plugin. You mentioned file settings.json. What settings was mentioned? Settings of vscode itself or settings of the plugin (when it runs first time it creates file .angulardoc.json in project root folder)? I tried both of them (vscode and plugin settings) but without any success

danielschmitz commented 5 years ago

Hello @massimo-ua . It's a suggestion , not implemented yet😊

@agiledigits scan the whole direcotry its a bad ideia.... but a simple conf entry maybe work well.

BTW can't find source code, can't help with a PR...

lonix1 commented 5 years ago

@agiledigits:

We'd rather not have to scan the whole directory structure. Let us think of an alternative.

@danielschmitz's suggestion implies that you don't have to scan the whole directory structure.

For complex projects, those files will not be in the root. Please add a config option like he recommended... Thanks!