cms/app-client/ember-cli-build.js
author ymh <ymh.work@gmail.com>
Wed, 15 Feb 2017 22:53:45 +0100
changeset 511 fbf4e1afab01
parent 502 74fba571487e
child 537 d2e6ee099125
permissions -rw-r--r--
upgrade ember version
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
136
5fed7e1716c2 upgrade ember and ember cli
ymh <ymh.work@gmail.com>
parents: 123
diff changeset
     1
/*jshint node:true*/
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     2
/* global require, module */
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     3
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     4
467
762fc0eb4946 Migrate d3js to v4 and correct d3js visualisations i.e. bug 3.20. Breadcrumb navigation for the language treemap has been improved
ymh <ymh.work@gmail.com>
parents: 455
diff changeset
     5
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     6
module.exports = function(defaults) {
173
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
     7
    var app = new EmberApp(defaults, {
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
     8
        // Add options here
511
fbf4e1afab01 upgrade ember version
ymh <ymh.work@gmail.com>
parents: 502
diff changeset
     9
        'ember-cli-babel': {
447
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 415
diff changeset
    10
          includePolyfill: true,
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 415
diff changeset
    11
        },
173
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    12
        sassOptions: {
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    13
            includePaths: [
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    14
                'bower_components/bootstrap-sass/assets/stylesheets/'
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    15
            ]
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    16
        },
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    17
        fingerprint: {
447
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 415
diff changeset
    18
            enabled: false,
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 415
diff changeset
    19
            exclude: [
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 415
diff changeset
    20
              'images/layers-2x.png',
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 415
diff changeset
    21
              'images/layers.png',
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 415
diff changeset
    22
              'images/marker-icon-2x.png',
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 415
diff changeset
    23
              'images/marker-icon.png',
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 415
diff changeset
    24
              'images/marker-shadow.png'
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 415
diff changeset
    25
            ]
173
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    26
        }
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    27
    });
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    28
173
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    29
    // Use `app.import` to add additional libraries to the generated
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    30
    // output files.
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    31
    //
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    32
    // If you need to use different assets in different
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    33
    // environments, specify an object as the first parameter. That
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    34
    // object's keys should be the environment name and the values
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    35
    // should be the asset to use in that environment.
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    36
    //
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    37
    // If the library that you are including contains AMD or ES6
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    38
    // modules that you would like to import into your application
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    39
    // please specify an object with the list of modules as keys
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    40
    // along with the exports of each module as its value.
221
0bee030d7411 Add popcorn-js in dependencies
Chloe Laisne <chloe.laisne@gmail.com>
parents: 173
diff changeset
    41
    app.import('bower_components/popcorn-js/popcorn.js');
173
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    42
    app.import('bower_components/ammap3/ammap/ammap.js');
393
5ef3bfef0bff add colors to visu chrono
ymh <ymh.work@gmail.com>
parents: 309
diff changeset
    43
    app.import('bower_components/chroma-js/chroma.js');
309
6ab16926b675 update maps to use geonames ids
ymh <ymh.work@gmail.com>
parents: 261
diff changeset
    44
    app.import('vendor/data/maps/worldLow.js');
6ab16926b675 update maps to use geonames ids
ymh <ymh.work@gmail.com>
parents: 261
diff changeset
    45
    app.import('vendor/data/maps/continentsLow.js');
6ab16926b675 update maps to use geonames ids
ymh <ymh.work@gmail.com>
parents: 261
diff changeset
    46
    app.import('vendor/data/maps/france2016Low.js');
394
48458e099b05 make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents: 393
diff changeset
    47
    app.import({
48458e099b05 make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents: 393
diff changeset
    48
      development: 'bower_components/urijs/src/URI.js',
48458e099b05 make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents: 393
diff changeset
    49
      production:  'bower_components/urijs/src/URI.min.js'
48458e099b05 make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents: 393
diff changeset
    50
    });
455
a8bed1c7df8e move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    51
    app.import('bower_components/interval-tree2/dist/interval-tree.js');
480
814468b0fc69 use rangeslider.js polyfill to ensure cross browser compatibility
ymh <ymh.work@gmail.com>
parents: 477
diff changeset
    52
    app.import({
814468b0fc69 use rangeslider.js polyfill to ensure cross browser compatibility
ymh <ymh.work@gmail.com>
parents: 477
diff changeset
    53
      development: 'bower_components/rangeslider.js/dist/rangeslider.js',
814468b0fc69 use rangeslider.js polyfill to ensure cross browser compatibility
ymh <ymh.work@gmail.com>
parents: 477
diff changeset
    54
      production:  'bower_components/rangeslider.js/dist/rangeslider.min.js'
814468b0fc69 use rangeslider.js polyfill to ensure cross browser compatibility
ymh <ymh.work@gmail.com>
parents: 477
diff changeset
    55
    });
814468b0fc69 use rangeslider.js polyfill to ensure cross browser compatibility
ymh <ymh.work@gmail.com>
parents: 477
diff changeset
    56
    app.import('bower_components/rangeslider.js/dist/rangeslider.css');
814468b0fc69 use rangeslider.js polyfill to ensure cross browser compatibility
ymh <ymh.work@gmail.com>
parents: 477
diff changeset
    57
455
a8bed1c7df8e move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    58
393
5ef3bfef0bff add colors to visu chrono
ymh <ymh.work@gmail.com>
parents: 309
diff changeset
    59
    //shims
173
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    60
    app.import('vendor/shims/ammaps.js', {
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    61
        exports: {
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    62
            'ammaps': ['defaults']
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    63
        }
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    64
    });
261
02e2396bcbbc Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)
ymh <ymh.work@gmail.com>
parents: 221
diff changeset
    65
    app.import('vendor/shims/popcorn.js', {
02e2396bcbbc Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)
ymh <ymh.work@gmail.com>
parents: 221
diff changeset
    66
        exports: {
02e2396bcbbc Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)
ymh <ymh.work@gmail.com>
parents: 221
diff changeset
    67
            'popcorn': ['defaults']
02e2396bcbbc Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)
ymh <ymh.work@gmail.com>
parents: 221
diff changeset
    68
        }
02e2396bcbbc Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)
ymh <ymh.work@gmail.com>
parents: 221
diff changeset
    69
    });
393
5ef3bfef0bff add colors to visu chrono
ymh <ymh.work@gmail.com>
parents: 309
diff changeset
    70
    app.import('vendor/shims/chroma.js', {
5ef3bfef0bff add colors to visu chrono
ymh <ymh.work@gmail.com>
parents: 309
diff changeset
    71
        exports: {
5ef3bfef0bff add colors to visu chrono
ymh <ymh.work@gmail.com>
parents: 309
diff changeset
    72
            'chroma': ['defaults']
5ef3bfef0bff add colors to visu chrono
ymh <ymh.work@gmail.com>
parents: 309
diff changeset
    73
        }
5ef3bfef0bff add colors to visu chrono
ymh <ymh.work@gmail.com>
parents: 309
diff changeset
    74
    });
394
48458e099b05 make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents: 393
diff changeset
    75
    app.import('vendor/shims/urijs.js', {
48458e099b05 make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents: 393
diff changeset
    76
      exports: {
48458e099b05 make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents: 393
diff changeset
    77
        'urijs': [ 'default' ]
48458e099b05 make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents: 393
diff changeset
    78
      }
48458e099b05 make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents: 393
diff changeset
    79
    });
455
a8bed1c7df8e move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    80
    app.import('vendor/shims/interval-tree.js', {
a8bed1c7df8e move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    81
      exports: {
a8bed1c7df8e move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    82
        'interval-tree': [ 'default' ]
a8bed1c7df8e move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    83
      }
a8bed1c7df8e move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    84
    });
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    85
415
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    86
    //social-share-kit
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    87
    app.import('bower_components/social-share-kit/dist/js/social-share-kit.js');
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    88
    app.import('bower_components/social-share-kit/dist/css/social-share-kit.css');
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    89
    app.import('bower_components/social-share-kit/dist/fonts/social-share-kit.eot', { destDir: 'fonts'});
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    90
    app.import('bower_components/social-share-kit/dist/fonts/social-share-kit.svg', { destDir: 'fonts'});
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    91
    app.import('bower_components/social-share-kit/dist/fonts/social-share-kit.ttf', { destDir: 'fonts'});
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    92
    app.import('bower_components/social-share-kit/dist/fonts/social-share-kit.woff', { destDir: 'fonts'});
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    93
    app.import('vendor/shims/socialsharekit.js', {
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    94
      exports: {
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    95
        'socialsharekit': [ 'default' ]
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    96
      }
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    97
    });
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents: 394
diff changeset
    98
173
cf7b221238fd Work on test fixtures:
ymh <ymh.work@gmail.com>
parents: 136
diff changeset
    99
    return app.toTree();
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
   100
};