Workspace npm dependencies - Angular

Workspace npm dependencies - Angular , ANGULAR WITH CORE .NET AND MVC RAZOR ENGINE










Workspace npm dependencies


The Angular Framework, Angular CLI, and components used by Angular applications are packaged as npm packages and distributed via the npm registry. You can download and install these npm packages by using the npm CLI client, which is installed with and runs as a Node.js® application. By default, the Angular CLI uses the npm client.

package.json

Both npm and yarn install the packages that are identified in a package.json file. The CLI command ng new creates a package.json file when it creates the new workspace. This package.json is used by all projects in the workspace, including the initial app project that is created by the CLI when it creates the workspace. Initially, this package.json includes a starter set of packages, some of which are required by Angular and others that support common application scenarios. You add packages to package.json as your application evolves. You may even remove some. The package.json is organized into two groups of packages:

  • Dependencies are essential to running applications. 
  • DevDependencies are only necessary to develop applications.

Dependencies

The packages listed in the dependencies section of package.json are essential to running applications. The dependencies section of package.json contains:

  • Angular packages: Angular core and optional modules; their package names begin @angular/.
  • Support packages: 3rd party libraries that must be present for Angular apps to run.
  • Polyfill packages: Polyfills plug gaps in a browser's JavaScript implementation.

To add a new dependency, use the ng add command.

Devdependencies

The packages listed in the devDependencies section of package.json help you develop the application on your local machine. You don't deploy them with the production application.
To add a new devDependency, use either one of the following commands:
  • npm install --save-dev <package-name>
  • yarn add --dev <package-name>

Comments

Popular posts from this blog

How to disable table row in Angular

How to create XML file dynamically in c#.net?

How to get Array value in Angular ?