author | ymh <ymh.work@gmail.com> |
Fri, 08 Sep 2017 15:03:29 +0200 | |
changeset 543 | aaaf9b0b09f6 |
parent 537 | d2e6ee099125 |
permissions | -rw-r--r-- |
537
d2e6ee099125
upgrade ember + laravel + make everything work
ymh <ymh.work@gmail.com>
parents:
511
diff
changeset
|
1 |
/* eslint-env node */ |
d2e6ee099125
upgrade ember + laravel + make everything work
ymh <ymh.work@gmail.com>
parents:
511
diff
changeset
|
2 |
const EmberApp = require('ember-cli/lib/broccoli/ember-app'); |
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
|
3 |
|
5
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
4 |
module.exports = function(defaults) { |
543 | 5 |
let app = new EmberApp(defaults, { |
173 | 6 |
// Add options here |
511 | 7 |
'ember-cli-babel': { |
447
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
415
diff
changeset
|
8 |
includePolyfill: true, |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
415
diff
changeset
|
9 |
}, |
173 | 10 |
sassOptions: { |
11 |
includePaths: [ |
|
12 |
'bower_components/bootstrap-sass/assets/stylesheets/' |
|
13 |
] |
|
14 |
}, |
|
15 |
fingerprint: { |
|
447
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
415
diff
changeset
|
16 |
enabled: false, |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
415
diff
changeset
|
17 |
exclude: [ |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
415
diff
changeset
|
18 |
'images/layers-2x.png', |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
415
diff
changeset
|
19 |
'images/layers.png', |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
415
diff
changeset
|
20 |
'images/marker-icon-2x.png', |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
415
diff
changeset
|
21 |
'images/marker-icon.png', |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
415
diff
changeset
|
22 |
'images/marker-shadow.png' |
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
415
diff
changeset
|
23 |
] |
173 | 24 |
} |
25 |
}); |
|
5
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
26 |
|
173 | 27 |
// Use `app.import` to add additional libraries to the generated |
28 |
// output files. |
|
29 |
// |
|
30 |
// If you need to use different assets in different |
|
31 |
// environments, specify an object as the first parameter. That |
|
32 |
// object's keys should be the environment name and the values |
|
33 |
// should be the asset to use in that environment. |
|
34 |
// |
|
35 |
// If the library that you are including contains AMD or ES6 |
|
36 |
// modules that you would like to import into your application |
|
37 |
// please specify an object with the list of modules as keys |
|
38 |
// 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
|
39 |
app.import('bower_components/popcorn-js/popcorn.js'); |
173 | 40 |
app.import('bower_components/ammap3/ammap/ammap.js'); |
393 | 41 |
app.import('bower_components/chroma-js/chroma.js'); |
309 | 42 |
app.import('vendor/data/maps/worldLow.js'); |
43 |
app.import('vendor/data/maps/continentsLow.js'); |
|
44 |
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
|
45 |
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
|
46 |
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
|
47 |
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
|
48 |
}); |
455
a8bed1c7df8e
move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents:
447
diff
changeset
|
49 |
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
|
50 |
app.import({ |
814468b0fc69
use rangeslider.js polyfill to ensure cross browser compatibility
ymh <ymh.work@gmail.com>
parents:
477
diff
changeset
|
51 |
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
|
52 |
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
|
53 |
}); |
814468b0fc69
use rangeslider.js polyfill to ensure cross browser compatibility
ymh <ymh.work@gmail.com>
parents:
477
diff
changeset
|
54 |
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
|
55 |
|
455
a8bed1c7df8e
move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents:
447
diff
changeset
|
56 |
|
393 | 57 |
//shims |
173 | 58 |
app.import('vendor/shims/ammaps.js', { |
59 |
exports: { |
|
60 |
'ammaps': ['defaults'] |
|
61 |
} |
|
62 |
}); |
|
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
|
63 |
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
|
64 |
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
|
65 |
'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
|
66 |
} |
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 |
}); |
393 | 68 |
app.import('vendor/shims/chroma.js', { |
69 |
exports: { |
|
70 |
'chroma': ['defaults'] |
|
71 |
} |
|
72 |
}); |
|
394
48458e099b05
make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents:
393
diff
changeset
|
73 |
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
|
74 |
exports: { |
48458e099b05
make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents:
393
diff
changeset
|
75 |
'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
|
76 |
} |
48458e099b05
make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents:
393
diff
changeset
|
77 |
}); |
455
a8bed1c7df8e
move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents:
447
diff
changeset
|
78 |
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
|
79 |
exports: { |
a8bed1c7df8e
move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents:
447
diff
changeset
|
80 |
'interval-tree': [ 'default' ] |
a8bed1c7df8e
move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents:
447
diff
changeset
|
81 |
} |
a8bed1c7df8e
move the transcript highlight and autoscroll logic to the base component
ymh <ymh.work@gmail.com>
parents:
447
diff
changeset
|
82 |
}); |
5
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
83 |
|
415 | 84 |
//social-share-kit |
85 |
app.import('bower_components/social-share-kit/dist/js/social-share-kit.js'); |
|
86 |
app.import('bower_components/social-share-kit/dist/css/social-share-kit.css'); |
|
87 |
app.import('bower_components/social-share-kit/dist/fonts/social-share-kit.eot', { destDir: 'fonts'}); |
|
88 |
app.import('bower_components/social-share-kit/dist/fonts/social-share-kit.svg', { destDir: 'fonts'}); |
|
89 |
app.import('bower_components/social-share-kit/dist/fonts/social-share-kit.ttf', { destDir: 'fonts'}); |
|
90 |
app.import('bower_components/social-share-kit/dist/fonts/social-share-kit.woff', { destDir: 'fonts'}); |
|
91 |
app.import('vendor/shims/socialsharekit.js', { |
|
92 |
exports: { |
|
93 |
'socialsharekit': [ 'default' ] |
|
94 |
} |
|
95 |
}); |
|
96 |
||
173 | 97 |
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
|
98 |
}; |