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