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