UNPKG

jaybe-react-universal-component

Version:

A higher order component for loading components with promises

142 lines (141 loc) 4.47 kB
{ "name": "jaybe-react-universal-component", "version": "1.1.2", "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 <zackary.l.jackson@gmail.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": "^7.1.5", "@babel/core": "^7.1.6", "@babel/node": "^7.0.0", "@babel/plugin-proposal-class-properties": "^7.1.0", "@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/plugin-transform-async-to-generator": "^7.1.0", "@babel/plugin-transform-flow-strip-types": "^7.1.6", "@babel/plugin-transform-object-assign": "^7.0.0", "@babel/preset-env": "^7.1.0", "@babel/preset-flow": "^7.0.0", "@babel/preset-react": "^7.0.0", "@babel/register": "^7.0.0", "babel-core": "^7.0.0-bridge.0", "babel-jest": "^23.6.0", "babel-loader": "^8.0.4", "babel-plugin-dynamic-import-node": "^2.2.0", "babel-plugin-module-resolver": "^3.1.1", "babel-plugin-react-intl": "^3.0.1", "babel-eslint": "^7.2.3", "babel-plugin-universal-import": "^3.0.0", "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": "^23.6.0", "enzyme": "^3.7.0", "enzyme-adapter-react-16": "^1.7.0", "react-dom": "^16.4.1", "enzyme-to-json": "^3.3.4", "lint-staged": "^7.2.0", "prettier": "^1.3.1", "react": "^16.4.1", "react-test-renderer": "^16.4.1", "rimraf": "^2.5.4", "semantic-release": "^6.3.6", "slash": "^1.0.0", "travis-github-status": "^1.6.3" }, "peerDependencies": { "react": "*" }, "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": "^2.2.1", "prop-types": "^15.5.10" }, "jest": { "testURL": "http://localhost/", "verbose": true, "setupFiles": [ "./test/setup.js" ], "globals": { "__webpack_public_path__": "" }, "moduleNameMapper": { "^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js", "^.+\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js" }, "coveragePathIgnorePatterns": [ "<rootDir>/lib/*", "<rootDir>/node_modules/" ], "testPathIgnorePatterns": [ "<rootDir>/lib/*", "<rootDir>/node_modules/" ], "modulePathIgnorePatterns": [ "<rootDir>/lib/*" ], "collectCoverageFrom": [ "src/**/*.js" ] } }