136
|
1 |
/*jshint node:true*/ |
4
|
2 |
/* global require, module */ |
|
3 |
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); |
20
|
4 |
var pickFiles = require('broccoli-static-compiler'); |
4
|
5 |
|
|
6 |
|
|
7 |
module.exports = function(defaults) { |
|
8 |
|
|
9 |
var app = new EmberApp(defaults, { |
20
|
10 |
outputPaths: { |
|
11 |
vendor: { |
|
12 |
js: '/assets/bo-client-vendor.js', |
|
13 |
css: '/assets/bo-client-vendor.css' |
|
14 |
} |
|
15 |
}, |
|
16 |
fingerprint: { |
|
17 |
enabled: false |
|
18 |
}, |
28
|
19 |
//storeConfigInMeta: false, |
4
|
20 |
// Add options here |
20
|
21 |
emberCliFontAwesome: { |
|
22 |
useScss: true |
|
23 |
}, |
4
|
24 |
sassOptions: { |
|
25 |
includePaths: [ |
|
26 |
'app/styles', |
|
27 |
], |
|
28 |
} |
|
29 |
}); |
|
30 |
|
20
|
31 |
// bootstrap |
|
32 |
app.import('bower_components/bootstrap-sass/assets/javascripts/bootstrap.js'); |
|
33 |
var bootstrapFonts = pickFiles('bower_components/bootstrap-sass/assets/fonts', { |
|
34 |
srcDir: '/', |
|
35 |
destDir: '/fonts' |
|
36 |
}); |
|
37 |
|
28
|
38 |
app.import({ |
|
39 |
development: 'bower_components/urijs/src/URI.js', |
|
40 |
production: 'bower_components/urijs/src/URI.min.js' |
|
41 |
}); |
|
42 |
app.import('vendor/shims/urijs.js', { |
|
43 |
exports: { |
|
44 |
'urijs': [ 'default' ] |
|
45 |
} |
|
46 |
}); |
20
|
47 |
|
|
48 |
// app.import('../src/vendor/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.woff', { |
|
49 |
// destDir: 'fonts' |
|
50 |
// }) |
|
51 |
|
4
|
52 |
// Use `app.import` to add additional libraries to the generated |
|
53 |
// output files. |
|
54 |
// |
|
55 |
// If you need to use different assets in different |
|
56 |
// environments, specify an object as the first parameter. That |
|
57 |
// object's keys should be the environment name and the values |
|
58 |
// should be the asset to use in that environment. |
|
59 |
// |
|
60 |
// If the library that you are including contains AMD or ES6 |
|
61 |
// modules that you would like to import into your application |
|
62 |
// please specify an object with the list of modules as keys |
|
63 |
// along with the exports of each module as its value. |
|
64 |
|
20
|
65 |
return app.toTree(bootstrapFonts); |
4
|
66 |
}; |