forked from mainmatter/ember-simple-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
49 lines (42 loc) · 1.07 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
'use strict';
/* eslint-disable no-var, object-shorthand */
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
var Yuidoc = require('broccoli-yuidoc');
var version = require('git-repo-version')();
var sourceTrees = [];
module.exports = function(defaults) {
var app = new EmberAddon(defaults, {
storeConfigInMeta: true,
'ember-bootstrap': {
bootstrapVersion: 3,
importBootstrapFont: false,
importBootstrapCSS: true
},
fingerprint: {
generateAssetMap: EmberAddon.env() === 'production'
},
sourcemaps: {
enabled: true,
extensions: ['js']
}
});
var yuidocTree = new Yuidoc(['addon', 'app'], {
destDir: 'docs',
yuidoc: {
project: {
name: 'The Ember Simple Auth API',
version: version
},
linkNatives: false,
quiet: true,
parseOnly: false,
lint: false,
themedir: 'docs/theme',
helpers: ['docs/theme/helpers/helpers.js']
}
});
if (app.env === 'production') {
sourceTrees.push(yuidocTree);
}
return app.toTree(sourceTrees);
};