Skip to content

Commit

Permalink
Added an AMD module registration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobby Wertman committed Nov 22, 2011
1 parent 2af0f62 commit 905d63f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ less:
@@cat ${HEADER} | sed s/@VERSION/${VERSION}/ > ${DIST}
@@echo "(function (window, undefined) {" >> ${DIST}
@@cat build/require.js\
build/amd.js\
build/ecma-5.js\
${SRC}/parser.js\
${SRC}/functions.js\
Expand Down
6 changes: 6 additions & 0 deletions build/amd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// amd.js
//
// Define Less as an AMD module.
if (typeof define === "function" && define.amd) {
define("less", [], function () { return less; } );
}

0 comments on commit 905d63f

Please sign in to comment.