quarta-feira, 3 de janeiro de 2018

SW Construction: Angular CLI (web app generator tutorial)

http://www.dotnetcurry.com/angularjs/1409/angular-cli-tutorial

Citando:
"Introducing Angular CLI

As many of you would know, building a modern web application using a front-end framework like Angular is no more as simple as developing few html pages and showing them on the browser. To work with modern JavaScript frameworks, you now need an environment to be set on the machine, as well as an environment for the application inside the folder that has to contain the code.

The following list shows the required tools to build an Angular application at a higher level:

  • The system to be used for development should have Node.js installed on it. Node.jsis a server platform that supports building web servers using JavaScript. It is also widely used as a platform to build web applications, as it is very easy to spin up a server and start it instantly on Node.js.
  • A Node.js based package manager like npm or yarn is needed to install the libraries to be used in the application.
  • The application needs a setup to install a set of required packages containing the library files, tools to compile the TypeScript code, bundle the files together, run unit tests, start a web server and build files to deploy the application. While setting up these tasks has become easier with tools like Grunt, Gulp and Webpack, one still needs to spend time in writing the scripts for these tasks in every new project.

The third point of the above list takes a lot of time and effort.

To reduce this pain, the Angular team created Angular CLI. Angular CLI is a generator that makes the process of building an Angular application easier."