File tree Expand file tree Collapse file tree 2 files changed +17
-36
lines changed Expand file tree Collapse file tree 2 files changed +17
-36
lines changed Original file line number Diff line number Diff line change 1
1
/* jshint node: true */
2
2
/* global require, module */
3
3
4
+ var mergeTrees = require ( 'broccoli-merge-trees' ) ,
5
+ pickFiles = require ( 'broccoli-static-compiler' ) ;
4
6
var EmberAddon = require ( 'ember-cli/lib/broccoli/ember-addon' ) ;
5
7
6
8
var app = new EmberAddon ( ) ;
@@ -18,4 +20,17 @@ var app = new EmberAddon();
18
20
// please specify an object with the list of modules as keys
19
21
// along with the exports of each module as its value.
20
22
21
- module . exports = app . toTree ( ) ;
23
+ app . import ( 'bower_components/bootstrap/dist/css/bootstrap-theme.css.map' ) ;
24
+ app . import ( 'bower_components/bootstrap/dist/css/bootstrap.css' ) ;
25
+ app . import ( 'bower_components/fontawesome/css/font-awesome.min.css' ) ;
26
+ app . import ( 'bower_components/highlightjs/highlight.pack.js' ) ;
27
+ app . import ( 'bower_components/highlightjs/styles/tomorrow.css' ) ;
28
+
29
+ var extraAssets = pickFiles ( 'bower_components/fontawesome/fonts' , {
30
+ srcDir : '/' ,
31
+ files : [ 'fontawesome-webfont.woff' ] ,
32
+ destDir : '/fonts'
33
+ } ) ;
34
+
35
+ module . exports = mergeTrees ( [ app . toTree ( ) , extraAssets ] ) ;
36
+ // module.exports = app.toTree();
Original file line number Diff line number Diff line change 1
1
/* jshint node: true */
2
2
'use strict' ;
3
- var mergeTrees = require ( 'broccoli-merge-trees' ) ,
4
- pickFiles = require ( 'broccoli-static-compiler' ) ;
5
3
6
4
module . exports = {
7
- name : 'ember-idx-tree' ,
8
-
9
- included : function ( app ) {
10
- this . _super . included ( app ) ;
11
- var isDummy = app . name === 'dummy'
12
-
13
- if ( isDummy ) {
14
- app . import ( 'bower_components/bootstrap/dist/css/bootstrap-theme.css.map' ) ;
15
-
16
- app . import ( {
17
- development : 'bower_components/bootstrap/dist/css/bootstrap.css'
18
- } ) ;
19
- app . import ( {
20
- development : 'bower_components/fontawesome/css/font-awesome.min.css'
21
- } ) ;
22
- app . import ( {
23
- development : 'bower_components/highlightjs/highlight.pack.js'
24
- } ) ;
25
- app . import ( {
26
- development : 'bower_components/highlightjs/styles/tomorrow.css'
27
- } ) ;
28
- }
29
- } ,
30
-
31
- postprocessTree : function ( type , tree ) {
32
- return mergeTrees ( [ tree ,
33
- pickFiles ( 'bower_components/fontawesome/fonts' , {
34
- srcDir : '/' ,
35
- files : [ 'fontawesome-webfont.woff' ] ,
36
- destDir : '/fonts'
37
- } )
38
- ] ) ;
39
- } ,
5
+ name : 'ember-idx-tree'
40
6
} ;
You can’t perform that action at this time.
0 commit comments