How do I start a new JavaScript project (testing, development, construction)?

I have been developing JavaScript since many years, but I never thought about testing, developing and creating things, but I realized that this is very necessary. We just used the Subversion repository with a simple release tag (switching to git soon). As soon as a new project with a large JavaScript size appears (using jQuery), I would like to optimize the whole process.

I have already done some research, but have not found a good basic textbook.

It is definitely a good idea to split classes and individual code blocks into multiple js files, rather than a large one (like Prototype or jQuery does). These js files must be "embedded" in one file. How do I achieve this?

It is very necessary that the Unit-test material that my colleagues and I encode. I found js-test-driver that has an eclipse plugin that seems to be doing a good job. If my developer folder contains all these src- and src-test files, how do I integrate this into the build process?

+3
source share
4 answers

I will answer part of your question:

These js files must be "embedded" in a single file.

This is possible only on the server side - in ASP.NET you created tools for this, otherwise create your own merge server file and specify this file instead of the actual .js files.

+1
source

JavaScript , - YUI Compressor. , - . . js , .

, , . unit test. Selenium. , .

JavaScript, ExtJS JavaScriptMVC. , ​​ , , .

: . JavaScript, , ExtJS, , , , .

+2

js "" . ?

.

YUI, , , Java, , , ! - .

, Perl bash - script ( ) .js - , script HTML , .

+1

Source: https://habr.com/ru/post/1778976/


All Articles