Added logging, changed some directory structure

This commit is contained in:
2018-01-13 21:33:40 -05:00
parent f079a5f067
commit 8e72ffb917
73656 changed files with 35284 additions and 53718 deletions

View File

@@ -0,0 +1,89 @@
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["jssPropsSort"] = factory();
else
root["jssPropsSort"] = factory();
})(this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports['default'] = jssPropsSort;
/**
* Sort props by length.
*/
function jssPropsSort() {
function sort(prop0, prop1) {
return prop0.length - prop1.length;
}
function onProcessStyle(style, rule) {
if (rule.type !== 'style') return style;
var newStyle = {};
var props = Object.keys(style).sort(sort);
for (var prop in props) {
newStyle[props[prop]] = style[props[prop]];
}
return newStyle;
}
return { onProcessStyle: onProcessStyle };
}
/***/ }
/******/ ])
});
;
//# sourceMappingURL=jss-props-sort.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 5218a99c788b3233028d","webpack:///./src/index.js"],"names":["jssPropsSort","sort","prop0","prop1","length","onProcessStyle","style","rule","type","newStyle","props","Object","keys","prop"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;sBCnCwBA,Y;AAHxB;;;AAGe,UAASA,YAAT,GAAwB;AACrC,YAASC,IAAT,CAAcC,KAAd,EAAqBC,KAArB,EAA4B;AAC1B,YAAOD,MAAME,MAAN,GAAeD,MAAMC,MAA5B;AACD;;AAED,YAASC,cAAT,CAAwBC,KAAxB,EAA+BC,IAA/B,EAAqC;AACnC,SAAIA,KAAKC,IAAL,KAAc,OAAlB,EAA2B,OAAOF,KAAP;;AAE3B,SAAMG,WAAW,EAAjB;AACA,SAAMC,QAAQC,OAAOC,IAAP,CAAYN,KAAZ,EAAmBL,IAAnB,CAAwBA,IAAxB,CAAd;AACA,UAAK,IAAMY,IAAX,IAAmBH,KAAnB,EAA0B;AACxBD,gBAASC,MAAMG,IAAN,CAAT,IAAwBP,MAAMI,MAAMG,IAAN,CAAN,CAAxB;AACD;AACD,YAAOJ,QAAP;AACD;;AAED,UAAO,EAACJ,8BAAD,EAAP;AACD,E","file":"jss-props-sort.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"jssPropsSort\"] = factory();\n\telse\n\t\troot[\"jssPropsSort\"] = factory();\n})(this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 5218a99c788b3233028d","/**\n * Sort props by length.\n */\nexport default function jssPropsSort() {\n function sort(prop0, prop1) {\n return prop0.length - prop1.length\n }\n\n function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style\n\n const newStyle = {}\n const props = Object.keys(style).sort(sort)\n for (const prop in props) {\n newStyle[props[prop]] = style[props[prop]]\n }\n return newStyle\n }\n\n return {onProcessStyle}\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js"],"sourceRoot":""}

View File

@@ -0,0 +1,2 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jssPropsSort=t():e.jssPropsSort=t()}(this,function(){return function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t){"use strict";function o(){function e(e,t){return e.length-t.length}function t(t,o){if("style"!==o.type)return t;var r={},n=Object.keys(t).sort(e);for(var s in n)r[n[s]]=t[n[s]];return r}return{onProcessStyle:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o}])});
//# sourceMappingURL=jss-props-sort.min.js.map

File diff suppressed because one or more lines are too long