How to generate Angular.json fileHow to resolve test.ts when running ng test?Angular cli default generation pathHow to generate component in asp.net core 2 in spa application? like angular CLIHow do I add Sass compilation in Angular CLI 6: angular.json?angular 6.0.3 style are not uploadingAngular CLI upgrade rewrote my angular-cli.json settingsLocal workspace file ('angular.json') could not be found. But same code works in another computerAngular CLI 1.7.4 TypeError: Cannot read property 'config' of nullHow to generate Assets from typescript plugins in Angular 6No angular.json When Upgrading from Angular 4 to 7
A social experiment. What is the worst that can happen?
Is there any references on the tensor product of presentable (1-)categories?
How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?
What is this called? Old film camera viewer?
Freedom of speech and where it applies
Why electric field inside a cavity of a non-conducting sphere not zero?
New brakes for 90s road bike
What does routing an IP address mean?
How to explain what's wrong with this application of the chain rule?
Why does the Sun have different day lengths, but not the gas giants?
Why can Carol Danvers change her suit colours in the first place?
What percentage of fillings performed today are done with mercury amalgam?
Terse Method to Swap Lowest for Highest?
Are the IPv6 address space and IPv4 address space completely disjoint?
L1 and Ln cache: when are they written?
How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?
What are the purposes of autoencoders?
Why is it that I can sometimes guess the next note?
What does chmod -u do?
Is it improper etiquette to ask your opponent what his/her rating is before the game?
Strong empirical falsification of quantum mechanics based on vacuum energy density
What should you do if you miss a job interview (deliberately)?
What was the exact wording from Ivanhoe of this advice on how to free yourself from slavery?
Creepy dinosaur pc game identification
How to generate Angular.json file
How to resolve test.ts when running ng test?Angular cli default generation pathHow to generate component in asp.net core 2 in spa application? like angular CLIHow do I add Sass compilation in Angular CLI 6: angular.json?angular 6.0.3 style are not uploadingAngular CLI upgrade rewrote my angular-cli.json settingsLocal workspace file ('angular.json') could not be found. But same code works in another computerAngular CLI 1.7.4 TypeError: Cannot read property 'config' of nullHow to generate Assets from typescript plugins in Angular 6No angular.json When Upgrading from Angular 4 to 7
My current application was in Angular 4 without Angular CLI. So I never had Angualr.json file or Angular-cli.json file. Now we want to generate that Angular CLI or angular.json file. Because this file is not available it is not taking any of the ng commands like ng serve or ng g c testing
How can I generate the file without using ng new command because ng new will create a new project which I don't want. I want to support my existing project.
Few notes on my project :
1. We are launching multiple application from one folder
2. We are launching each application from the ASPX page without using index.html.
Please see the screen shot attached of the error and the folder structure of my projectenter image description here
enter image description here
angular-cli
add a comment |
My current application was in Angular 4 without Angular CLI. So I never had Angualr.json file or Angular-cli.json file. Now we want to generate that Angular CLI or angular.json file. Because this file is not available it is not taking any of the ng commands like ng serve or ng g c testing
How can I generate the file without using ng new command because ng new will create a new project which I don't want. I want to support my existing project.
Few notes on my project :
1. We are launching multiple application from one folder
2. We are launching each application from the ASPX page without using index.html.
Please see the screen shot attached of the error and the folder structure of my projectenter image description here
enter image description here
angular-cli
you need to generate it manually
– Abdul Basit
Mar 7 at 7:37
@Akash Surana: From angular >= 6 '.angular-cli.json' file is replaced by 'angular.json' file. as your project is based on angular 4 that you have said so you need to create '.angular-cli.json' file not 'angular.json' file.
– Humayoun_Kabir
Mar 7 at 7:56
add a comment |
My current application was in Angular 4 without Angular CLI. So I never had Angualr.json file or Angular-cli.json file. Now we want to generate that Angular CLI or angular.json file. Because this file is not available it is not taking any of the ng commands like ng serve or ng g c testing
How can I generate the file without using ng new command because ng new will create a new project which I don't want. I want to support my existing project.
Few notes on my project :
1. We are launching multiple application from one folder
2. We are launching each application from the ASPX page without using index.html.
Please see the screen shot attached of the error and the folder structure of my projectenter image description here
enter image description here
angular-cli
My current application was in Angular 4 without Angular CLI. So I never had Angualr.json file or Angular-cli.json file. Now we want to generate that Angular CLI or angular.json file. Because this file is not available it is not taking any of the ng commands like ng serve or ng g c testing
How can I generate the file without using ng new command because ng new will create a new project which I don't want. I want to support my existing project.
Few notes on my project :
1. We are launching multiple application from one folder
2. We are launching each application from the ASPX page without using index.html.
Please see the screen shot attached of the error and the folder structure of my projectenter image description here
enter image description here
angular-cli
angular-cli
asked Mar 7 at 7:35
Akash SuranaAkash Surana
11
11
you need to generate it manually
– Abdul Basit
Mar 7 at 7:37
@Akash Surana: From angular >= 6 '.angular-cli.json' file is replaced by 'angular.json' file. as your project is based on angular 4 that you have said so you need to create '.angular-cli.json' file not 'angular.json' file.
– Humayoun_Kabir
Mar 7 at 7:56
add a comment |
you need to generate it manually
– Abdul Basit
Mar 7 at 7:37
@Akash Surana: From angular >= 6 '.angular-cli.json' file is replaced by 'angular.json' file. as your project is based on angular 4 that you have said so you need to create '.angular-cli.json' file not 'angular.json' file.
– Humayoun_Kabir
Mar 7 at 7:56
you need to generate it manually
– Abdul Basit
Mar 7 at 7:37
you need to generate it manually
– Abdul Basit
Mar 7 at 7:37
@Akash Surana: From angular >= 6 '.angular-cli.json' file is replaced by 'angular.json' file. as your project is based on angular 4 that you have said so you need to create '.angular-cli.json' file not 'angular.json' file.
– Humayoun_Kabir
Mar 7 at 7:56
@Akash Surana: From angular >= 6 '.angular-cli.json' file is replaced by 'angular.json' file. as your project is based on angular 4 that you have said so you need to create '.angular-cli.json' file not 'angular.json' file.
– Humayoun_Kabir
Mar 7 at 7:56
add a comment |
2 Answers
2
active
oldest
votes
Create a new file with name '.angular-cli.json' and add this file in your main directory.
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project":
"name": "my-app"
,
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments":
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
],
"e2e":
"protractor":
"config": "./protractor.conf.js"
,
"lint": [
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
,
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
,
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
],
"test":
"karma":
"config": "./karma.conf.js"
,
"defaults":
"styleExt": "css",
"component":
add a comment |
From angular >= 6 '.angular-cli.json' file is replaced by 'angular.json' file. as your project is based on angular 4 that you have said so you need to create '.angular-cli.json' file not 'angular.json' file.
As you have ready made project of angular 4 and you want to generate file command (as you mentioned above) like :
ng g c sample
so i assume you have installed latest angular cli in globally.
you can make a trick. Just create a new project in other location and copy that '.angular-cli.json' file in your desired project folder. after that just change the project name and other things which is relevant to your need. create a '.angular-cli.json' file in own hand is little bit tedious and time consuming also as you know.And if you already have cli installed then i think no need to create it manually which may cause you compiling error also.That's all my friend. you can also use this '.angular-cli.json' below if you want:
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project":
"name": "angular-app"
,
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments":
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
],
"e2e":
"protractor":
"config": "./protractor.conf.js"
,
"lint": [
"project": "src/tsconfig.app.json"
,
"project": "src/tsconfig.spec.json"
,
"project": "e2e/tsconfig.e2e.json"
],
"test":
"karma":
"config": "./karma.conf.js"
,
"defaults":
"styleExt": "css",
"component":
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55038367%2fhow-to-generate-angular-json-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Create a new file with name '.angular-cli.json' and add this file in your main directory.
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project":
"name": "my-app"
,
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments":
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
],
"e2e":
"protractor":
"config": "./protractor.conf.js"
,
"lint": [
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
,
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
,
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
],
"test":
"karma":
"config": "./karma.conf.js"
,
"defaults":
"styleExt": "css",
"component":
add a comment |
Create a new file with name '.angular-cli.json' and add this file in your main directory.
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project":
"name": "my-app"
,
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments":
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
],
"e2e":
"protractor":
"config": "./protractor.conf.js"
,
"lint": [
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
,
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
,
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
],
"test":
"karma":
"config": "./karma.conf.js"
,
"defaults":
"styleExt": "css",
"component":
add a comment |
Create a new file with name '.angular-cli.json' and add this file in your main directory.
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project":
"name": "my-app"
,
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments":
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
],
"e2e":
"protractor":
"config": "./protractor.conf.js"
,
"lint": [
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
,
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
,
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
],
"test":
"karma":
"config": "./karma.conf.js"
,
"defaults":
"styleExt": "css",
"component":
Create a new file with name '.angular-cli.json' and add this file in your main directory.
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project":
"name": "my-app"
,
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments":
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
],
"e2e":
"protractor":
"config": "./protractor.conf.js"
,
"lint": [
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
,
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
,
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
],
"test":
"karma":
"config": "./karma.conf.js"
,
"defaults":
"styleExt": "css",
"component":
answered Mar 7 at 7:42
Hasee AmarathungaHasee Amarathunga
506211
506211
add a comment |
add a comment |
From angular >= 6 '.angular-cli.json' file is replaced by 'angular.json' file. as your project is based on angular 4 that you have said so you need to create '.angular-cli.json' file not 'angular.json' file.
As you have ready made project of angular 4 and you want to generate file command (as you mentioned above) like :
ng g c sample
so i assume you have installed latest angular cli in globally.
you can make a trick. Just create a new project in other location and copy that '.angular-cli.json' file in your desired project folder. after that just change the project name and other things which is relevant to your need. create a '.angular-cli.json' file in own hand is little bit tedious and time consuming also as you know.And if you already have cli installed then i think no need to create it manually which may cause you compiling error also.That's all my friend. you can also use this '.angular-cli.json' below if you want:
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project":
"name": "angular-app"
,
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments":
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
],
"e2e":
"protractor":
"config": "./protractor.conf.js"
,
"lint": [
"project": "src/tsconfig.app.json"
,
"project": "src/tsconfig.spec.json"
,
"project": "e2e/tsconfig.e2e.json"
],
"test":
"karma":
"config": "./karma.conf.js"
,
"defaults":
"styleExt": "css",
"component":
add a comment |
From angular >= 6 '.angular-cli.json' file is replaced by 'angular.json' file. as your project is based on angular 4 that you have said so you need to create '.angular-cli.json' file not 'angular.json' file.
As you have ready made project of angular 4 and you want to generate file command (as you mentioned above) like :
ng g c sample
so i assume you have installed latest angular cli in globally.
you can make a trick. Just create a new project in other location and copy that '.angular-cli.json' file in your desired project folder. after that just change the project name and other things which is relevant to your need. create a '.angular-cli.json' file in own hand is little bit tedious and time consuming also as you know.And if you already have cli installed then i think no need to create it manually which may cause you compiling error also.That's all my friend. you can also use this '.angular-cli.json' below if you want:
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project":
"name": "angular-app"
,
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments":
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
],
"e2e":
"protractor":
"config": "./protractor.conf.js"
,
"lint": [
"project": "src/tsconfig.app.json"
,
"project": "src/tsconfig.spec.json"
,
"project": "e2e/tsconfig.e2e.json"
],
"test":
"karma":
"config": "./karma.conf.js"
,
"defaults":
"styleExt": "css",
"component":
add a comment |
From angular >= 6 '.angular-cli.json' file is replaced by 'angular.json' file. as your project is based on angular 4 that you have said so you need to create '.angular-cli.json' file not 'angular.json' file.
As you have ready made project of angular 4 and you want to generate file command (as you mentioned above) like :
ng g c sample
so i assume you have installed latest angular cli in globally.
you can make a trick. Just create a new project in other location and copy that '.angular-cli.json' file in your desired project folder. after that just change the project name and other things which is relevant to your need. create a '.angular-cli.json' file in own hand is little bit tedious and time consuming also as you know.And if you already have cli installed then i think no need to create it manually which may cause you compiling error also.That's all my friend. you can also use this '.angular-cli.json' below if you want:
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project":
"name": "angular-app"
,
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments":
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
],
"e2e":
"protractor":
"config": "./protractor.conf.js"
,
"lint": [
"project": "src/tsconfig.app.json"
,
"project": "src/tsconfig.spec.json"
,
"project": "e2e/tsconfig.e2e.json"
],
"test":
"karma":
"config": "./karma.conf.js"
,
"defaults":
"styleExt": "css",
"component":
From angular >= 6 '.angular-cli.json' file is replaced by 'angular.json' file. as your project is based on angular 4 that you have said so you need to create '.angular-cli.json' file not 'angular.json' file.
As you have ready made project of angular 4 and you want to generate file command (as you mentioned above) like :
ng g c sample
so i assume you have installed latest angular cli in globally.
you can make a trick. Just create a new project in other location and copy that '.angular-cli.json' file in your desired project folder. after that just change the project name and other things which is relevant to your need. create a '.angular-cli.json' file in own hand is little bit tedious and time consuming also as you know.And if you already have cli installed then i think no need to create it manually which may cause you compiling error also.That's all my friend. you can also use this '.angular-cli.json' below if you want:
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project":
"name": "angular-app"
,
"apps": [
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments":
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
],
"e2e":
"protractor":
"config": "./protractor.conf.js"
,
"lint": [
"project": "src/tsconfig.app.json"
,
"project": "src/tsconfig.spec.json"
,
"project": "e2e/tsconfig.e2e.json"
],
"test":
"karma":
"config": "./karma.conf.js"
,
"defaults":
"styleExt": "css",
"component":
edited Mar 7 at 8:23
answered Mar 7 at 8:06
Humayoun_KabirHumayoun_Kabir
17016
17016
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55038367%2fhow-to-generate-angular-json-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
you need to generate it manually
– Abdul Basit
Mar 7 at 7:37
@Akash Surana: From angular >= 6 '.angular-cli.json' file is replaced by 'angular.json' file. as your project is based on angular 4 that you have said so you need to create '.angular-cli.json' file not 'angular.json' file.
– Humayoun_Kabir
Mar 7 at 7:56