PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/app/templates/karma.conf.js

https://gitlab.com/javajamesb08/generator-angular-fullstack
JavaScript | 81 lines | 31 code | 4 blank | 46 comment | 3 complexity | a321b9d4445d9eebc5e5312577d586ae MD5 | raw file
  1. // Karma configuration
  2. // http://karma-runner.github.io/0.10/config/configuration-file.html
  3. module.exports = function(config) {
  4. config.set({
  5. // base path, that will be used to resolve files and exclude
  6. basePath: '',
  7. // testing framework to use (jasmine/mocha/qunit/...)
  8. frameworks: ['jasmine'],
  9. // list of files / patterns to load in the browser
  10. files: [
  11. 'client/bower_components/jquery/dist/jquery.js',
  12. 'client/bower_components/angular/angular.js',
  13. 'client/bower_components/angular-mocks/angular-mocks.js',
  14. 'client/bower_components/angular-resource/angular-resource.js',
  15. 'client/bower_components/angular-cookies/angular-cookies.js',
  16. 'client/bower_components/angular-sanitize/angular-sanitize.js',
  17. 'client/bower_components/angular-route/angular-route.js',<% if(filters.uibootstrap) { %>
  18. 'client/bower_components/angular-bootstrap/ui-bootstrap-tpls.js',<% } %>
  19. 'client/bower_components/lodash/dist/lodash.compat.js',<% if(filters.socketio) { %>
  20. 'client/bower_components/angular-socket-io/socket.js',<% } %><% if(filters.uirouter) { %>
  21. 'client/bower_components/angular-ui-router/release/angular-ui-router.js',<% } %>
  22. 'client/app/app.js',
  23. 'client/app/app.coffee',
  24. 'client/app/**/*.js',
  25. 'client/app/**/*.coffee',
  26. 'client/components/**/*.js',
  27. 'client/components/**/*.coffee',
  28. 'client/app/**/*.jade',
  29. 'client/components/**/*.jade',
  30. 'client/app/**/*.html',
  31. 'client/components/**/*.html'
  32. ],
  33. preprocessors: {
  34. '**/*.jade': 'ng-jade2js',
  35. '**/*.html': 'html2js',
  36. '**/*.coffee': 'coffee',
  37. },
  38. ngHtml2JsPreprocessor: {
  39. stripPrefix: 'client/'
  40. },
  41. ngJade2JsPreprocessor: {
  42. stripPrefix: 'client/'
  43. },
  44. // list of files / patterns to exclude
  45. exclude: [],
  46. // web server port
  47. port: 8080,
  48. // level of logging
  49. // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
  50. logLevel: config.LOG_INFO,
  51. // enable / disable watching file and executing tests whenever any file changes
  52. autoWatch: false,
  53. // Start these browsers, currently available:
  54. // - Chrome
  55. // - ChromeCanary
  56. // - Firefox
  57. // - Opera
  58. // - Safari (only Mac)
  59. // - PhantomJS
  60. // - IE (only Windows)
  61. browsers: ['PhantomJS'],
  62. // Continuous Integration mode
  63. // if true, it capture browsers, run tests and exit
  64. singleRun: false
  65. });
  66. };