Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 445382

Summary: Use requirejs-maven-plugin to optimize JS files
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: RelengAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P4 Keywords: helpwanted
Version: 6.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2014-09-29 12:28:05 EDT
To minify JS, the build currently runs r.js manually through Rhino. We should switch to requirejs-maven-plugin [1] because it:

* Provides a bit of abstraction.
* Ships r.js in a Maven plugin. (= we don't have to download it again on every build)
* Supports Node.js if installed. (= can later switch to Node to reduce build time)

[1] https://github.com/bringking/requirejs-maven-plugin#requirejs-maven-plugin
Comment 1 Mark Macdonald CLA 2015-09-01 16:53:57 EDT
Won't fix, the build now picks up r.js through a webjar and also uses Node.js if it is installed on the build machine. So we have most of these benefits already