File tree Expand file tree Collapse file tree 3 files changed +24
-38
lines changed Expand file tree Collapse file tree 3 files changed +24
-38
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
} ;
Original file line number Diff line number Diff line change 15
15
"node" : " >= 0.10.0"
16
16
},
17
17
"license" : " ASF2" ,
18
+ "dependencies" : {
19
+ "ember-idx-utils" : " ^0.2.0"
20
+ },
18
21
"devDependencies" : {
19
22
"broccoli-asset-rev" : " ^1.0.0" ,
20
23
"broccoli-ember-hbs-template-compiler" : " ^1.6.1" ,
29
32
"ember-cli-qunit" : " 0.1.2" ,
30
33
"ember-data" : " 1.0.0-beta.12" ,
31
34
"ember-export-application-global" : " ^1.0.0" ,
32
- "ember-idx-utils" : " ^0.2.0" ,
33
35
"express" : " ^4.8.5" ,
34
36
"glob" : " ^4.0.5"
35
37
},
42
44
],
43
45
"ember-addon" : {
44
46
"configPath" : " tests/dummy/config"
45
- }
47
+ },
48
+ "readmeFilename" : " README.md" ,
49
+ "_id" : " ember-idx-tree@0.1.0" ,
50
+ "_from" : " ember-idx-tree@*"
46
51
}
You can’t perform that action at this time.
0 commit comments