Diff for "JavaScriptBuildSystem"

Not logged in - Log In / Register

Differences between revisions 1 and 2
Revision 1 as of 2009-03-04 17:05:20
Size: 576
Editor: mars
Comment:
Revision 2 as of 2009-03-04 17:05:59
Size: 590
Editor: mars
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
A special script, `utilities/yui_deps.py`, looks in the main site template for `<script>` lines that point to YUI3. The minified script files are extracted from the current YUI3 build and added to `launchpad.js`. A special script, `utilities/yui_deps.py`, looks in the main site template for `<script>` lines that point to YUI3. The corresponding minified script files are extracted from the current YUI3 build and added to `launchpad.js`.

The Launchpad JavaScript Build System

Most of the Launchpad JavaScript is bundled, minified, and distributed in one large stand-alone file: launchpad.js.

Adding new YUI3 JavaScript modules

A special script, utilities/yui_deps.py, looks in the main site template for <script> lines that point to YUI3. The corresponding minified script files are extracted from the current YUI3 build and added to launchpad.js.

To add a new YUI3 dependency, just add a new <script> line to the main site template.


CategoryJavaScript

JavaScriptBuildSystem (last edited 2020-10-27 10:23:00 by twom)