From 90da812af792a9fb6514307382368661c0a6b7d5 Mon Sep 17 00:00:00 2001 From: Ghislain Seguin Date: Thu, 12 Jan 2012 17:46:26 -0800 Subject: [PATCH] Added wrapper and pragmasOnSave --- build/docs.build.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/build/docs.build.js b/build/docs.build.js index 3ff2fe94..8f38ee18 100644 --- a/build/docs.build.js +++ b/build/docs.build.js @@ -8,11 +8,31 @@ //Finds require() dependencies inside a require() or define call. findNestedDependencies: true, + //If skipModuleInsertion is false, then files that do not use define() + //to define modules will get a define() placeholder inserted for them. + //Also, require.pause/resume calls will be inserted. + //Set it to true to avoid this. This is useful if you are building code that + //does not use require() in the built project or in the JS files, but you + //still want to use the optimization tool from RequireJS to concatenate modules + //together. + skipModuleInsertion: true, + modules: [ { name: "jquery.mobile.docs" } ], + pragmasOnSave: { + jqmBuildExclude: true + }, + + //File paths are relative to the build file, or if running a commmand + //line build, the current directory. + wrap: { + startFile: "wrap.start", + endFile: "wrap.end" + }, + dirExclusionRegExp: /^\.|^build|^compiled/ }) \ No newline at end of file