This question already has an answer here:
I create a new module using angular 6, that will serve as a package to use in another project.
Now, I'm trying to configure the karma and jasmine so I could create unit tests on it. The problem is that I found out that the project does not have any angular.json
file.
It is possible to generate a default angular.json
file from the command line?
Your best bet is to do as danday74 suggested and generate a new project and copy the angular.json file from that generated project:
A quick inspection of the "ng" command line options doesn't reveal any options for generating a new angular.json independently:
You could also manually create your own angular.json based on the documentation provided by the Angular CLI project on Github.