CORE TARGET DEFINITIONS

(componentbuild/shared/targets.xml)

Target Description
all Invokes local and then deploy. This is what you would normally call when you're ready to check in your code to the build directory.
local Invokes clean, init, build, minify and lint. This is what you would normally call, when going through a development build, test, build, test cycle.
clean Deletes the local build dir.
init Creates the component's local build dir (e.g. yui2/src/autocomplete/build_tmp).
build Builds the component files in the local build dir. The work actually performed in the build step varies for the type of component and is defined by the type of build file pulled in:
  • componentbuild/2.x/module.xml (2.x module targets)
  • componentbuild/3.x/module.xml (3.x standalone module targets)
  • componentbuild/3.x/rollup.xml (3.x rollup module targets)
  • componentbuild/shared/cssmodule.xml (2.x, 3.x CSS module targets)
The build targets introduced for the above component types are discussed in detail below.
minify Compresses the built files in the local build directory, to create <component>-min.js (or <component>-min.css for CSS modules)
lint Runs jslint on the built files in the local build directory.
deploy Copies the built files from the local build directory, along with any assets, to the top level build directory. It invokes deploybuild, deployassets, deployskins and deploydocs.
deploybuild Copies built files to global build location.
deployskins Copies built skin CSS and related assets to the global build directory.
deployassets Copies non-skin related assets to the global build directory, if they exist.
deploydocs This target is currently a no-op.

YUI 2, YUI 3 MODULE BUILD

(componentbuild/2.x/module.xml, componentbuild/3.x/module.xml)

Target Description
build Invokes the buildcore and buildskins targets
buildcore Invokes builddebug. The results of builddebug are then stripped of log statements to create the core (<component>.js) file.
builddebug Concatenates the raw source files (with log statements), to create <component>-debug.js, and adds the boilerplate registration code.
buildskins Builds the component's Sam Skin file, by concatenating and <component>-core.css and <component>-skin.css. It also compresses the file using yuicompressor.

YUI 3 ROLLUP BUILD

(componentbuild/3.x/rollup.xml)

Target Description
build Invokes buildmodules
buildmodules Invokes the specified build xml file for each of the sub modules, which build out the modules, as normal, but also roll the results back up into the rollup. The resulting rollup files, then have the boilerplate registration code added.

CSS MODULE BUILD

(componentbuild/shared/cssmodule.xml)

Target Description
build Invokes the buildcore target. Note that for CSS modules, we don't need a buildskins, or builddebug step.
buildcore Concatenates the raw CSS files.