Skip to content

arboleya/octopus-amd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Octopus AMD

Micro AMD Loader.

Version 0.1.1

Docs

--

Usage

<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>

--

Tools

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.

--

Contributing

The included makefile orchestrates these actions:

# Setup

Sets up repository.

make setup
# Watch

Keep in watch'n'compile mode. Note that the minified version is no compiled here, just the pretty one.

make watch
# Build

Builds both pretty and minified files.

make build
# Test

There are currently no tests available (TODO).

make test

About

Micro AMD Loader (as a lab experiment on modules)

Resources

Stars

Watchers

Forks

Packages

No packages published