Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing .angular-cli.json file: Angular

I've created Angular2 project using Angular-cli with the following command:

ng new project-name 

but, I don't see .angular-cli.json file in my root folder of the project. The angular-cli version I'm using is 1.0.2. I've created multiple projects with cli in the past and have never encountered this problem. Is it because of the recent update? If yes, where can I find the json file? Or do I need to create it manually?

like image 983
Aiguo Avatar asked May 06 '17 19:05

Aiguo


People also ask

Where is my Angular CLI JSON file?

The angular-cli. json should be located in the root folder of the project.

What is Angular CLI JSON file?

A file named angular. json at the root level of an Angular workspace provides workspace-wide and project-specific configuration defaults for build and development tools provided by the Angular CLI. Path values given in the configuration are relative to the root workspace folder.

What can we do in the Angular CLI JSON file?

Angular CLI uses JSON Schema to enforce the configuration schema. The Angular team created Schematics packages which are used by the CLI. We can configure the options of Schematics packages, as we please, for the root project and internal projects as well.


1 Answers

Update: With Angular 6.0.0 the filename is changed from .angular-cli.json to angular.json.

.angular-cli.json is a hidden file since @angular/cli version 1.0.

The file got the prefix . with this version 1.0 , so it is hidden as @JB Nizet commented.

The change is described in the wiki of @angular/cli stories 1.0 update

The location of this file is unchanged.

When you create a new project with @angular/cli 1.0.2, the message

create .angular-cli.json

is displayed.

like image 165
Marc Avatar answered Sep 25 '22 12:09

Marc