Configuring the application
As we have learned in previous chapters, the Angular CLI does most of the work to scaffold a new Angular project for us when running the ng new
command in the command line. It creates the bare minimum amount of files that are needed to have an initial Angular skeleton application up and running in zero time.
Configuring the workspace
The following command creates an Angular CLI workspace with an Angular application at its root level, named my-app
:
ng new my-app
The workspace contains various configuration files that the Angular CLI needs in order to build, test, and publish our Angular application:
The following is a brief overview of each one:
e2e
: Contains end-to-end tests and configuration files to run them.node_modules
: Includes npm packages that are needed for development and running the Angular app.src
: Contains all the source files that the Angular...