sainture
2/20/2019 - 12:02 AM

Setup new repository

ng new <project-name> --directory './project-name'


1. Create a new repository in VSTS (remote repo)
2. Clone it locally
3. Open that project in VS Code and go one level up (cd ..) and use the --directory flag to initialize the repo in an existing folder
4. ng new <project-name> --directory './project-name'

// This is to do 'ng new' in an existing project which in our case is the cloned repository from VSTS.

// note that tsconfig.json file -> Compiler Options -> baseUrl is set to './'
// change it to './src' for paths to work