server/bo_client/ember-cli-build.js
changeset 20 a9b98b16b053
parent 4 f55970e41793
child 28 b0b56e0f8c7f
equal deleted inserted replaced
19:eadaf0b8f02e 20:a9b98b16b053
     1 /* global require, module */
     1 /* global require, module */
     2 var EmberApp = require('ember-cli/lib/broccoli/ember-app');
     2 var EmberApp = require('ember-cli/lib/broccoli/ember-app');
       
     3 var pickFiles = require('broccoli-static-compiler');
     3 
     4 
     4 
     5 
     5 module.exports = function(defaults) {
     6 module.exports = function(defaults) {
     6 
     7 
     7   var app = new EmberApp(defaults, {
     8   var app = new EmberApp(defaults, {
       
     9     outputPaths: {
       
    10       vendor: {
       
    11         js: '/assets/bo-client-vendor.js',
       
    12         css: '/assets/bo-client-vendor.css'
       
    13       }
       
    14     },
       
    15     fingerprint: {
       
    16       enabled: false
       
    17     },
       
    18     storeConfigInMeta: false,
     8     // Add options here
    19     // Add options here
       
    20     emberCliFontAwesome: {
       
    21       useScss: true
       
    22     },
     9     sassOptions: {
    23     sassOptions: {
    10       includePaths: [
    24       includePaths: [
    11         'app/styles',
    25         'app/styles',
    12         '../src/resources/assets/sass',
       
    13         '../src/vendor/bower_components/bootstrap-sass/assets/stylesheets'
       
    14       ],
    26       ],
    15     }
    27     }
    16   });
    28   });
       
    29 
       
    30   // bootstrap
       
    31   app.import('bower_components/bootstrap-sass/assets/javascripts/bootstrap.js');
       
    32   var bootstrapFonts = pickFiles('bower_components/bootstrap-sass/assets/fonts', {
       
    33     srcDir: '/',
       
    34     destDir: '/fonts'
       
    35   });
       
    36 
       
    37 
       
    38   // app.import('../src/vendor/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.woff', {
       
    39   //   destDir: 'fonts'
       
    40   // })
    17 
    41 
    18   // Use `app.import` to add additional libraries to the generated
    42   // Use `app.import` to add additional libraries to the generated
    19   // output files.
    43   // output files.
    20   //
    44   //
    21   // If you need to use different assets in different
    45   // If you need to use different assets in different
    26   // If the library that you are including contains AMD or ES6
    50   // If the library that you are including contains AMD or ES6
    27   // modules that you would like to import into your application
    51   // modules that you would like to import into your application
    28   // please specify an object with the list of modules as keys
    52   // please specify an object with the list of modules as keys
    29   // along with the exports of each module as its value.
    53   // along with the exports of each module as its value.
    30 
    54 
    31   return app.toTree();
    55   return app.toTree(bootstrapFonts);
    32 };
    56 };