@@ -19,18 +19,8 @@ module.exports = {
1919
2020 prunedComponentFunnel : undefined ,
2121
22- runningForTopLevelApp : false ,
23-
2422 fontDirectory : undefined ,
2523
26- init ( parent , project ) {
27- this . _super . init && this . _super . init . apply ( this , arguments ) ;
28-
29- if ( parent === project ) {
30- this . runningForTopLevelApp = true ;
31- }
32- } ,
33-
3424 included ( ) {
3525 this . _super . included . apply ( this , arguments ) ;
3626
@@ -40,24 +30,22 @@ module.exports = {
4030 /** @type AddonConfig */
4131 const addonConfig = options [ 'ember-ui-foundation' ] || { } ;
4232
43- if ( this . runningForTopLevelApp ) {
44- if ( addonConfig . fontAwesome !== false ) {
45- const destDir = ( this . fontDirectory = addonConfig . fontDirectory || 'fonts' ) ;
33+ if ( addonConfig . fontAwesome !== false ) {
34+ const destDir = ( this . fontDirectory = addonConfig . fontDirectory || 'fonts' ) ;
4635
47- this . import ( 'node_modules/font-awesome/css/font-awesome.css' ) ;
48- this . import ( 'node_modules/font-awesome/fonts/fontawesome-webfont.eot' , { destDir } ) ;
49- this . import ( 'node_modules/font-awesome/fonts/fontawesome-webfont.svg' , { destDir } ) ;
50- this . import ( 'node_modules/font-awesome/fonts/fontawesome-webfont.ttf' , { destDir } ) ;
51- this . import ( 'node_modules/font-awesome/fonts/fontawesome-webfont.woff' , { destDir } ) ;
52- this . import ( 'node_modules/font-awesome/fonts/fontawesome-webfont.woff2' , { destDir } ) ;
53- }
36+ this . import ( 'node_modules/font-awesome/css/font-awesome.css' ) ;
37+ this . import ( 'node_modules/font-awesome/fonts/fontawesome-webfont.eot' , { destDir } ) ;
38+ this . import ( 'node_modules/font-awesome/fonts/fontawesome-webfont.svg' , { destDir } ) ;
39+ this . import ( 'node_modules/font-awesome/fonts/fontawesome-webfont.ttf' , { destDir } ) ;
40+ this . import ( 'node_modules/font-awesome/fonts/fontawesome-webfont.woff' , { destDir } ) ;
41+ this . import ( 'node_modules/font-awesome/fonts/fontawesome-webfont.woff2' , { destDir } ) ;
42+ }
5443
55- if ( Array . isArray ( addonConfig . include ) && addonConfig . include . length ) {
56- const inclusionMap = buildInclusionMap ( addonConfig . include ) ;
57- this . prunedComponentFunnel = buildFunnelConfig ( inclusionMap ) ;
44+ if ( Array . isArray ( addonConfig . include ) && addonConfig . include . length ) {
45+ const inclusionMap = buildInclusionMap ( addonConfig . include ) ;
46+ this . prunedComponentFunnel = buildFunnelConfig ( inclusionMap ) ;
5847
59- console . log ( describeInclusionMap ( addonConfig . include , inclusionMap ) ) ;
60- }
48+ console . log ( describeInclusionMap ( addonConfig . include , inclusionMap ) ) ;
6149 }
6250 } ,
6351
0 commit comments