forked from ember-learn/ember-cli-addon-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
41 lines (33 loc) · 1013 Bytes
/
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
'use strict';
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
const Project = require('ember-cli/lib/models/project');
const MergeTrees = require('broccoli-merge-trees');
const Funnel = require('broccoli-funnel');
module.exports = function(defaults) {
let project = Project.closestSync(process.cwd());
project.pkg['ember-addon'].paths = ['sandbox'];
defaults.project = project;
var app = new EmberAddon(defaults, {
project,
vendorFiles: { 'jquery.js': null, 'app-shims.js': null },
// Workaround for https://github.com/ember-cli/ember-cli/issues/8075
'ember-cli-uglify': {
uglify: {
compress: {
collapse_vars: false
}
}
},
'ember-cli-addon-docs': {
projects: {
sandbox: new MergeTrees([
new Funnel('sandbox/app', { destDir: 'sandbox' }),
new Funnel('sandbox', {
include: ['package.json', 'README.md']
})
])
}
}
});
return app.toTree();
};