The first file your application loads
is referred to as an "application" file. It loads all the files and resources
that your application needs. For this example, we'll put our application file in:
You have to tell steal where to find it by configuring steal.options.
There are a lot of ways to configure steal to load your app file, but we've made it really easy:
... and results in steal loading
TIP: If startFile doesn't end with .js (ex: myapp), steal assumes
myapp/myapp.js just to save you 9 characters.
In your files, use the steal function and its helpers
to load dependencies then describe your functionality.
Typically, most of the 'stealing' is done in your application file. Loading
jQuery and jQuery.UI from google, a local helpers.js
and then adding tabs might look something like this:
the steal function can take multiple arguments. Each argument
can be a string, object, or function. Learn more about what can be passed to
steal in the [steal.prototype.init] documentation.
steal can load cross domain
steal loads relative to the current file
steal adds .js if not present
steal is chainable (most function return steal)
Building the app
A lot more details can be found on building in the
generator, you can build
your app's JS and CSS with: