├── .nyc_output ├── 38eab3f97b0db93dddcb5758db8e2f08.json ├── 3edf4eb24a4175f98dddd8b265a28a85.json └── 46c29962757ad7ea6e79926ffa3c8395.json ├── spec ├── .eslintrc ├── helpers.js ├── index.html ├── utils.spec.js ├── mocha.css └── index.spec.js ├── .gitignore ├── .babelrc ├── .eslintignore ├── .eslintrc ├── index.js ├── .editorconfig ├── README.md ├── vendor ├── react-dom-15.3.2.min.js ├── react-dom-15.3.2.js ├── react-16.1.0.min.js ├── react-16.1.1.min.js ├── react-16.2.0.min.js ├── react-16.0.0.min.js ├── react-15.5.0.min.js ├── react-15.5.1.min.js ├── react-15.5.2.min.js ├── react-15.5.3.min.js ├── react-15.4.2.min.js └── react-15.5.4.min.js ├── .stylelintrc ├── src ├── index.mustache.js ├── index.js ├── utils.js ├── index.scss └── index.pug ├── .jscsrc ├── public └── 1.0.0 │ ├── index.min.css │ └── index.min.js ├── package.json └── data.json /.nyc_output/38eab3f97b0db93dddcb5758db8e2f08.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /.nyc_output/3edf4eb24a4175f98dddd8b265a28a85.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /spec/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ "leankit/test" ] 3 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | node_modules/ 3 | data.json 4 | .nyc_output/ 5 | coverage/ 6 | .eslintcache -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ "es2015", "stage-0" ], 3 | "sourceMaps": "inline", 4 | "compact" : true 5 | } 6 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | node_modules/ 3 | data.json 4 | .nyc_output/ 5 | public/ 6 | spec/mocha.js 7 | src/index.mustache.js 8 | coverage/ 9 | -------------------------------------------------------------------------------- /spec/helpers.js: -------------------------------------------------------------------------------- 1 | import { isObject } from "lodash"; 2 | 3 | export function isPromise( promise ) { 4 | return isObject( promise ) && 5 | promise.then instanceof Function && 6 | promise.catch instanceof Function; 7 | } 8 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", 3 | "extends": [ "leankit", "leankit/es6" ], 4 | "rules": { 5 | "complexity": [ 1, 5 ], 6 | "no-negated-condition": 1, 7 | "no-param-reassign": [ 0, { "props": false } ] 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node --harmony 2 | const path = require( "path" ); 3 | const dir = path.basename( __dirname ); 4 | 5 | require( "babel-register" )( { 6 | ignore: false, 7 | only: new RegExp( path.join( dir, "src" ) ) 8 | } ); 9 | require( "./src/index.js" ); 10 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # This file is for unifying the coding style for different editors and IDEs 2 | # editorconfig.org 3 | 4 | root = true 5 | 6 | [*] 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = false 10 | insert_final_newline = true 11 | 12 | # Tabs unless otherwise specified 13 | [**.{js,jsx,json,html,css,less}] 14 | indent_style = tab 15 | indent_size = 4 16 | 17 | [package.json] 18 | indent_style = space 19 | indent_size = 2 20 | -------------------------------------------------------------------------------- /spec/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Mocha 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-file-size 2 | 3 | Pulls down multiple versions of react from cdnjs, gathers statistics about the files, and generates a webpage to display the information. 4 | 5 | http://elijahmanor.com/react-file-size 6 | 7 | ## npm scripts 8 | 9 | | Script | Description | 10 | | -------- | ----------- | 11 | | start | Pulls down react versions from cdnjs and gathers statistics | 12 | | lint | Runs ESLint and JSCS against the JavaScript | 13 | | build | Compiles the Jade, Mustache, and Sass then uglifies | 14 | | uglify | Minifies the JavaScript and CSS | 15 | | gh-pages | Pushes to gh-pages | 16 | -------------------------------------------------------------------------------- /vendor/react-dom-15.3.2.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ReactDOM v15.3.2 3 | * 4 | * Copyright 2013-present, Facebook, Inc. 5 | * All rights reserved. 6 | * 7 | * This source code is licensed under the BSD-style license found in the 8 | * LICENSE file in the root directory of this source tree. An additional grant 9 | * of patent rights can be found in the PATENTS file in the same directory. 10 | * 11 | */ 12 | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e(require("react"));else if("function"==typeof define&&define.amd)define(["react"],e);else{var f;f="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,f.ReactDOM=e(f.React)}}(function(e){return e.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}); -------------------------------------------------------------------------------- /vendor/react-dom-15.3.2.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ReactDOM v15.3.2 3 | * 4 | * Copyright 2013-present, Facebook, Inc. 5 | * All rights reserved. 6 | * 7 | * This source code is licensed under the BSD-style license found in the 8 | * LICENSE file in the root directory of this source tree. An additional grant 9 | * of patent rights can be found in the PATENTS file in the same directory. 10 | * 11 | */ 12 | // Based off https://github.com/ForbesLindesay/umd/blob/master/template.js 13 | ;(function(f) { 14 | // CommonJS 15 | if (typeof exports === "object" && typeof module !== "undefined") { 16 | module.exports = f(require('react')); 17 | 18 | // RequireJS 19 | } else if (typeof define === "function" && define.amd) { 20 | define(['react'], f); 21 | 22 | //