Skip to content

Instantly share code, notes, and snippets.

@neonstalwart
Created December 9, 2011 03:34
Show Gist options
  • Save neonstalwart/1450027 to your computer and use it in GitHub Desktop.
Save neonstalwart/1450027 to your computer and use it in GitHub Desktop.
dojo npmish - off the top of my head
<script>
var require = {
// adjust to root of https://github.com/pmuellr/sample-npmish-project
baseUrl: 'npmish',
packages: [
{
name: 'a',
location: 'node_modules/a',
main: 'a.js',
packageMap: {
c: 'c-a'
}
},
{
name: 'b',
location: 'node_modules/b',
main: 'b.js',
packageMap: {
c: 'c-b'
}
}
],
paths: {
'c-a': 'node_modules/a/node_modules/c/c',
'c-b': 'node_modules/b/node_modules/b/index'
},
deps: ['./sample']
};
</script>
<script src="path/to/dojo/dojo.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment