UNPKG

react-universal-component

Version:

A higher order component for loading components with promises

100 lines (99 loc) 3.18 kB
{ "name": "react-universal-component", "version": "4.5.0", "description": "A higher order component for loading components with promises", "main": "dist/index.js", "typings": "index.d.ts", "author": "James FaceySpacey Gillmore <james@faceyspacey.com> (http://www.faceyspacey.com)", "contributors": [ "Zack Jackson <zack@ScriptedAlchemy.com> (https://github.com/ScriptedAlchemy)" ], "license": "MIT", "bugs": { "url": "https://github.com/faceyspacey/react-universal-component/issues" }, "homepage": "https://github.com/faceyspacey/react-universal-component#readme", "keywords": [ "universal", "ruc", "unviersal react", "ssr", "code splitting", "aggressive code splitting", "lodable", "react", "async component", "universal react", "async rendering", "webpack 4" ], "scripts": { "build": "babel src -d dist", "flow-copy": "flow-copy-source src dist -i 'requireById/index.js'", "flow-watch": "clear; printf \"\\033[3J\" & npm run flow & fswatch -o ./ | xargs -n1 -I{} sh -c 'clear; printf \"\\033[3J\" && npm run flow'", "flow": "flow; test $? -eq 0 -o $? -eq 2", "clean": "rimraf dist && mkdir dist", "test": "jest", "lint": "eslint --fix ./", "format": "prettier --single-quote --parser=flow --semi=false --write '{src,__tests__,__fixtures__}/**/*.js' && npm run lint", "precommit": "lint-staged && npm test", "cm": "git-cz", "semantic-release": "semantic-release pre && npm publish && semantic-release post", "prepublish": "npm run clean && npm run build && npm run flow-copy" }, "devDependencies": { "babel-cli": "^6.26.0", "babel-core": "^6.26.3", "babel-eslint": "^7.2.3", "babel-plugin-transform-flow-strip-types": "^6.22.0", "babel-plugin-universal-import": "^4.0.0", "babel-preset-es2015": "^6.24.1", "babel-preset-flow": "^6.23.0", "babel-preset-react": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "commitizen": "^2.9.6", "cz-conventional-changelog": "^2.0.0", "eslint": "^3.19.0", "eslint-config-airbnb": "^15.0.1", "eslint-plugin-flowtype": "^2.32.1", "eslint-plugin-import": "^2.2.0", "eslint-plugin-jsx-a11y": "^5.0.3", "eslint-plugin-react": "^7.0.1", "flow-bin": "^0.49.1", "flow-copy-source": "^1.1.0", "husky": "^0.14.3", "jest": "^20.0.4", "lint-staged": "^7.2.0", "prettier": "^1.3.1", "react": "^16.4.2", "react-hot-loader": "^4.3.6", "react-test-renderer": "^17.0.1", "rimraf": "^2.6.3", "semantic-release": "^6.3.6", "slash": "^1.0.0", "travis-github-status": "^1.6.3" }, "peerDependencies": { "react": "^16.3.0 || ^17.0.0" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "lint-staged": { "*.js": [ "prettier --single-quote --parser=flow --semi=false --write", "eslint --fix", "git add" ] }, "repository": { "type": "git", "url": "https://github.com/faceyspacey/react-universal-component.git" }, "dependencies": { "hoist-non-react-statics": "^3.3.0", "prop-types": "^15.7.2" } }