This project attempts to follow the "Dojo Building Guide" at https://dojo.io/learn/building/introduction .
The section "Basic usage" in the "Dojo Building Guide" says
@dojo/cli/cli-build-app
and @dojo/cli-test-intern
must be "available in the
project" and says that if the "application was initialized using
@dojo/cli-create-app
then these dependencies should already be present,"
but doesn't give immediate details about how to initialize an application.
The section "Basic usage"
(https://dojo.io/learn/building/introduction#basic-usage)
in the "Dojo Building Guide" gives a link to @dojo/cli-create-app
:
https://github.com/dojo/cli-create-app , which, under its "Usage" section says:
dojo create [app] --name <appName>
Each of the following five scripts in the current directory checks prerequisite setup and, if the setup has been done, executes a command from the "Dojo Building Guide" or notifies the user about the setup. They are meant to be executed in the order given here.
-
check-tools.sh
in the current project checks whether Node,@dojo/cli-create-app
, andtypescript
have been installed so that they can be used in the project. -
build.sh
initializes the current project using the commanddojo create app --name learn-dojo-building
. -
build-dist.sh
creates an application bundle and outputs the results to theoutput/dist
directory. -
serve-and-watch.sh
starts a web server on port 9999 and makes Dojo's build tool rebuild the application whenever when the application's source files change. The example app demonstrates how a simple home page with a navigation bar can be created using Dojo widgets. -
test.sh
runs the application's unit and functional tests.