ialexivy / vscode-angular2-files

vscode extension generating angular files with angular cli
MIT License
61 stars 36 forks source link

Consider using configure file in "~/.angular-cli.json"? #14

Closed fulvaz closed 6 years ago

fulvaz commented 6 years ago

It's kind of annouying generate .angular-cli.json every time I generate a new angular project.

Why not look for the configure file in the home path first, then try the workspace?

ialexivy commented 6 years ago

This extension is angular-cli compatible, normally when you generate a project with angular-cli it will also generate an .angular-cli.json file (it's a project configuration file), although it's possible to look at the home path as fallback, i would like to understand your use-case first how do you generate the project in first place and why it's an issue to have 1 additional file?

fulvaz commented 6 years ago
  1. When generating a new project with angular-cli, configuration in ~/.angular-cli.json will be used. Then, with the default setting, it's no need generate setting in the workspace again. angular-cli will still generate one in the workspace though.

  2. As for my case, angular-cli isn't used in our team. So every time I generate a new project, I have to generate a .angular-cli.json and then add it to .gitignore.....wait........

I think i can just copy and paste the config from my previous project and problem solved.

ialexivy commented 6 years ago

Closing for now, since this extension is angular-cli compatible and uses .angular-cli.json for storing configurations such as prefix, etc. that this extension will use when generating new components, modules, pipes and services