forked from mainmatter/ember-simple-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
40 lines (32 loc) · 909 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
'use strict';
/* eslint-env node */
/* 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,
});
app.import('bower_components/bootstrap/dist/css/bootstrap.css');
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);
};