Answer the question
In order to leave comments, you need to log in
Professional JS developer tools. And how to modularize JavaScript?
I have not worked with JS for a long time and I want to return to this area again.
It would be desirable to hear about best practices in a working environment.
What system is now the most popular for connecting JavaScript code? RequireJS?
So that you can normally break the code into modules and debug the code in the IDE. With the use of Source Maps to write not in vanilla JS, but in its dialect, for example CoffeeScript.
And so that in production all this is compiled into one file.
Do I understand correctly that I will have to use a bunch of the following elements?
Answer the question
In order to leave comments, you need to log in
RequireJS is not needed, especially in the context of Angular which already has its own modules, and with Angular2 native ES2015 modules are used, and there are quite good alternatives.
That's what you should definitely use is babel.js, especially in the context of the previous paragraph about modules, then you can load everything in dev through system.js. Or generally collect everything through webpack.
For modularity, look towards browserify.org if I understand you correctly.
For tests, you can look at mocha
As for workflow for JS, you can set up Sublime Text 3 with plugins for js (for me, it works faster and with all plugins almost like ide), you write in any preprocessor language and then configure Gulp, which tracks all changes in files, automatically compiles everything, concatenates and refreshes the browser. It turns out very convenient.
ps about frameworks, then most likely you will have to meet jquery, backbone, underscore, d3 frameworks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question