BVB Source Codes

reactide Show index.js Source code

Return Download reactide: download index.js Source code - Download reactide Source code - Type:.js
  1. "use strict";
  2.  
  3. exports.__esModule = true;
  4. exports.config = undefined;
  5. exports.normaliseOptions = normaliseOptions;
  6.  
  7. var _parsers = require("./parsers");
  8.  
  9. var parsers = _interopRequireWildcard(_parsers);
  10.  
  11. var _config = require("./config");
  12.  
  13. var _config2 = _interopRequireDefault(_config);
  14.  
  15. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  16.  
  17. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  18.  
  19. exports.config = _config2.default;
  20. function normaliseOptions() {
  21.   var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
  22.  
  23.   for (var key in options) {
  24.     var val = options[key];
  25.     if (val == null) continue;
  26.  
  27.     var opt = _config2.default[key];
  28.     if (opt && opt.alias) opt = _config2.default[opt.alias];
  29.     if (!opt) continue;
  30.  
  31.     var parser = parsers[opt.type];
  32.     if (parser) val = parser(val);
  33.  
  34.     options[key] = val;
  35.   }
  36.  
  37.   return options;
  38. }
downloadindex.js Source code - Download reactide Source code
Related Source Codes/Software:
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top