forked from cid-harvard/atlas-subnational-frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBrocfile.js
110 lines (91 loc) · 4.15 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
109
110
/* 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'],
path: {
colombia_june_2015: '.env.colombia_june_2015',
atlas_colombia_master: '.env.atlas_colombia_master'
}
},
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');
// D3 "Plus"
app.import('bower_components/d3plus/d3plus.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/icons-000000@2x.png', { destDir: 'assets/img/geo' });
// Admin boundaries for geomap
app.import('vendor/geodata/colombia_osm_adm4.geojson', { destDir: 'assets/geodata' });
// 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' });
// Platform
app.import('vendor/fonts/platform/Platform-Bold-Web.eot', { destDir: 'fonts' });
app.import('vendor/fonts/platform/Platform-Bold-Web.ttf', { destDir: 'fonts' });
app.import('vendor/fonts/platform/Platform-Bold-Web.woff', { destDir: 'fonts' });
// Circular
app.import('vendor/fonts/circular/circular-light.woff2', { destDir: 'fonts' });
app.import('vendor/fonts/circular/circular-light.woff', { destDir: 'fonts' });
app.import('vendor/fonts/circular/circular-book.woff2', { destDir: 'fonts' });
app.import('vendor/fonts/circular/circular-book.woff', { destDir: 'fonts' });
app.import('vendor/fonts/circular/circular-medium.woff2', { destDir: 'fonts' });
app.import('vendor/fonts/circular/circular-medium.woff', { destDir: 'fonts' });
app.import('vendor/fonts/circular/circular-bold.woff2', { destDir: 'fonts' });
app.import('vendor/fonts/circular/circular-bold.woff', { destDir: 'fonts' });
// Platin
app.import('vendor/fonts/plantin/PlantinMTStd-Italic.woff2', { destDir: 'fonts' });
app.import('vendor/fonts/plantin/PlantinMTStd-Light.woff2', { destDir: 'fonts' });
app.import('vendor/fonts/plantin/PlantinMTStd-Regular.woff2', { destDir: 'fonts' });
app.import('vendor/fonts/plantin/PlantinMTStd-Semibold.woff2', { 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();