-
Notifications
You must be signed in to change notification settings - Fork 38
/
ember-cli-build.js
48 lines (43 loc) · 1.93 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
/* 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, {
'ember-bootstrap': {
bootstrapVersion: 3,
importBootstrapFont: true,
importBootstrapCSS: false
},
sassOptions: {
includePaths: [
'node_modules/bootstrap-sass/assets/stylesheets',
'node_modules/osf-style/sass',
'node_modules/bootstrap-daterangepicker',
'tests/dummy/app/components',
]
},
// 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
},
});
app.import(path.join('node_modules', 'dropzone/dist/basic.css'));
app.import(path.join('node_modules', 'dropzone/dist/dropzone.css'));
app.import(path.join('node_modules', 'dropzone/dist/dropzone.js'));
app.import(path.join('node_modules', 'bootstrap-daterangepicker/daterangepicker.js'));
app.import(path.join('node_modules', 'lodash/index.js'));
app.import(path.join('node_modules', 'jquery-tags-input/src/jquery.tagsinput.js'));
app.import(path.join('node_modules', 'osf-style/css/base.css'));
app.import(path.join('node_modules', 'ember-source/dist/ember-template-compiler.js'));
app.import(path.join('node_modules', 'jquery-mockjax/dist/jquery.mockjax.js'));
return app.toTree();
};