-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathember-cli-build.js
42 lines (36 loc) · 1.01 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
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const BroccoliMergeTrees = require('broccoli-merge-trees');
const StaticSiteJson = require('broccoli-static-site-json');
module.exports = function(defaults) {
let app = new EmberApp(defaults, {
'ember-prism': {
theme: 'okaidia',
components: ['scss', 'javascript', 'handlebars', 'ruby'],
plugins: ['normalize-whitespace'],
},
});
let contentsJson = new StaticSiteJson(`content`, {
contentFolder: `content`,
type: 'contents',
references: ['language'],
collections: [
{
src: `content`,
output: `all.json`,
},
],
});
let languageJson = new StaticSiteJson(`language`, {
contentFolder: `language`,
type: 'languages',
collections: [
{
src: `language`,
output: `all.json`,
},
],
});
app.import('node_modules/github-markdown-css/github-markdown.css');
return new BroccoliMergeTrees([app.toTree(), contentsJson, languageJson]);
};