Added an AMD module registration.
This commit is contained in:
Родитель
2af0f62f98
Коммит
905d63fd2f
1
Makefile
1
Makefile
|
@ -27,6 +27,7 @@ less:
|
||||||
@@cat ${HEADER} | sed s/@VERSION/${VERSION}/ > ${DIST}
|
@@cat ${HEADER} | sed s/@VERSION/${VERSION}/ > ${DIST}
|
||||||
@@echo "(function (window, undefined) {" >> ${DIST}
|
@@echo "(function (window, undefined) {" >> ${DIST}
|
||||||
@@cat build/require.js\
|
@@cat build/require.js\
|
||||||
|
build/amd.js\
|
||||||
build/ecma-5.js\
|
build/ecma-5.js\
|
||||||
${SRC}/parser.js\
|
${SRC}/parser.js\
|
||||||
${SRC}/functions.js\
|
${SRC}/functions.js\
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
// amd.js
|
||||||
|
//
|
||||||
|
// Define Less as an AMD module.
|
||||||
|
if (typeof define === "function" && define.amd) {
|
||||||
|
define("less", [], function () { return less; } );
|
||||||
|
}
|
Загрузка…
Ссылка в новой задаче