ember-cli-build.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. /* global require, module */
  19. var Funnel = require("broccoli-funnel");
  20. var EmberApp = require('ember-cli/lib/broccoli/ember-app');
  21. module.exports = function(defaults) {
  22. var app = new EmberApp(defaults, {
  23. hinting: false
  24. });
  25. app.import("bower_components/datatables/media/css/jquery.dataTables.min.css");
  26. app.import("bower_components/datatables/media/js/jquery.dataTables.min.js");
  27. app.import("bower_components/momentjs/min/moment.min.js");
  28. app.import("bower_components/select2/dist/css/select2.min.css");
  29. app.import("bower_components/select2/dist/js/select2.min.js");
  30. app.import('bower_components/jquery-ui/jquery-ui.js');
  31. app.import('bower_components/more-js/dist/more.js');
  32. app.import('bower_components/bootstrap/dist/css/bootstrap.css');
  33. app.import('bower_components/bootstrap/dist/css/bootstrap-theme.css');
  34. app.import('bower_components/bootstrap/dist/js/bootstrap.min.js');
  35. // Use `app.import` to add additional libraries to the generated
  36. // output files.
  37. //
  38. // If you need to use different assets in different
  39. // environments, specify an object as the first parameter. That
  40. // object's keys should be the environment name and the values
  41. // should be the asset to use in that environment.
  42. //
  43. // If the library that you are including contains AMD or ES6
  44. // modules that you would like to import into your application
  45. // please specify an object with the list of modules as keys
  46. // along with the exports of each module as its value.
  47. var extraAssets = new Funnel('config', {
  48. srcDir: '/',
  49. include: ['*.env'],
  50. destDir: '/config'
  51. });
  52. return app.toTree(extraAssets);
  53. };