]> git.argeo.org Git - lgpl/argeo-commons.git/blob - security/runtime/org.argeo.security.ria/config.json
Simplify RIA
[lgpl/argeo-commons.git] / security / runtime / org.argeo.security.ria / config.json
1 {
2 "name" : "ria",
3
4 "include" :
5 [
6 {
7 "path" : "${QOOXDOO_PATH}/component/apiviewer/api.json",
8 "as" : "apiconf"
9 },
10 {
11 "path" : "${QOOXDOO_PATH}/component/testrunner/testrunner.json",
12 "as" : "testrunner"
13 }
14 ],
15
16 "let" :
17 {
18 "APPLICATION" : "org.argeo.ria",
19 "QOOXDOO_PATH" : "src/qooxdoo-sdk",
20 "QXTHEME" : "org.argeo.ria.theme.RiaTheme",
21 "API_EXCLUDE" : ["qx.legacy.*"],
22 "LOCALES" : [ "en" ],
23 "ROOT" : "src/argeo-ria-src",
24 "BUILD_PATH" : "target/classes/argeo-ria",
25 "RIA_LIB_PATH" : "src/argeo-ria-lib",
26 "RIA_LIB_URI" : "../argeo-ria-lib",
27 "CACHE" : "cache" ,
28 "CUSTOM_PACKAGE" : "org.argeo.security.ria"
29 },
30
31 "jobs" :
32 {
33 "common" :
34 {
35 "library" :
36 [
37 {
38 "manifest" : "${QOOXDOO_PATH}/framework/Manifest.json"
39 },
40 {
41 "manifest" : "${RIA_LIB_PATH}/security/Manifest.json"
42 },
43 {
44 "manifest" : "${ROOT}/Manifest.json"
45 }
46 ],
47
48 "include" :
49 [
50 "${APPLICATION}.Application",
51 "${CUSTOM_PACKAGE}.*",
52 "${QXTHEME}"
53 ],
54
55 "cache" :
56 {
57 "compile" : "${CACHE}"
58 },
59
60 "settings" :
61 {
62 "qx.version" : "${QXVERSION}",
63 "qx.theme" : "${QXTHEME}",
64 "qx.application" : "${APPLICATION}.Application",
65 "ria.splashScreen" : "org.argeo.security.ria/ArgeoLogo.png",
66 "ria.auth.enableAuth" : "true",
67 "ria.auth.credentialsURI" : "/org.argeo.security.webapp/getCredentials.ria",
68 "ria.auth.loginURI" : "/org.argeo.security.webapp/login.ria",
69 "ria.auth.logoutURI" : "/org.argeo.security.webapp/logout.ria",
70 "ria.StartupPerspective" : "org.argeo.security.ria.Perspective"
71 }
72 },
73
74 // -- source jobs --------------------------------------------------
75
76 "source-script" :
77 {
78 "extend" : ["common"],
79
80 "compile-source" :
81 {
82 "file" : "${ROOT}/script/${APPLICATION}.js",
83 "locales" : "${LOCALES}",
84 "root" : "${ROOT}",
85 "gzip" : false
86 }
87 },
88
89
90 "slc-source" :
91 {
92 "run" :
93 [
94 "source-script"
95 ]
96 },
97
98 // -- build jobs --------------------------------------------------
99
100 "build-script" :
101 {
102 "extend" : ["common"],
103
104 "variants" :
105 {
106 "qx.debug" : ["off"]
107 },
108
109 "compile-dist" :
110 {
111 "paths" :
112 {
113 "file" : "${BUILD_PATH}/script/${APPLICATION}.js",
114 "gzip" : false
115 },
116 "uris" :
117 {
118 "script" : "script",
119 "resource" : "resource"
120 },
121 "code" :
122 {
123 "format" : true,
124 "locales" : "${LOCALES}",
125 "optimize" : ["variables", "basecalls", "privates", "strings"]
126 }
127 /*
128 "file" : "${BUILD_PATH}/script/${APPLICATION}.js",
129 "target" : "${BUILD_PATH}",
130 "uri" : "script/${APPLICATION}.js",
131 "root" : "${BUILD_PATH}",
132 "format" : "on",
133 "locales" : "${LOCALES}",
134 "optimize" : ["basecalls", "variables", "privates", "strings"]
135 */
136 }
137 },
138
139
140 "build-resources":
141 {
142 "extend" : ["common"],
143
144 "copy-resources" :
145 {
146 "target" : "${BUILD_PATH}",
147 "resource-filter" : true
148 }
149 },
150
151 "my-build-files" :
152 {
153 "extend" : ["common"],
154
155 "copy-files" :
156 {
157 "files" :
158 [
159 "index.html"
160 ],
161 "source" : "${ROOT}",
162 "target" : "${BUILD_PATH}"
163 }
164 },
165
166 "slc-build" :
167 {
168 "run" :
169 [
170 "build-script",
171 "my-build-files",
172 "build-resources"
173 ]
174 },
175
176 "slc-api" :
177 {
178 "extend" : ["apiconf::build"],
179
180 "let" :
181 {
182 "APIVIEWER_ROOT" : "${QOOXDOO_PATH}/component/apiviewer",
183 "BUILD_PATH" : "./target/site/argeo-ria-api/",
184 "API_INCLUDE" : ["${APPLICATION}.*", "${CUSTOM_PACKAGE}.*"]
185 },
186
187 "library" :
188 [
189 {
190 "manifest" : "${ROOT}/Manifest.json",
191 "uri" : ".."
192 },
193 {
194 "manifest" : "${RIA_LIB_PATH}/security/Manifest.json",
195 "uri" : "${RIA_LIB_URI}/security"
196 }
197 ]
198 },
199
200 "slc-test" :
201 {
202 "extend" : ["testrunner::build"],
203
204 "let" :
205 {
206 "TESTRUNNER_ROOT" : "${QOOXDOO_PATH}/component/testrunner",
207 "TEST_INCLUDE" : "${APPLICATION}.test.*",
208 "BUILD_PATH" : "./target/site/argeo-ria-test/"
209 },
210
211 "library" :
212 [
213 {
214 "manifest" : "${ROOT}/Manifest.json",
215 "uri" : ".."
216 }
217 ]
218 }
219
220
221 }
222 }