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

Bug 400475

Summary: Minification should work on server installed through npm
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: NodeAssignee: Project Inbox <orion.server-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 6.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-02-11 14:07:40 EST
You should be able to minify the version of the Node server downloaded through npm. Currently, the minification script only works when you clone the Git repo and run it (since the paths to the orion client code, relative to the orionode server, are different in these 2 cases).
Comment 1 Mark Macdonald CLA 2013-02-11 14:08:28 EST
Another idea: publish the npm server as minified by default.
Comment 2 Mark Macdonald CLA 2013-02-11 14:39:01 EST
We should also have a "built" directory where the minified resources are kept, rather than overwrite files in the server directory (as the minification script currently does). If a resource is not found in built, then we fall back to the other static script locations:

1.  lib/built
2.  lib/orionode.client
3.  lib/orion.client (for the npm case)
or  ../../ (for the checked-out-repo case)
Comment 3 Mark Macdonald CLA 2014-04-14 09:55:03 EDT
Comment 1 has been implemented. The behavior described in comment 2 has not, in part because including both minified and unminified source increases the download size of the npm package from 6MB to 15MB.