forked from CenterForOpenScience/ember-osf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
52 lines (46 loc) · 1.98 KB
/
ember-cli-build.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
/* eslint-env node */
var path = require('path');
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
var app = new EmberAddon(defaults, {
sassOptions: {
includePaths: [
'tests/dummy/app/components',
'bower_components/c3',
'bower_components/bootstrap-daterangepicker',
]
},
// FIXME
// FIXME Will this affect downstream consumers (when they build their apps)?
// FIXME
// This is really for building the application. It's a hack so we can use the dummy app inside the OSF to test development.
// It's for production builds, and we may want to comment it out when needed. Usage:
// ember build --output-path ../osf.io/website/static/ember/ --environment=production --watch
//////// Uncomment the lines below to test!
// fingerprint: {
// prepend: 'static/ember/'
// },
'ember-cli-babel': {
includePolyfill: true
},
'ember-bootstrap': {
bootstrapVersion: 3,
importBootstrapFont: true,
importBootstrapCSS: false
}
});
app.import(path.join(app.bowerDirectory, 'dropzone/dist/basic.css'));
app.import(path.join(app.bowerDirectory, 'dropzone/dist/dropzone.css'));
app.import(path.join(app.bowerDirectory, 'dropzone/dist/dropzone.js'));
app.import(path.join(app.bowerDirectory, 'bootstrap-daterangepicker/daterangepicker.js'));
app.import(path.join(app.bowerDirectory, 'lodash/lodash.js'));
app.import(path.join(app.bowerDirectory, 'jquery.tagsinput/src/jquery.tagsinput.js'));
app.import(path.join(app.bowerDirectory, 'c3/c3.js'));
app.import(path.join(app.bowerDirectory, 'd3/d3.js'));
app.import(path.join(app.bowerDirectory, 'osf-style/css/base.css'));
app.import('vendor/assets/ember-osf.css');
app.import({
test: path.join(app.bowerDirectory, 'ember/ember-template-compiler.js')
});
return app.toTree();
};