V
V
v- death2015-12-11 02:00:59
JavaScript
v- death, 2015-12-11 02:00:59

Where can I get a library for static analysis and compression of js code?

Hello. I've been fiddling around with all sorts of js dependency downloads etc. All these solutions very often crash the browser on a smartphone... Now I made something like a language that is convenient for me (gjs) which has a syntax similar to Go and compiles this business into native js and many useful goodies. In short, I made a tool for myself. Now I'm looking for some kind of lib that would conduct a static analysis of the "compiled" javascript for me and immediately tell me what needs to be corrected. found memory leaks, etc. (now it is necessary for debugging the compiler) then you need a lib to compress the compiled js (replacing the names of functions, objects, variables with the shortest possible)
PS
Where can I read about the "correct" creation of the compiler, otherwise now there is one huge crutch built on regular expressions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2015-12-11
@vGrabko99

jshint
jscs uglify
-js
https://codeclimate.com/
tests-tests-tests
Be prepared for the fact that in the case of teamwork - 99.99% of your gjs will have to be thrown out. I highly recommend poke at your leisure live templates in WebStorm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question