Item2041: Extend BuildContrib's compress target

pencil
Priority: Enhancement
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: BuildContrib
Branches:
Reported By: MichaelTempest
Waiting For:
Last Change By: MichaelTempest
BuildContrib's compress target minifies xxx_src.js to xxx.js if xxx_src.js exists and xxx.js is in the MANIFEST. There is similar logic for .css files.

Some plugins (e.g. NatEditPlugin) have xxx.uncompressed.js instead of xxx_src.js. Others (like FirebugLitePlugin and TWikiAjaxContrib) have xxx-compressed.js or xxx.compressed.js. There are similar patterns for .css files.

Additionally, some plugins have gzipped versions of .js and .css files.

BuildContrib should
  1. support all of the variations above for minifying .js and .css files.
  2. support gzipping files.
  3. apply "compress" filters in the correct order, so that .js and .css is minified before being gzipped.

-- MichaelTempest - 12 Sep 2009

I did (1) under the auspices of Item8272.

-- CrawfordCurrie - 13 Sep 2009

ItemTemplate edit

Summary Extend BuildContrib's compress target
ReportedBy MichaelTempest
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component BuildContrib
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins distro:36f27795f82c distro:f17c5fcc044c distro:d558c9d47b8f
TargetRelease n/a
ReleasedIn
Topic revision: r6 - 22 Sep 2009, MichaelTempest
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy