J
J
jscoder2016-08-08 11:52:56
Angular
jscoder, 2016-08-08 11:52:56

How to build an Angular 2 build?

Good day!
Angular 2 is a good thing, and I really want to start working with it, but there are a number of issues that either do not suit me: To start Hello World, download QuickStart Source from off. a site in which a bunch of garbage is lying at the root and through npm install you install 400 packages, of which 10 are used. You write the application in typescript, and after compiling .ts, .js and map are in one folder in bulk. The compiler works for 3-4 seconds each file save, and on Gulp it generally works every other time, referring to errors like " TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.". Angular has a dozen dependencies for normal operation, and without some it even refuses to start.
1) How to assemble an intelligible dist from this Olivier for uploading to the server, if the dependencies are registered in 100500 js-configs and pulling out one - you kill everything?
2) from point 1 - How to structure Angular and its dependencies so that the folders are in full order: separately styles, scripts, html, etc.
3) In Gulp.js, the compiler constantly swears that there are no modules if you connect Angular with dependencies with cdn: " error TS2307: Cannot find module '@angular/core' "
I collect everything on Gulp.js and I'm already used to pedantic file sorting and garbage cleaning. In one project, in addition to Angular, theoretically, anything can lie, and with this scenario, uploading 10,000 files to the server in the node_modules folder is, in my opinion, not the smartest thing to do with Angular. Who is already working with the second Angular, respond to the cry for help, share your method of working with it.
Thank you all kitties!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2016-08-08
@AMar4enko

And how do you connect Angular with cdn?
I am building Angular2 via webpack here is my starter https://github.com/AlexYankee/ng2-starter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question