app.json 21.4 KB
Newer Older
mchazalviel's avatar
mchazalviel committed
1 2 3 4 5
{
    /**
     * The application's namespace.
     */
    "name": "metExploreViz",
6

mchazalviel's avatar
mchazalviel committed
7 8 9
    /**
     * The version of the application.
     */
maxchaza's avatar
maxchaza committed
10
    "version": "3.0.11",
mchazalviel's avatar
mchazalviel committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

    /**
     * The relative path to the application's markup file (html, jsp, asp, etc.).
     */
    "indexHtmlPath": "index.html",

    /**
     * Comma-separated string with the paths of directories or files to search. Any classes
     * declared in these locations will be available in your class "requires" or in calls
     * to "Ext.require". The "app.dir" variable below is expanded to the path where the
     * application resides (the same folder in which this file is located).
     */
    "classpath": [
        "app",
        "${toolkit.name}/src"
    ],

    /**
     * Comma-separated string with the paths of directories or files to search. Any classes
     * declared in these locations will be automatically required and included in the build.
     * If any file defines an Ext JS override (using Ext.define with an "override" property),
     * that override will in fact only be included in the build if the target class specified
     * in the "override" property is also included.
     */
    "overrides": [
        "overrides",
        "${toolkit.name}/overrides"
    ],

    /**
     * The Sencha Framework for this application: "ext" or "touch".
     */
    "framework": "ext",
44

mchazalviel's avatar
mchazalviel committed
45 46 47
    /**
     * The toolkit to use. Select either "classic" or "modern".
     */
48

mchazalviel's avatar
mchazalviel committed
49
    "toolkit": "classic",
50 51


mchazalviel's avatar
mchazalviel committed
52 53 54
    /**
     * The name of the theme for this application.
     */
55 56


mchazalviel's avatar
mchazalviel committed
57
    "theme": "theme-triton",
58 59


mchazalviel's avatar
mchazalviel committed
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
    /**
     * The list of required packages (with optional versions; default is "latest").
     *
     * For example,
     *
     *      "requires": [
     *          "charts"
     *      ]
     */
    "requires": [
        "font-awesome"
    ],

    /**
     * Fashion build configuration properties.
     */
    "fashion": {
        "inliner": {
            /**
             * Disable resource inliner. Production builds enable this by default.
             */
            "enable": false
        }
    },

    /**
     * Sass configuration properties.
     */
    "sass": {
        /**
         * The root namespace to use when mapping *.scss files to classes in the
         * sass/src and sass/var directories. For example, "metExploreViz.view.Foo" would
         * map to "sass/src/view/Foo.scss". If we changed this to "metExploreViz.view" then
         * it would map to "sass/src/Foo.scss". To style classes outside the app's
         * root namespace, change this to "". Doing so would change the mapping of
         * "metExploreViz.view.Foo" to "sass/src/metExploreViz/view/Foo.scss".
         */
        "namespace": "metExploreViz",

        /**
         * File used to save sass variables edited via Sencha Inspector. This file
         * will automatically be applied to the end of the scss build.
         *
         *      "save": "sass/save.scss"
         *
         */
106

mchazalviel's avatar
mchazalviel committed
107
        // "save": "sass/save.scss",
108

mchazalviel's avatar
mchazalviel committed
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
        /**
         * Comma-separated list of files or folders containing extra Sass. These
         * files are automatically included in the Sass compilation. By default this
         * is just "etc/all.scss" to allow import directives to control the order
         * other files are included.
         *
         * All "etc" files are included at the top of the Sass compilation in their
         * dependency order:
         *
         *      +-------+---------+
         *      |       | base    |
         *      | theme +---------+
         *      |       | derived |
         *      +-------+---------+
         *      | packages        |  (in package dependency order)
         *      +-----------------+
         *      | application     |
         *      +-----------------+
         */
        "etc": [
            "sass/etc/all.scss",
            "${toolkit.name}/sass/etc/all.scss"
        ],

        /**
         * Comma-separated list of folders containing Sass variable definitions
         * files. These file can also define Sass mixins for use by components.
         *
         * All "var" files are included after "etc" files in the Sass compilation in
         * dependency order:
         *
         *      +-------+---------+
         *      |       | base    |
         *      | theme +---------+
         *      |       | derived |
         *      +-------+---------+
         *      | packages        |  (in package dependency order)
         *      +-----------------+
         *      | application     |
         *      +-----------------+
         *
         * The "sass/var/all.scss" file is always included at the start of the var
         * block before any files associated with JavaScript classes.
         */
        "var": [
            "sass/var/all.scss",
            "sass/var",
            "${toolkit.name}/sass/var"
        ],

        /**
         * Comma-separated list of folders containing Sass rule files.
         *
         * All "src" files are included after "var" files in the Sass compilation in
         * dependency order (the same order as "etc"):
         *
         *      +-------+---------+
         *      |       | base    |
         *      | theme +---------+
         *      |       | derived |
         *      +-------+---------+
         *      | packages        |  (in package dependency order)
         *      +-----------------+
         *      | application     |
         *      +-----------------+
         */
        "src": [
            "sass/src",
            "${toolkit.name}/sass/src"
        ]
    },

    /**
     * List of all JavaScript assets in the right execution order.
     *
     * Each item is an object with the following format:
     *
     *      {
     *          // Path to file. If the file is local this must be a relative path from
     *          // this app.json file.
     *          //
     *          "path": "path/to/script.js",   // REQUIRED
     *
     *          // Set to true on one file to indicate that it should become the container
     *          // for the concatenated classes.
     *          //
     *          "bundle": false,    // OPTIONAL
     *
     *          // Set to true to include this file in the concatenated classes.
     *          //
     *          "includeInBundle": false,  // OPTIONAL
     *
     *          // Specify as true if this file is remote and should not be copied into the
     *          // build folder. Defaults to false for a local file which will be copied.
     *          //
     *          "remote": false,    // OPTIONAL
     *
     *          // If not specified, this file will only be loaded once, and cached inside
     *          // localStorage until this value is changed. You can specify:
     *          //
     *          //   - "delta" to enable over-the-air delta update for this file
     *          //   - "full" means full update will be made when this file changes
     *          //
     *          "update": "",        // OPTIONAL
     *
     *          // A value of true indicates that is a development mode only dependency.
     *          // These files will not be copied into the build directory or referenced
     *          // in the generate app.json manifest for the micro loader.
     *          //
     *          "bootstrap": false   // OPTIONAL
     *      }
     *
     */
    "js": [
        {
            "path": "app.js",
225
            "bundle": true
mchazalviel's avatar
mchazalviel committed
226 227
        },
        {
mchazalviel's avatar
mchazalviel committed
228
            "path": "metexploreviz.js"
mchazalviel's avatar
mchazalviel committed
229 230
        },
        {
231 232
            "path": "resources/lib/d3.js/d3.min.js",
            "bundle": true
mchazalviel's avatar
mchazalviel committed
233
        },
Fabien's avatar
Fabien committed
234 235 236
        {
            "path": "resources/lib/dagre.js"
        },
mchazalviel's avatar
mchazalviel committed
237 238 239 240 241
        {
            "path": "resources/lib/graphjs/graph.js",
            "bundle": true
        },
        {
mchazalviel's avatar
mchazalviel committed
242
            "path": "resources/lib/jquery-3.0.0.min.js"
mchazalviel's avatar
mchazalviel committed
243 244 245
        },
        {
            "path": "resources/lib/metExploreViz.js",
246
            "bundle": true
mchazalviel's avatar
mchazalviel committed
247 248 249
        },
        {
            "path": "resources/lib/model/NetworkVizSession.js",
250
            "bundle": true
mchazalviel's avatar
mchazalviel committed
251 252 253
        },
        {
            "path": "resources/lib/model/LinkData.js",
254
            "bundle": true
mchazalviel's avatar
mchazalviel committed
255 256 257
        },
        {
            "path": "resources/lib/model/NodeData.js",
258
            "bundle": true
mchazalviel's avatar
mchazalviel committed
259 260 261
        },
        {
            "path": "resources/lib/model/NetworkData.js",
262
            "bundle": true
mchazalviel's avatar
mchazalviel committed
263 264 265
        },
        {
            "path": "resources/lib/model/GeneralStyle.js",
266
            "bundle": true
mchazalviel's avatar
mchazalviel committed
267 268 269
        },
        {
            "path": "resources/lib/model/LinkStyle.js",
270
            "bundle": true
mchazalviel's avatar
mchazalviel committed
271 272 273
        },
        {
            "path": "resources/lib/model/MetaboliteStyle.js",
274
            "bundle": true
mchazalviel's avatar
mchazalviel committed
275 276 277
        },
        {
            "path": "resources/lib/model/ReactionStyle.js",
278
            "bundle": true
mchazalviel's avatar
mchazalviel committed
279
        },
280 281
        {
            "path": "resources/lib/model/Pathway.js",
282
            "bundle": true
283
        },
mchazalviel's avatar
mchazalviel committed
284 285
        {
            "path": "resources/lib/model/Compartment.js",
286
            "bundle": true
mchazalviel's avatar
mchazalviel committed
287 288 289
        },
        {
            "path": "resources/lib/model/Mapping.js",
290
            "bundle": true
mchazalviel's avatar
mchazalviel committed
291 292 293
        },
        {
            "path": "resources/lib/model/MappingData.js",
294
            "bundle": true
mchazalviel's avatar
mchazalviel committed
295 296 297
        },
        {
            "path": "resources/lib/model/Scale.js",
298
            "bundle": true
mchazalviel's avatar
mchazalviel committed
299 300
        },
        {
Maxime Chazalviel's avatar
Maxime Chazalviel committed
301
            "path": "resources/lib/model/ValueMapping.js",
302
            "bundle": true
mchazalviel's avatar
mchazalviel committed
303 304 305
        },
        {
            "path": "resources/lib/model/ComparedPanel.js",
306
            "bundle": true
mchazalviel's avatar
mchazalviel committed
307 308 309
        },
        {
            "path": "resources/lib/functions/D3Extention.js",
310
            "bundle": true
mchazalviel's avatar
mchazalviel committed
311 312 313
        },
        {
            "path": "resources/lib/functions/GraphLink.js",
314
            "bundle": true
mchazalviel's avatar
mchazalviel committed
315 316 317
        },
        {
            "path": "resources/lib/functions/GraphNode.js",
318
            "bundle": true
mchazalviel's avatar
mchazalviel committed
319 320 321
        },
        {
            "path": "resources/lib/functions/GraphCaption.js",
322
            "bundle": true
mchazalviel's avatar
mchazalviel committed
323 324 325
        },
        {
            "path": "resources/lib/functions/GraphUtils.js",
326
            "bundle": true
mchazalviel's avatar
mchazalviel committed
327 328 329
        },
        {
            "path": "resources/lib/functions/GraphNetwork.js",
330
            "bundle": true
mchazalviel's avatar
mchazalviel committed
331
        },
mchazalviel's avatar
mchazalviel committed
332
        {
Maxime Chazalviel's avatar
Maxime Chazalviel committed
333 334 335
            "path": "resources/lib/functions/NodeStyleForm.js",
            "bundle": true
        },
336 337 338 339
        {
            "path": "resources/lib/functions/GraphColorScaleEditor.js",
            "bundle": true
        },
340 341 342 343
        {
            "path": "resources/lib/functions/GraphNumberScaleEditor.js",
            "bundle": true
        },
Maxime Chazalviel's avatar
Maxime Chazalviel committed
344
        {
mchazalviel's avatar
mchazalviel committed
345
            "path": "resources/lib/functions/Features.js",
346
            "bundle": true
mchazalviel's avatar
mchazalviel committed
347
        },
mchazalviel's avatar
mchazalviel committed
348 349
        {
            "path": "resources/lib/functions/GraphFunction.js",
350
            "bundle": true
mchazalviel's avatar
mchazalviel committed
351 352 353
        },
        {
            "path": "resources/lib/functions/GraphMapping.js",
354
            "bundle": true
mchazalviel's avatar
mchazalviel committed
355 356
        },
        {
357
            "path": "resources/lib/functions/GraphPanel.js",
358
            "bundle": true
mchazalviel's avatar
mchazalviel committed
359 360
        },
        {
361
            "path": "resources/lib/functions/GraphPath.js",
362
            "bundle": true
ARohan's avatar
ARohan committed
363 364 365
        },
        {
            "path": "resources/lib/functions/GraphStyleEdition.js",
366
            "bundle": true
mchazalviel's avatar
mchazalviel committed
367
        }
368
    ],
mchazalviel's avatar
mchazalviel committed
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444



    /**
     * Settings specific to classic toolkit builds.
     */
    "classic": {
        "js": [
            // Remove this entry to individually load sources from the framework.
            {
                "path": "${framework.dir}/build/ext-all-rtl-debug.js"
            }
        ]
    },

    /**
     * Settings specific to modern toolkit builds.
     */
    "modern": {
        "js": [
            // Remove this entry to individually load sources from the framework.
            {
                "path": "${framework.dir}/build/ext-modern-all-debug.js"
            }
        ]
    },

    /**
     * List of all CSS assets in the right inclusion order.
     *
     * Each item is an object with the following format:
     *
     *      {
     *          // Path to file. If the file is local this must be a relative path from
     *          // this app.json file.
     *          //
     *          "path": "path/to/stylesheet.css",   // REQUIRED
     *
     *          // Specify as true if this file is remote and should not be copied into the
     *          // build folder. Defaults to false for a local file which will be copied.
     *          //
     *          "remote": false,    // OPTIONAL
     *
     *          // If not specified, this file will only be loaded once, and cached inside
     *          // localStorage until this value is changed. You can specify:
     *          //
     *          //   - "delta" to enable over-the-air delta update for this file
     *          //   - "full" means full update will be made when this file changes
     *          //
     *          "update": ""      // OPTIONAL
     *      }
     */
    "css": [
        {
            // this entry uses an ant variable that is the calculated
            // value of the generated output css file for the app,
            // defined in .sencha/app/defaults.properties
            "path": "${build.out.css.path}",
            "bundle": true,
            "exclude": ["fashion"]
        },
        {
            "path": "resources/css/extjs_gridaction.css",
            "bundle": true
        },
        {
            "path": "resources/css/networkViz.css",
            "bundle": true
        }
    ],

    /**
     * This option is used to configure the dynamic loader. At present these options
     * are supported.
     *
     */
445 446 447 448 449 450 451 452
    "loader": {
        // This property controls how the loader manages caching for requests:
        //
        //   - true: allows requests to receive cached responses
        //   - false: disable cached responses by adding a random "cache buster"
        //   - other: a string (such as the build.timestamp shown here) to allow
        //     requests to be cached for this build.
        //
453
        "cache": "${build.timestamp}",
454 455 456 457 458 459

        // When "cache" is not true, this value is the request parameter used
        // to control caching.
        //
        "cacheParam": "_dc"
    },
mchazalviel's avatar
mchazalviel committed
460 461 462 463 464 465 466

    /**
     * Settings specific to production builds.
     */
    "production": {
        "output": {
            "appCache": {
467
                "enable": true,
mchazalviel's avatar
mchazalviel committed
468 469 470 471 472 473 474
                "path": "cache.appcache"
            }
        },
        "loader": {
            "cache": "${build.timestamp}"
        },
        "cache": {
Maxime Chazalviel's avatar
Maxime Chazalviel committed
475
            "enable": true
mchazalviel's avatar
mchazalviel committed
476 477 478 479 480
        },
        "compressor": {
            "type": "yui"
        }
    },
481

mchazalviel's avatar
mchazalviel committed
482 483 484 485 486
    /**
     * Settings specific to testing builds.
     */
    "testing": {
    },
487

mchazalviel's avatar
mchazalviel committed
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529
    /**
     * Settings specific to development builds.
     */
    "development": {
        "tags": [
            // You can add this tag to enable Fashion when using app watch or
            // you can add "?platformTags=fashion:1" to the URL to enable Fashion
            // without changing this file.
            //
            // "fashion"
        ]
    },

    /**
     * Controls the output structure of development-mode (bootstrap) artifacts. May
     * be specified by a string:
     *
     *      "bootstrap": "${app.dir}"
     *
     * This will adjust the base path for all bootstrap objects, or expanded into object
     * form:
     *
     *      "bootstrap": {
     *          "base": "${app.dir},
     *          "manifest": "bootstrap.json",
     *          "microloader": "bootstrap.js",
     *          "css": "bootstrap.css"
     *      }
     *
     * You can optionally exclude entries from the manifest. For example, to exclude
     * the "loadOrder" (to help development load approximate a build) you can add:
     *
     *      "bootstrap": {
     *          "manifest": {
     *              "path": "bootstrap.json",
     *              "exclude": "loadOrder"
     *          }
     *      }
     *
     */
    "bootstrap": {
        "base": "${app.dir}",
530

mchazalviel's avatar
mchazalviel committed
531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574
        "microloader": "bootstrap.js",
        "css": "bootstrap.css"
    },

    /**
     * Controls the output directory for build resources.  May be set with
     * either a string:
     *
     *      "${workspace.build.dir}/${build.environment}/${app.name}"
     *
     * or an object containing values for various types of build artifacts:
     *
     *      {
     *          "base": "${workspace.build.dir}/${build.environment}/${app.name}",
     *          "page": {
     *              "path": "../index.html",
     *              "enable": false
     *          },
     *          "css": "${app.output.resources}/${app.name}-all.css",
     *          "js": "app.js",
     *          "microloader": {
     *              "path": "microloader.js",
     *              "embed": true,
     *              "enable": true
     *          },
     *          "manifest": {
     *              "path": "app.json",
     *              "embed": false,
     *              "enable": "${app.output.microloader.enable}"
     *          },
     *          "resources": "resources",
     *          "slicer": {
     *              "path": "${app.output.resources}/images",
     *              "enable": false
     *          },
     *          // Setting the "enable" property of this object to a Truthy value will cause a Application Cache
     *          // manifest file to be generated based on this files appCache object. This file will then be injected
     *          // into the index.html file of the built application
     *          "appCache":{
     *              "enable": false"
     *          }
     *      }
     *
     */
575

mchazalviel's avatar
mchazalviel committed
576
    "output": {
577 578 579
        "js": {
            "version": "ES6"
        },
mchazalviel's avatar
mchazalviel committed
580 581 582 583 584 585 586 587 588 589
        "base": "${workspace.build.dir}/${build.environment}/${app.name}",
        "appCache": {
            "enable": false
        },
        "microloader": {
            "path": "bootstrap.js",
            "embed": false,
            "enable": true
        }
    },
590 591


mchazalviel's avatar
mchazalviel committed
592 593 594 595 596 597 598 599 600 601 602 603 604 605 606
    /**
    * Controls for localStorage caching
    *   "cache": {
    *       // This property controls whether localStorage caching of this manifest file is on or off.
    *       // if disabled no deltas will be generated during a build and full updates will be disabled
    *       "enable": false,
    *
    *       // This property allows for global toggle of deltas.
    *       // If set to a string the value will be used as the path to where deltas will be generated relative to you build.
    *       // If set to a Truthy Value the default path ok "deltas" will be used
    *       // If set to a Falsey value or if this property is not present deltas will be disabled and not generated.
    *
    *       "deltas": "deltas"
    *   }
    */
607

mchazalviel's avatar
mchazalviel committed
608
    "cache": {
609 610
        "enable": false,
        "deltas": true
mchazalviel's avatar
mchazalviel committed
611
    },
612

mchazalviel's avatar
mchazalviel committed
613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666

    /**
     * Used to automatically generate cache.manifest (HTML 5 application cache manifest)
     * file when you build.
     */
    "appCache": {
        /**
         * List of items in the CACHE MANIFEST section
         */
        "cache": [
            "index.html"
        ],
        /**
         * List of items in the NETWORK section
         */
        "network": [
            "*"
        ],
        /**
         * List of items in the FALLBACK section
         */
        "fallback": []
    },

    /**
     * Extra resources to be copied into the resource folder as specified in the "resources"
     * property of the "output" object. Folders specified in this list will be deeply copied.
     */
    "resources": [
        {
            "path": "resources",
            "output": "shared"
        },
        {
            "path": "${toolkit.name}/resources"
        },
        {
            "path": "${build.id}/resources"
        }
    ],

    /**
     * File / directory name patttern to ignore when copying to the builds. Must be a
     * valid regular expression.
     */
    "ignore": [
        "(^|/)CVS(/?$|/.*?$)"
    ],

    /**
     * Directory path to store all previous production builds. Note that the content
     * generated inside this directory must be kept intact for proper generation of
     * deltas between updates.
     */
667

668
    "archivePath": "archive",
669

mchazalviel's avatar
mchazalviel committed
670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713


    /**
     * The space config object is used by the "sencha app publish" command to publish
     * a version of this application to Sencha Web Application Manager:
     *
     *      "manager": {
     *          // the space id for this application
     *          "id": 12345,
     *
     *          // space host
     *          "host": "https://api.space.sencha.com/json.rpc",
     *
     *          // Either a zip file path or a folder to be zipped
     *          // this example shows how to publish the root folder for all build profiles
     *          "file": "${app.output.base}/../",
     *
     *          // These may be specified here, but are best specified in your user
     *          // ~/.sencha/cmd/sencha.cfg file
     *          "apiKey": "",
     *          "secret": ""
     *      }
     */

    /**
     * Build Profiles. This object's properties are each a "build profile". You can
     * add as many as you need to produce optimized builds for devices, themes, locales
     * or other criteria. Your "Ext.beforeLoad" hook (see index.html) is responsible for
     * selecting the desired build profile by setting "Ext.manifest" to one of these
     * names.
     *
     *     "builds": {
     *         "classic": {
     *             "toolkit": "classic",
     *             "theme": "theme-neptune"
     *         },
     *
     *         "modern": {
     *             "toolkit": "modern",
     *             "theme": "theme-neptune"
     *         }
     *     }
     *
     */
714

mchazalviel's avatar
mchazalviel committed
715 716 717 718 719

    /**
     * Uniquely generated id for this application, used as prefix for localStorage keys.
     * Normally you should never change this value.
     */
720
    "id": "c2a09d62-4072-4cd8-93fd-00718ff8a8f2"
mchazalviel's avatar
mchazalviel committed
721
}