diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-11-26 13:51:04 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-01-18 15:10:36 +0100 |
commit | 217341560c0e4ef38c88b843c780a1ff90e47d67 (patch) | |
tree | f042b7c813e20248bc056ae36e50e7eb6e61bd31 /install/ui/src/dojo.profile.js | |
parent | 339790ec8eca5b7f781e59c667880b0938616918 (diff) | |
download | freeipa-217341560c0e4ef38c88b843c780a1ff90e47d67.tar.gz freeipa-217341560c0e4ef38c88b843c780a1ff90e47d67.tar.xz freeipa-217341560c0e4ef38c88b843c780a1ff90e47d67.zip |
Minimal Dojo layer
Added configuration files for building Dojo library and built library itself.
This configuration contains only modules currently needed.
make-dojo.sh script should be used for rebuilding the library when additional
modules or an update are needed.
https://fedorahosted.org/freeipa/ticket/112
Diffstat (limited to 'install/ui/src/dojo.profile.js')
-rw-r--r-- | install/ui/src/dojo.profile.js | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/install/ui/src/dojo.profile.js b/install/ui/src/dojo.profile.js new file mode 100644 index 000000000..bbd5e6cd6 --- /dev/null +++ b/install/ui/src/dojo.profile.js @@ -0,0 +1,99 @@ +// +// DOJO profile +// + +var profile = (function(){ + return { + basePath: ".", + releaseDir: "../release", + releaseName: "dojo", + action: "release", + + layerOptimize: "comments", + optimize: "comments", + cssOptimize: "comments", + mini: true, + stripConsole: "warn", + selectorEngine: "lite", + + defaultConfig: { + hasCache:{ + "config-deferredInstrumentation": 0, + "config-dojo-loader-catches": 0, + "config-tlmSiblingOfDojo": 0, + "dojo-amd-factory-scan": 0, + "dojo-combo-api": 0, + "dojo-config-api": 1, + "dojo-config-require": 0, + "dojo-debug-messages": 0, + "dojo-dom-ready-api": 1, + "dojo-firebug": 0, + "dojo-guarantee-console": 1, + "dojo-has-api": 1, + "dojo-inject-api": 1, + "dojo-loader": 1, + "dojo-log-api": 0, + "dojo-modulePaths": 0, + "dojo-moduleUrl": 0, + "dojo-publish-privates": 0, + "dojo-requirejs-api": 0, + "dojo-sniff": 0, + "dojo-sync-loader": 0, + "dojo-test-sniff": 0, + "dojo-timeout-api": 0, + "dojo-trace-api": 0, + "dojo-undef-api": 0, + "dojo-v1x-i18n-Api": 1, + "dom": 1, + "host-browser": 1, + "extend-dojo": 1 + }, + async: 1 + }, + + + packages:[ + { + name: "dojo", + location: "dojo" + } + ], + + layers: { + "dojo/dojo": { + // explicitly include all modules which we want in our build + include: [ + "dojo/dojo", + "dojo/domReady", + "dojo/_base/declare", + // ^ core is about 20KB + "dojo/_base/lang", + "dojo/_base/array", + // ^ adds 10KB + "dojo/dom", + "dojo/dom-construct", + "dojo/dom-class", + "dojo/dom-style", + "dojo/dom-prop", + // ^ adds 20KB, with router only 5KB + "dojo/Stateful", + "dojo/Evented", + "dojo/on", + "dojo/io-query", + // + "dojo/router", + "dojo/hash", //used by router + "dojo/topic", //used by router + // ^ adds 20 KB, most of it is dojo/dom* + "dojo/store/Observable", + "dojo/store/Memory" + //"dojo/_base/NodeList" + + // Total size: 75KB + ], + customBase: true, + boot: true + } + } + }; +})();
\ No newline at end of file |