I would like to start working with the Angular2 Beta, but I am facing a few problems regarding the required libraries.
I am using Eclipse and it's TypeScript Plugin.
Also, I am using SystemJS
as module loader.
My problem is that if I install Angular2 using npm install angular2
it loads the whole Angular-Project, including the CommonJS
-Version, ES6
-Version and the TypeScript
-Version. This results in a over 30 MB big folder with almost 2000 files, though I only need the TypeScript
-Version (still a few 100 files), without examples.
Also, importing the /ts
-folder in Eclipse
gives me errors, that the modules from "rxjs" do not exist ("rxjs/Subject"...). So i guess i have to download that project too.
Using the package.json
used in the 5 Min Quickstart, npm install
downloads over 80MB (almost 10000 files), and I am sure, I don't need all those files.
So i would like to know, which files are really needed by Angular2
and how can i download them?
Should i create my own package.json
-File? Or is there a even simpler way?
EDIT:
Taking a look at our (working) Angular 1.X Project, i can see a single angular.js
file, as well as files for the different modules (like restangular.js, angular-route.js etc.), in total about 10 files.
What i am now looking for is an angular2 counterpart of those files.
Do those counterparts exist? Where can i find them?