Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Pull request Compare This branch is 3350 commits behind ajaxorg:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
.gitignore
README.md
dev.js
index.html
kitchen-sink.html
package.json

README.md

Develop & Distribute ACE using the Sourcemint Loader

The Sourcemint JavaScript Loader is an optimized module loader that boots sets of statically linked modules from bundles. An application may load additional bundles by using dynamic links.

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.

Development

Requirements:

Install:

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:

node dev

NOTE: Modified source files are automatically reloaded on browser refresh so there is no need to restart the server during development.

Production

To generate production bundles, use the same setup as for Development, then run:

// NOT YET IMPLEMENTED
node build ../demo/kitchen-sink ./dist

Where ../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:

<!-- Load the Sourcemint JavaScript Loader -->
<script type="text/javascript" src="./dist/loader.min.js"></script>
<!-- Load ACE bootstrap file -->
<script type="text/javascript">
    require.sandbox("./dist/kitchen-sink.js", function(sandbox) {
        sandbox.main();
    });
</script>

See ../demo/kitchen-sink for an example of how to write an ACE bootstrap package.

See Embedding Ace and Embedding API for more information on how to embed and interact with ACE.

Something went wrong with that request. Please try again.