diff --git a/componentbuild/README b/componentbuild/README index bad1e15..c6e769c 100644 --- a/componentbuild/README +++ b/componentbuild/README @@ -211,10 +211,11 @@ If you're creating: FURTHER CUSTOMIZATION If required, you can define custom values for any of the properties -defined in README.properties to customize the build for your new component, -however as mentioned above, for most components, the properties defined in -the template files, should be sufficient. +defined in builder/componentbuild/docs/properties.html to customize the +build for your new component, however as mentioned above, for most +components, the properties defined in the template files, should be +sufficient. You can also over-ride or extend existing targets, to customize the actual build process for a component if required. The list of targets and their -role is defined in README.targets \ No newline at end of file +role is defined in builder/componentbuild/docs/targets.html. diff --git a/componentbuild/docs/targets.html b/componentbuild/docs/targets.html new file mode 100644 index 0000000..7579c38 --- /dev/null +++ b/componentbuild/docs/targets.html @@ -0,0 +1,208 @@ + + + +
+ + + +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:
+
|
+
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. | +
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. | +
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. | +
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. | +