Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

environments.js 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /**
  2. * @fileoverview Defines environment settings and globals.
  3. * @author Elan Shanker
  4. */
  5. "use strict";
  6. //------------------------------------------------------------------------------
  7. // Requirements
  8. //------------------------------------------------------------------------------
  9. const globals = require("globals");
  10. //------------------------------------------------------------------------------
  11. // Public Interface
  12. //------------------------------------------------------------------------------
  13. module.exports = {
  14. builtin: {
  15. globals: globals.es5
  16. },
  17. browser: {
  18. globals: globals.browser
  19. },
  20. node: {
  21. globals: globals.node,
  22. parserOptions: {
  23. ecmaFeatures: {
  24. globalReturn: true
  25. }
  26. }
  27. },
  28. commonjs: {
  29. globals: globals.commonjs,
  30. parserOptions: {
  31. ecmaFeatures: {
  32. globalReturn: true
  33. }
  34. }
  35. },
  36. "shared-node-browser": {
  37. globals: globals["shared-node-browser"]
  38. },
  39. worker: {
  40. globals: globals.worker
  41. },
  42. amd: {
  43. globals: globals.amd
  44. },
  45. mocha: {
  46. globals: globals.mocha
  47. },
  48. jasmine: {
  49. globals: globals.jasmine
  50. },
  51. jest: {
  52. globals: globals.jest
  53. },
  54. phantomjs: {
  55. globals: globals.phantomjs
  56. },
  57. jquery: {
  58. globals: globals.jquery
  59. },
  60. qunit: {
  61. globals: globals.qunit
  62. },
  63. prototypejs: {
  64. globals: globals.prototypejs
  65. },
  66. shelljs: {
  67. globals: globals.shelljs
  68. },
  69. meteor: {
  70. globals: globals.meteor
  71. },
  72. mongo: {
  73. globals: globals.mongo
  74. },
  75. protractor: {
  76. globals: globals.protractor
  77. },
  78. applescript: {
  79. globals: globals.applescript
  80. },
  81. nashorn: {
  82. globals: globals.nashorn
  83. },
  84. serviceworker: {
  85. globals: globals.serviceworker
  86. },
  87. atomtest: {
  88. globals: globals.atomtest
  89. },
  90. embertest: {
  91. globals: globals.embertest
  92. },
  93. webextensions: {
  94. globals: globals.webextensions
  95. },
  96. es6: {
  97. globals: globals.es2015,
  98. parserOptions: {
  99. ecmaVersion: 6
  100. }
  101. },
  102. greasemonkey: {
  103. globals: globals.greasemonkey
  104. }
  105. };