Part of lp.scripts.utilities.js.jsbuild View In Hierarchy
Method | __init__ | Create a new Builder. |
Method | log | Undocumented |
Method | fail | An error was encountered, abort build. |
Method | ensure_build_directory | Make sure that the named relative path is a directory. |
Method | ensure_link | Make sure that src is linked to dst. |
Method | build_assets | Build a component's "assets" directory. |
Method | link_directory_content | Link all the files in src_dir into target_dir. |
Method | build_skin | Build a skin for a particular component. |
Method | update_combined_css_skins | Create one combined CSS file per skin. |
Method | do_build | Undocumented |
Parameters | name | The name of the package we are building. This will be used to compute the standalone JS and CSS files. |
build_dir | The directory containing the build tree. | |
src_dir | The directory containing the source files. | |
extra_files | List of files that should be bundled in the standalone file. |
This doesn't recurse into subdirectories, but will happily link subdirectories. It also skips linking backup files.
Parameters | link_filter | A callable taking the source file as a parameter. If the filter returns False, no symlink will be created. By default a symlink is created for everything. |