My project has a TypeScript/Express server, and I want to add Angular to the same project.
I completed the official tutorial, so I understand the basics.
Most people will just use the official Angular "boilerplate" - ng new appname
. But I want to know the minimum set of packages to add to package.json
, and why.
I assume some packages are unnecessary, and were added to make it easier for devs to learn Angular - I don't want these.
The CLI adds these as dependencies
:
@angular/animations
@angular/common
@angular/compiler
@angular/core
@angular/forms
@angular/platform-browser
@angular/platform-browser-dynamic
@angular/router
core-js
rxjs
tslib
zone.js
And these as devDependencies
:
@angular-devkit/build-angular
@angular/cli
@angular/compiler-cli
@angular/language-service
codelyzer
jasmine-core // I assume this is for unit testing
jasmine-spec-reporter // I assume this is for unit testing
karma
karma-chrome-launcher
karma-coverage-istanbul-reporter
karma-jasmine
karma-jasmine-html-reporter
protractor // I assume this is for integration testing
ts-node
Which of these are actually needed? (or put another way: which of them can I remove?)