Bundles are generated from the AMD formatted source files on the fly during development (using a server helper) and in-batch for production builds. To generate bundles the Sourcemint RequireJS SDK and Platform NodeJS projects are used.
git clone git://github.com/ajaxorg/ace.git cd ace # TMP: Switch to sourcemint branch git checkout sourcemint cd sourcemint npm install
Start development server:
NOTE: Modified source files are automatically reloaded on browser refresh so there is no need to restart the server during development.
To generate production bundles, use the same setup as for Development, then run:
// NOT YET IMPLEMENTED node build ../demo/kitchen-sink ./dist
../demo/kitchen-sink is the path to your ACE bootstrap package which embeds ACE in the page
or provides an interface for the rest of your application to interact with ACE.
Everything needed for ACE (and your bootstrap package) to run will be written to the
./dist directory which can be
used in a production application by serving these static files via a web server. To load the bootstrap file use:
../demo/kitchen-sink for an example of how to write an ACE bootstrap package.