-
Notifications
You must be signed in to change notification settings - Fork 17
/
Brocfile.js
108 lines (89 loc) · 3.72 KB
/
Brocfile.js
1
2
3
4
5
6
7
8
9
10
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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
106
107
108
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var HtmlbarsCompiler = require('ember-cli-htmlbars');
var templateTree = new HtmlbarsCompiler('app/templates', {
isHTMLBars: true,
templateCompiler: require('./bower_components/ember/ember-template-compiler')
});
var app = new EmberApp({
dotEnv: {
clientAllowedKeys: [
'GA',
'OTHER_LOCALE',
'DEFAULT_LOCALE',
'API_URL',
'DOWNLOAD_URL',
'MAP_URL'
],
path: {
colombia: '.env.colombia',
mexico: '.env.mexico',
peru: '.env.peru'
}
},
minifyCSS: {
enabled: false
},
emberCliFontAwesome: {
includeFontAwesomeAssets: false
},
sourcemaps: {
enabled: false,
extensions: ['js']
},
fingerprint: {
exclude: ['hero_images'],
generateAssetMap: true
}
});
// FileSaver
app.import('bower_components/FileSaver.js/FileSaver.min.js');
// PapaParse
app.import('bower_components/papaparse/papaparse.min.js');
// D3
app.import('bower_components/d3/d3.min.js');
// VizToolkit
app.import('bower_components/vis-toolkit/build/vistk.js');
// Lodash
app.import('bower_components/lodash/lodash.min.js');
// Geomap
app.import('bower_components/d3-plugins/geo/tile/tile.js');
app.import('bower_components/mapbox.js/mapbox.js');
app.import('bower_components/mapbox.js/mapbox.css');
app.import('bower_components/mapbox.js/images/[email protected]', { destDir: 'assets/img/geo' });
// Admin boundaries for geomap
app.import('vendor/geodata/col.topojson', { destDir: 'assets/geodata' });
app.import('vendor/geodata/mex.topojson', { destDir: 'assets/geodata' });
app.import('vendor/geodata/peru.topojson', { destDir: 'assets/geodata' });
app.import('vendor/networks/product_space.json', { destDir: 'assets/networks' });
app.import('vendor/networks/col-industry_space.json', { destDir: 'assets/networks' });
app.import('vendor/networks/mex-industry_space.json', { destDir: 'assets/networks' });
app.import('vendor/color_mappings/product_section_colors.json', { destDir: 'assets/color_mappings' });
app.import('vendor/color_mappings/col-industry_section_colors.json', { destDir: 'assets/color_mappings' });
app.import('vendor/color_mappings/mex-industry_section_colors.json', { destDir: 'assets/color_mappings' });
//Import leaflet-omnivore
app.import('vendor/leaflet-omnivore.min.js');
// Font Awesome
// The npm package readme mentions refactoring this as a Broccoli tree, so consider that a TODO
app.import('bower_components/font-awesome/fonts/fontawesome-webfont.eot', { destDir: 'fonts' });
app.import('bower_components/font-awesome/fonts/fontawesome-webfont.svg', { destDir: 'fonts' });
app.import('bower_components/font-awesome/fonts/fontawesome-webfont.ttf', { destDir: 'fonts' });
app.import('bower_components/font-awesome/fonts/fontawesome-webfont.woff', { destDir: 'fonts' });
app.import('bower_components/font-awesome/fonts/fontawesome-webfont.woff2', { destDir: 'fonts' });
app.import('bower_components/font-awesome/fonts/FontAwesome.otf', { destDir: 'fonts' });
// CIDcons
app.import('bower_components/cidcons/css/cidcons-codes.css');
app.import('bower_components/cidcons/font/cidcons.woff', { destDir: 'fonts' });
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
module.exports = app.toTree();