From the course: Angular: Animations
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Building the project - Angular Tutorial
From the course: Angular: Animations
Building the project
- [Instructor] Once finished with our development, we need to package our application for the web by building JavaScript bundles from our TypeScript code packages. Angular CLI provides an automated task to accomplish this. The first thing we need to do is actually stop the server if we have it running. All we need to do to do that is Control-C, and on Windows, it'll ask you if you want to terminate the job. On Mac OS it'll just terminate it immediately. So we want that to be terminated, I'll say yes. Let's make this a little bit bigger. And from here, there's a very simple command that you can use for the Angular CLI, that's NG build. And you can say which environment we want to build for. I want to build for production so --prod. Now we hit Enter and watch as the Angular CLI converts our TypeScript Angular application to pure JavaScript HTML and CSS, which we can actually run and distribute through the web browser. As we can see here, if we expand this a bit, we have a new folder…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.