]> git.proxmox.com Git - extjs.git/blob - extjs/templates/admin-dashboard/app.json
add extjs 6.0.1 sources
[extjs.git] / extjs / templates / admin-dashboard / app.json
1 {
2 /**
3 * The application's namespace.
4 */
5 "name": "Admin",
6
7 /**
8 * The version of the application.
9 */
10 "version": "1.0.0.0",
11
12 /**
13 * The relative path to the application's markup file (html, jsp, asp, etc.).
14 */
15 "indexHtmlPath": "index.html",
16
17 /**
18 * The list of directories or files to search for classes.
19 *
20 * Any classes declared in these locations will be available in your class "requires"
21 * or in calls to "Ext.require". The "app.dir" variable below is expanded to the path
22 * where the application resides (the same folder in which this file is located).
23 */
24 "classpath": [
25 "app",
26 "${toolkit.name}/src"
27 ],
28
29 /**
30 * Comma-separated string with the paths of directories or files to search.
31 *
32 * Any classes declared in these locations will be automatically required and included
33 * in the build.
34 *
35 * If any file defines an Ext JS override (using Ext.define with an "override" property),
36 * that override will in fact only be included in the build if the target class specified
37 * in the "override" property is also included.
38 */
39 "overrides": [
40 "overrides",
41 "${toolkit.name}/overrides"
42 ],
43
44 /**
45 * The Sencha Framework for this application.
46 */
47 "framework": "ext",
48
49 /**
50 * The list of required packages (with optional versions; default is "latest").
51 */
52 "requires": [
53 "charts",
54 "font-awesome",
55 "ux"
56 ],
57
58 /**
59 * Sass configuration properties.
60 */
61 "sass": {
62 /**
63 * The root namespace to use when mapping *.scss files to classes in the
64 * sass/src and sass/var directories. For example, "Admin.view.Foo" would
65 * map to "sass/src/view/Foo.scss". If we changed this to "Admin.view" then
66 * it would map to "sass/src/Foo.scss". To style classes outside the app's
67 * root namespace, change this to "". Doing so would change the mapping of
68 * "Admin.view.Foo" to "sass/src/Admin/view/Foo.scss".
69 */
70 "namespace": "Admin",
71
72 /**
73 * File used to save sass variables edited via Sencha Inspector. This file
74 * will automatically be applied to the end of the scss build.
75 */
76 // "save": "sass/${build.id}.json"
77
78 /**
79 * Comma-separated list of files or folders containing extra Sass. These
80 * files are automatically included in the Sass compilation. By default this
81 * is just "etc/all.scss" to allow import directives to control the order
82 * other files are included.
83 *
84 * All "etc" files are included at the top of the Sass compilation in their
85 * dependency order:
86 *
87 * +-------+---------+
88 * | | base |
89 * | theme +---------+
90 * | | derived |
91 * +-------+---------+
92 * | packages | (in package dependency order)
93 * +-----------------+
94 * | application |
95 * +-----------------+
96 */
97 "etc": [
98 "sass/etc/all.scss",
99 "${toolkit.name}/sass/etc/all.scss"
100 ],
101
102 /**
103 * Comma-separated list of folders containing Sass variable definitions
104 * files. These file can also define Sass mixins for use by components.
105 *
106 * All "var" files are included after "etc" files in the Sass compilation in
107 * roughly reverse dependency order:
108 *
109 * +-----------------+
110 * | application |
111 * +-------+---------+
112 * | | derived |
113 * | theme +---------+
114 * | | base |
115 * +-------+---------+
116 * | packages | (in package dependency order)
117 * +-----------------+
118 */
119 "var": [
120 "sass/var/all.scss",
121 "sass/var",
122 "${toolkit.name}/sass/var/all.scss",
123 "${toolkit.name}/sass/var"
124 ],
125
126 /**
127 * Comma-separated list of folders containing Sass rule files.
128 *
129 * All "src" files are included after "var" files in the Sass compilation in
130 * dependency order (the same order as "etc"):
131 *
132 * +-------+---------+
133 * | | base |
134 * | theme +---------+
135 * | | derived |
136 * +-------+---------+
137 * | packages | (in package dependency order)
138 * +-----------------+
139 * | application |
140 * +-----------------+
141 */
142 "src": [
143 "sass/src",
144 "${toolkit.name}/sass/src"
145 ]
146 },
147
148 /**
149 * List of all JavaScript assets in the right execution order.
150 *
151 * Each item is an object with the following format:
152 *
153 * {
154 * // Path to file. If the file is local this must be a relative path from
155 * // this app.json file.
156 * //
157 * "path": "path/to/script.js", // REQUIRED
158 *
159 * // Set to true on one file to indicate that it should become the container
160 * // for the concatenated classes.
161 * //
162 * "bundle": false, // OPTIONAL
163 *
164 * // Set to true to include this file in the concatenated classes.
165 * //
166 * "includeInBundle": false, // OPTIONAL
167 *
168 * // Specify as true if this file is remote and should not be copied into the
169 * // build folder. Defaults to false for a local file which will be copied.
170 * //
171 * "remote": false, // OPTIONAL
172 *
173 * // If not specified, this file will only be loaded once, and cached inside
174 * // localStorage until this value is changed. You can specify:
175 * //
176 * // - "delta" to enable over-the-air delta update for this file
177 * // - "full" means full update will be made when this file changes
178 * //
179 * "update": "", // OPTIONAL
180 *
181 * // A value of true indicates that is a development mode only dependency.
182 * // These files will not be copied into the build directory or referenced
183 * // in the generate app.json manifest for the micro loader.
184 * //
185 * "bootstrap": false // OPTIONAL
186 * }
187 *
188 */
189 "js": [{
190 "path": "app.js",
191 "bundle": true
192 }],
193
194 /**
195 * Settings specific to classic toolkit builds.
196 */
197 "classic": {
198 "js": [
199 // // Remove this entry to individually load sources from the framework.
200 // {
201 // "path": "${framework.dir}/build/ext-all-rtl-debug.js"
202 // }
203 ]
204 },
205
206 /**
207 * Settings specific to modern toolkit builds.
208 */
209 "modern": {
210 "js": [
211 // // Remove this entry to individually load sources from the framework.
212 // {
213 // "path": "${framework.dir}/build/ext-modern-all-debug.js"
214 // }
215 ]
216 },
217
218 /**
219 * List of all CSS assets in the right inclusion order.
220 *
221 * Each item is an object with the following format:
222 *
223 * {
224 * // Path to file. If the file is local this must be a relative path from
225 * // this app.json file.
226 * //
227 * "path": "path/to/stylesheet.css", // REQUIRED
228 *
229 * // Specify as true if this file is remote and should not be copied into the
230 * // build folder. Defaults to false for a local file which will be copied.
231 * //
232 * "remote": false, // OPTIONAL
233 *
234 * // If not specified, this file will only be loaded once, and cached inside
235 * // localStorage until this value is changed. You can specify:
236 * //
237 * // - "delta" to enable over-the-air delta update for this file
238 * // - "full" means full update will be made when this file changes
239 * //
240 * "update": "" // OPTIONAL
241 * }
242 */
243 "css": [{
244 // This entry uses an ant variable that is the calculated value of the generated
245 // output css file for the app, defined in .sencha/app/defaults.properties
246 "path": "${build.out.css.path}",
247 "bundle": true,
248 "exclude": ["fashion"]
249 }],
250
251 /**
252 * This option is used to configure the dynamic loader. At present these options
253 * are supported.
254 *
255 */
256 "loader": {
257 // This property controls how the loader manages caching for requests:
258 //
259 // - true: allows requests to receive cached responses
260 // - false: disable cached responses by adding a random "cache buster"
261 // - other: a string (such as the build.timestamp shown here) to allow
262 // requests to be cached for this build.
263 //
264 "cache": false,
265
266 // When "cache" is not true, this value is the request parameter used
267 // to control caching.
268 //
269 "cacheParam": "_dc"
270 },
271
272 /**
273 * Settings specific to production builds.
274 */
275 "production": {
276 "output": {
277 "appCache": {
278 "enable": false,
279 "path": "../cache.appcache"
280 }
281
282 },
283 "loader": {
284 "cache": "${build.timestamp}"
285 },
286 "cache": {
287 "enable": false
288 }
289 },
290
291 /**
292 * Settings specific to testing builds.
293 */
294 "testing": {
295 "output": {
296 "appCache": {
297 "enable": false
298 }
299 },
300 "cache": {
301 "enable": false
302 }
303 },
304
305 /**
306 * Settings specific to development builds.
307 */
308 "development": {
309 "tags": [
310 // You can add this tag to enable Fashion when using app watch or
311 // you can add "?platformTags=fashion:1" to the URL to enable Fashion
312 // without changing this file.
313 //
314 // "fashion"
315 ]
316 },
317
318 /**
319 * Controls the output structure of development-mode (bootstrap) artifacts. May
320 * be specified by a string:
321 *
322 * "bootstrap": "${app.dir}"
323 *
324 * This will adjust the base path for all bootstrap objects, or expanded into object
325 * form:
326 *
327 * "bootstrap": {
328 * "base": "${app.dir},
329 * "manifest": "bootstrap.json",
330 * "microloader": "bootstrap.js",
331 * "css": "bootstrap.css"
332 * }
333 *
334 * You can optionally exclude entries from the manifest. For example, to exclude
335 * the "loadOrder" (to help development load approximate a build) you can add:
336 *
337 * "bootstrap": {
338 * "manifest": {
339 * "path": "bootstrap.json",
340 * "exclude": "loadOrder"
341 * }
342 * }
343 *
344 */
345 "bootstrap": {
346 "base": "${app.dir}",
347 "manifest": "${build.id}.json",
348 "microloader": "bootstrap.js",
349 "css": "bootstrap.css"
350 },
351
352 /**
353 * Controls the output directory for build resources. May be set with
354 * either a string:
355 *
356 * "${workspace.build.dir}/${build.environment}/${app.name}"
357 *
358 * or an object containing values for various types of build artifacts:
359 *
360 * {
361 * "base": "${workspace.build.dir}/${build.environment}/${app.name}",
362 * "page": {
363 * "path": "../index.html",
364 * "enable": false
365 * },
366 * "css": "${app.output.resources}/${app.name}-all.css",
367 * "js": "app.js",
368 * "microloader": {
369 * "path": "microloader.js",
370 * "embed": true,
371 * "enable": true
372 * },
373 * "manifest": {
374 * "path": "app.json",
375 * "embed": false,
376 * "enable": "${app.output.microloader.enable}"
377 * },
378 * "resources": "resources",
379 * "slicer": {
380 * "path": "${app.output.resources}/images",
381 * "enable": false
382 * },
383 * // Setting the "enable" property of this object to a Truthy value will cause a Application Cache
384 * // manifest file to be generated based on this files appCache object. This file will then be injected
385 * // into the index.html file of the built application
386 * "appCache":{
387 * "enable": false"
388 * }
389 * }
390 *
391 */
392 "output": {
393 "base": "${ext.dir}/build/examples/admin-dashboard/${build.id}",
394 "page": "../index.html",
395 "manifest": "../${build.id}.json",
396 "appCache": {
397 "enable": false
398 }
399 },
400
401 /**
402 * Controls for localStorage caching
403 * "cache": {
404 * // This property controls whether localStorage caching of this manifest file is on or off.
405 * // if disabled no deltas will be generated during a build and full updates will be disabled
406 * "enable": false,
407 *
408 * // This property allows for global toggle of deltas.
409 * // If set to a string the value will be used as the path to where deltas will be generated relative to you build.
410 * // If set to a Truthy Value the default path ok "deltas" will be used
411 * // If set to a Falsey value or if this property is not present deltas will be disabled and not generated.
412 * //
413 * "deltas": "deltas"
414 * }
415 */
416 "cache": {
417 "enable": false,
418 "deltas": false
419 },
420
421 /**
422 * Used to automatically generate cache.manifest (HTML 5 application cache manifest)
423 * file when you build.
424 */
425 "appCache": {
426 /**
427 * List of items in the CACHE MANIFEST section
428 */
429 "cache": [
430 "index.html"
431 ],
432 /**
433 * List of items in the NETWORK section
434 */
435 "network": [
436 "*"
437 ],
438 /**
439 * List of items in the FALLBACK section
440 */
441 "fallback": []
442 },
443
444 /**
445 * Extra resources to be copied into the resource folder as specified in the "resources"
446 * property of the "output" object. Folders specified in this list will be deeply copied.
447 */
448 "resources": [
449 {
450 "path": "resources"
451 },
452 {
453 "path": "${toolkit.name}/resources"
454 }
455 ],
456
457 /**
458 * File / directory name patttern to ignore when copying to the builds. Must be a
459 * valid regular expression.
460 */
461 "ignore": [
462 "(^|/)CVS(/?$|/.*?$)"
463 ],
464
465 /**
466 * Directory path to store all previous production builds. Note that the content
467 * generated inside this directory must be kept intact for proper generation of
468 * deltas between updates.
469 */
470 "archivePath": "archive",
471
472 /**
473 * Additional resources used during theme slicing operations
474 */
475 "slicer": {
476 "js": [
477 {
478 "path": "sass/example/custom.js",
479 "isWidgetManifest": true
480 }
481 ],
482 "output": {
483 "appCache": {
484 "enable": false
485 }
486 },
487 "cache": {
488 "enable": false
489 }
490 },
491
492 /**
493 * This config object is used by the "sencha app publish" command to publish
494 * a version of this application to Sencha Web Application Manager:
495 *
496 * "manager": {
497 * // the space id for this application
498 * "id": 12345,
499 *
500 * // space host
501 * "host": "https://api.space.sencha.com/json.rpc",
502 *
503 * // Either a zip file path or a folder to be zipped
504 * // this example shows how to publish the root folder for all build profiles
505 * "file": "${app.output.base}/../",
506 *
507 * // These may be specified here, but are best specified in your user
508 * // ~/.sencha/cmd/sencha.cfg file
509 * "apiKey": "",
510 * "secret": ""
511 * }
512 */
513
514 /**
515 * Build Profiles. This object's properties are each a "build profile". You can
516 * add as many as you need to produce optimized builds for devices, themes, locales
517 * or other criteria. Your "Ext.beforeLoad" hook (see index.html) is responsible for
518 * selecting the desired build profile by setting "Ext.manifest" to one of these
519 * names.
520 *
521 * "builds": {
522 * "classic": {
523 * "toolkit": "classic",
524 * "theme": "theme-neptune"
525 * },
526 *
527 * "modern": {
528 * "toolkit": "modern",
529 * "theme": "theme-neptune"
530 * }
531 * }
532 *
533 */
534 "builds": {
535 "classic": {
536 "toolkit": "classic",
537 "theme": "theme-triton"
538 },
539
540 "modern": {
541 "toolkit": "modern",
542 "theme": "theme-triton"
543 }
544 },
545
546 /**
547 * Uniquely generated id for this application, used as prefix for localStorage keys.
548 * Normally you should never change this value.
549 */
550 "id": "39acbe74-575a-4e77-8062-a62324a1e58f"
551 }