diff options
Diffstat (limited to 'install/ui/src')
-rw-r--r-- | install/ui/src/freeipa/freeipa.profile.js | 16 | ||||
-rw-r--r-- | install/ui/src/freeipa/package.json | 39 | ||||
-rw-r--r-- | install/ui/src/webui.profile.js | 74 |
3 files changed, 129 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/freeipa.profile.js b/install/ui/src/freeipa/freeipa.profile.js new file mode 100644 index 00000000..be81f18f --- /dev/null +++ b/install/ui/src/freeipa/freeipa.profile.js @@ -0,0 +1,16 @@ +// +// Dojo builder profile file +// + + +var profile = (function(){ + return { + resourceTags: { + + // all JavaScript files are AMD modules + amd: function(filename, mid) { + return /\.js$/.test(filename); + } + } + }; +})();
\ No newline at end of file diff --git a/install/ui/src/freeipa/package.json b/install/ui/src/freeipa/package.json new file mode 100644 index 00000000..a7279ed3 --- /dev/null +++ b/install/ui/src/freeipa/package.json @@ -0,0 +1,39 @@ +{ + "name": "freeipa", + "description": "Web UI for FreeIPA, an integrated security information management solution.", + "version": "1.0", + "keywords": ["FreeIPA","Identity management", "Red Hat", "Web UI"], + "maintainers": [{ + "name": "Petr Vobornik" + },{ + "name": "Endi Sukma Dewata" + }], + "contributors": [{ + "name": "Petr Vobornik" + },{ + "name": "Endi Sukma Dewata" + },{ + "name": "Adam Young" + },{ + "name": "Pavel Zuna" + }], + "licenses": [{ + "type": "GPLv3", + "url": "http://www.gnu.org/licenses/gpl-3.0.html" + },{ + "type": "GPLv2", + "url": "http://www.gnu.org/licenses/gpl-2.0.html" + }], + "bugs": "https://fedorahosted.org/freeipa/", + "repositories": [{ + "type": "git", + "url": "git://git.fedorahosted.org/git/freeipa.git ", + "path": "install/ui/js/freeipa" + }], + "dependencies": { + "dojo": "~1.8.1" + }, + "main": "src", + "homepage": "http://freeipa.org/", + "dojoBuild": "freeipa.profile.js" +}
\ No newline at end of file diff --git a/install/ui/src/webui.profile.js b/install/ui/src/webui.profile.js new file mode 100644 index 00000000..ad24b5b9 --- /dev/null +++ b/install/ui/src/webui.profile.js @@ -0,0 +1,74 @@ +// +// Web UI application profile +// + +var profile = (function(){ + return { + basePath: ".", + releaseDir: "../release", + releaseName: "lib", + action: "release", + + // Remove just comments. Don't use Shrinksave or Clusure, we don't + // pack it, it would raise error. + // Additional optimization can be done by uglify.js. + 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, //all modules should be AMD + "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 + }, + + // Dojo package and layer is not included to not pollute release dir. + // It will raise some dependency errors. #TODO:update builder to be + // able to specify dependencies to ignore + + packages:[ + { + name: "freeipa", + location: "freeipa" + } + ], + + layers: { + "freeipa/app": { + include: ["freeipa/app"] + } + } + }; +})();
\ No newline at end of file |