~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/lp-deps.py

Added YUI3 gallery accordion to our tree in lp/contrib and updated tools to include its components in launchpad.js and combo.css.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    (os.path.join('lib', 'lp', 'registry', 'javascript'), 'registry'),
27
27
    (os.path.join('lib', 'lp', 'translations', 'javascript'), 'translations'),
28
28
    (os.path.join('lib', 'lp', 'soyuz', 'javascript'), 'soyuz'),
 
29
    (os.path.join('lib', 'lp', 'contrib', 'javascript', 'yui3-gallery', 'gallery-accordion'), 'contrib'),
29
30
    ]
30
31
ICING_ROOT = os.path.join(TOP, 'lib', 'canonical', 'launchpad', 'icing')
31
32
ICING_BUILD = os.path.join(ICING_ROOT, 'build')
48
49
    # We don't want the tests to be included.  If we want to nest the files in
49
50
    # more folders though, this is where we change it.
50
51
    for filename in os.listdir(full_dir):
 
52
        # Some third-party JavaScript libraries may include pre-built -min and
 
53
        # -debug files.  Skip those.
 
54
        if filename.endswith('-min.js') or filename.endswith('-debug.js'):
 
55
            continue
51
56
        if filename.endswith('.js'):
52
57
            basename, nothing = filename.split('.js')
53
58
            min_filename = basename + '-min.js'