Skip to content

Instantly share code, notes, and snippets.

@pgab

pgab/profile.js Secret

Created July 20, 2017 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgab/b65db34f1f9da902f57e797210fb1a80 to your computer and use it in GitHub Desktop.
Save pgab/b65db34f1f9da902f57e797210fb1a80 to your computer and use it in GitHub Desktop.
var profile = (function(){
return {
basePath: "/../../../",
releaseDir: "",
releaseName: "dist",
action: "release",
// Uses Closure Compiler as the JavaScript minifier. This can also be set to "shrinksafe" to use ShrinkSafe,
// though ShrinkSafe is deprecated and not recommended.
// This option defaults to "" (no compression) if not provided.
optimize: 'closure',
// We're building layers, so we need to set the minifier to use for those, too.
// This defaults to "shrinksafe" if not provided.
layerOptimize: 'closure',
// Strips all calls to console functions within the code. You can also set this to "warn" to strip everything
// but console.error, and any other truthy value to strip everything but console.warn and console.error.
// This defaults to "normal" (strip all but warn and error) if not provided.
stripConsole: 'all',
// The default selector engine is not included by default in a dojo.js build in order to make mobile builds
// smaller. We add it back here to avoid that extra HTTP request. There is also an "acme" selector available; if
// you use that, you will need to set the `selectorEngine` property in index.html, too.
selectorEngine: 'lite',
// Excludes tests, demos, and original template files from being included in the built version.
mini: true,
packages: [{
name: "dojo",
location: "dojo",
destLocation: "dojo"
},{
name: "dijit",
location: "dijit",
destLocation: "dijit"
},{
name : "dojox",
location: "dojox",
destLocation: "dojox"
},{
name: "cbtree",
location: "cbtree",
destLocation: "cbtree"
}],
layers: {
"dist/dojo": {
include:
[
"dojo/Deferred",
"dojo/DeferredList",
"dojo/NodeList-traverse",
"dojo/_base/Color",
"dojo/_base/array",
"dojo/_base/fx",
"dojo/_base/kernel",
"dojo/_base/lang",
"dojo/_base/unload",
"dojo/_base/window",
"dojo/aspect",
"dojo/cookie",
"dojo/data/ItemFileWriteStore",
"dojo/data/ObjectStore",
"dojo/dom",
"dojo/dom-class",
"dojo/dom-construct",
"dojo/dom-geometry",
"dojo/dom-style",
"dojo/domReady",
"dojo/fx",
"dojo/fx/Toggler",
"dojo/has",
"dojo/io-query",
"dojo/json",
"dojo/keys",
"dojo/on",
"dojo/parser",
"dojo/promise/all",
"dojo/query",
"dojo/request/xhr",
"dojo/selector/acme",
"dojo/sniff",
"dojo/store/JsonRest",
"dojo/store/Memory",
"dojo/store/Observable",
"dojo/when",
"dojo/window",
],
customBase: true,
boot: true
},
"dist/dijit": {
include:
[
"dijit/ColorPalette",
"dijit/ConfirmDialog",
"dijit/Dialog",
"dijit/Editor",
"dijit/InlineEditBox",
"dijit/PopupMenuItem",
"dijit/ProgressBar",
"dijit/TitlePane",
"dijit/TooltipDialog",
"dijit/WidgetSet",
"dijit/_BidiSupport",
"dijit/_TemplatedMixin",
"dijit/_WidgetsInTemplateMixin",
"dijit/_editor/plugins/LinkDialog",
"dijit/_editor/plugins/ViewSource",
"dijit/_editor/plugins/FullScreen",
"dijit/_editor/plugins/AlwaysShowToolbar",
"dijit/form/Button",
"dijit/form/CheckBox",
"dijit/form/ComboBox",
"dijit/form/DropDownButton",
"dijit/form/FilteringSelect",
"dijit/form/Form",
"dijit/form/MultiSelect",
"dijit/form/RadioButton",
"dijit/form/Select",
"dijit/form/Slider",
"dijit/form/TextBox",
"dijit/form/Textarea",
"dijit/form/ValidationTextBox",
"dijit/layout/AccordionContainer",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
"dijit/layout/TabContainer",
"dijit/popup",
"dijit/registry",
"dijit/selection"
],
},
"dist/dojox": {
include:
[
"dojox/form/CheckedMultiSelect",
"dojox/form/HorizontalRangeSlider",
"dojox/form/PasswordValidator",
"dojox/form/Uploader",
"dojox/form/nls/Uploader",
"dojox/grid/DataGrid",
"dojox/html/entities",
"dojox/layout/ResizeHandle",
"dojox/uuid/generateRandomUuid",
"dojox/widget/Wizard",
"dojox/widget/WizardPane"
]
},
"dist/cbtree": {
include:
[
"cbtree/Tree",
"cbtree/extensions/TreeStyling",
"cbtree/model/ForestStoreModel",
"cbtree/model/StoreModel-EXT",
"cbtree/models/ForestStoreModel",
"cbtree/store/extensions/Ancestry",
"cbtree/store/ObjectStore",
]
}
}
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment