diff --git a/lib/demo.js b/lib/demo.js new file mode 100644 index 0000000..c54ab10 --- /dev/null +++ b/lib/demo.js @@ -0,0 +1,8 @@ +define(["dojo"], function(dojo){ + dojo.ready(function(){ + var helloDiv = dojo.create("div", { + innerHTML: "Hello World" + }, document.body); + dojo.fadeIn(helloDiv); + }); +}); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..58a01c0 --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name": "commonjs-package-template", + "mappings": { + "dojo": "https://github.com/dojo/dojo/zipball/v1.6.0alpha1" + }, + "description": "Template for CommonJS packages", + "licenses": [ + { + "type": "AFLv2.1", + "url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L43" + }, + { + "type": "BSD", + "url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L13" + } + ], + "bugs": "http://bugs.dojotoolkit.org/", + "keywords": ["Template"], + "homepage": "http://dojotoolkit.org/" +} \ No newline at end of file