Micro AMD Loader.
Version 0.1.1
<html>
<head>
<title>Octopus Micro AMD loader</title>
<script type="text/javascript" src="js/octupus-amd.min.js"></script>
<script type="text/javascript">
OctopusAMD.config({
base_url: 'js',
paths: {
'jquery': 'https://...'
}
});
require(['app/app']);
</script>
</head>
<body>
</body>
</html>
If you're into CoffeeScript, you may take look at Coffee-Toaster which use Octupus-AMD as it's default loader.
Coffee-Toaster also optimize your modules -- OctopusAMD itself doesn't have an embeded optimnization routine.
The included makefile
orchestrates these actions:
Sets up repository.
make setup
Keep in watch'n'compile mode. Note that the minified version is no compiled here, just the pretty one.
make watch
Builds both pretty and minified files.
make build
There are currently no tests available (TODO).
make test