├── .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 |