What's in the root folder?

The Angular-CLI tool scaffolds your application with the directory structure shown in the graphic above.

The command to create a new application using the Angular CLI tool is:

ng new [name of app]

Root Directory

e2e

This folder is for testing files with the Karma and Protractor (test running and testing frameworks).

node_modules

This folder contains your projects dependencies including Angular, autoprefixer, browserify, caniuse-lite, postcss and much more.

Back to Root Folder

src

This file contains your projects source code.

Back to Root Folder

.editorConfig

This file is used to configure your code editor or IDE.

Back to Root Folder

.gitignore

This file is used to tell git which files and directories to ignore before making a commit.

angular-cli.json

The file is used to configure the Angular CLI options.

Back to Root Folder

karma-conf.json

This file is used to configure the test runner used by Angular call Karma. Karma runs unit tests written using the Jasmine Unit Testing framework.

Back to Root Folder

package.json

This file is used to declare your project dependencies and metadata.

Back to Root Folder

protractor-conf.js

This file is used to configure the Protractor end-to-end testing framework.

Back to Root Folder

README.js

This file contains the projects README markdown file which contains information regarding the CLI commands needed to run the application.

Back to Root Folder

tsconfig.json

This file indicates that the project is a "TypeScript" project and it configures the options required to "compile" the project.

Back to Root Folder

tslint.json

This file configures how the tslinting tool will generate its reports.

Back to Root Folder