Working with JavaScript in a large web application (reuse, integration, unit testing ...)

Can someone advise which tool, approach, link I can use to achieve the following goals for a large web application when it comes to JavaScript: reuse, bundling, unit testing, many developers, such things. For example, I checked the tool for the browser, but there is practically no documentation, nothing.

+6
source share
3 answers

Static code analysis:

JSLint , Google Closure Tools

Validating JavaScript code outside of JSLint

Device Testing:

Jsunit

JavaScript unit test tools for TDD

Combining and posting everything

Java Based Builds - Wro4j - handles many common web tools like JsHint, CssLint, JsMin, Google Closure compressor, YUI Compressor, UglifyJs, Dojo Shrinksafe, Css variable support, JSON compression, Less, Sass, CoffeeScript ...

PHP Based Builds - What is your all-in-one web resource optimizer?

multi-developer environments

Source Control - SVN or Git .

Project Tracking Tools, Sharing Tools, Development Tools - See Atlassian Products (JIRA, Confluence, ...)

Continuous Integration Software - e.g. Hudson

+2
source

Try require.js for reuse and layout details.

There are many tools about unit testing, and from what I see, it is related to the ones you are already using and the fact / how you will be testing.

0
source

I'm going to be short because I'm in a hurry, but you should definitely use a version control system (e.g. git , svn, hg), and you can also use yeoman as it integrated builds, testing, and much more useful automated tasks.

0
source

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


All Articles