< Previous | Next >

Lesson 5: Create a Dojo custom build (optional)

This optional lesson highlights the steps required to create a Dojo custom build. The purpose of a custom Dojo build is to create an efficient version of Dojo, and of your code, that is suitable for deployment.

About this task

Learn more about the Dojo Build System here: www.dojotoolkit.org/reference-guide/build/index.html#build-index

Procedure

  1. In the Enterprise Explorer view, right-click the LoanPaymentCalculator project and select New > Dojo Custom Build. The Dojo Build Tools wizard opens.
  2. Accept the default Profile location. Ensure that you complete a full build of the profile before you build individual layers.
  3. Specify the build scripts and output directories. You can accept the default values.
  4. Click Override profile settings with command line to specify an Optimization method. You can specify whether to delete output directories before building, copy test files into the build, or intern widget templates. When you intern a template, the HTML or CSS file is brought into the JavaScript file and assigned to a string.
  5. To specify advanced options, click Next.
  6. Click Finish. The Custom Build Output window opens displaying details of the build operation.

Results

The Dojo custom build built the entire Dojo distribution and the Dojo layer files that you selected into the output folder that you specified in the Dojo Build Utility wizard.

Lesson checkpoint

You ran a custom build on your Dojo project.

You learned:
  • How to optimize your Dojo code for deployment.
< Previous | Next >
Icon that indicates the type of topic Tutorial lesson topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: loan_lesson6.html