microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.71k stars 1.4k forks source link

Install Angular CLI by default if project type is angular. #1388

Open anirugu opened 2 years ago

anirugu commented 2 years ago

It can be a great feature if someone testing the code of some other repo and want to install angular cli just because the project is based on Angular CLI. This mundane task can be done by devcontainer itself at the time of container build.

For example if script find that project have angular.json this means they have used angular in the project. The version of angular can be find from package.json, container can install the cli of same version and it will save a lot of time for people who just run the code of other to check the project.

Relates to: <Codespaces | Remote - Containers | Both>

bamurtaugh commented 2 years ago

Thanks for opening. Did you have specific container definitions in mind to update?

anirugu commented 2 years ago

A new container can be created with a definition based on the NodeJS definition. It can have commented code for MongoDB (if the project depends on Mongodb it can be avail by just uncommenting the code)

Earlier I was using a dev container definition that I create myself. I was using Nodejs definition with postCreateCommand.