From the course: Creating Angular Libraries

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Project file and folder structure

Project file and folder structure - Angular Tutorial

From the course: Creating Angular Libraries

Project file and folder structure

- [Instructor] Angular libraries use a different file and folder structure than Angular applications. In this video, we'll look at the key differences you need to know about. I opened our project here in a GitHub code space. I talk about why we use code spaces earlier in this course, so for now, just think of them as an easy way to share and write code without installing anything on your local machine. From the root of our code space, I'll go to projects, ngx-gem-finder, and click on package.json to open the file. Most Angular libraries are NPM packages, and like all NPM packages, Angular uses a package.json file to define metadata, dependencies, entry points, and other details needed to resolve and run your code. Angular generates this file automatically when you create a new library using the CLI tool. The Angular team recommends declaring library dependencies as peerDependencies. The only exception to this is the tslib package, which should be included as a direct dependency…

Contents