piper-magnetic / gradle-js-plugin

Gradle plugin for working with JS
Apache License 2.0
0 stars 1 forks source link

JSHint is unacceptably slow #1

Open piper-magnetic opened 2 years ago

piper-magnetic commented 2 years ago

Self-opening an issue for my own tracking. Currently, the JSHint module is unacceptably slow for a build task, taking several minutes to accomplish what other tools like gulp can do almost instantly.

This is not an issue with the Gradle plugin, but rather an issue with either Rhino or the JSHint script itself (or both). Running the JSHint script directly via the Rhino jar in terminal produces the same slow behaviour.

This needs to be fixed or a different means of applying JSHint needs to be established.

piper-magnetic commented 2 years ago

Branch 3.3.1.NASHORN shows massive JS improvements, moving from Rhino to the inbuilt Java Nashorn engine.

Will work on wider changes to remove Rhino completely, and look into creating a Nashorn-compatible JSHint script by default.