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?
The angular-cli. json should be located in the root folder of the project.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With