简体   繁体   中英

Compilation type step for JavaScript

I guess I am used to compiled static languages.

Is there a way to do the following with JavaScript. JavaScript that mostly uses jQuery

  1. Validate JavaScript script (also HTML document may be available), maybe use jslint
  2. Run unit tests
  3. Compress a set of JavaScript files into one large JavaScript file (maybe obfuscated)

Do you have an approach for compiling all of those steps into one command? Like an ant script or maven script?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM