react-async-call
Version:
Declarative promise handling in React
179 lines (178 loc) • 4.91 kB
JSON
{
"name": "react-async-call",
"version": "0.5.1",
"description": "Declarative promise handling in React",
"main": "index.js",
"unpkg": "umd/react-async-call.production.min.js",
"author": "Ilya Kuznetsov <kuzn.ilya@gmail.com>",
"repository": "https://github.com/kuzn-ilya/react-async-call.git",
"license": "MIT",
"typings": "index.d.ts",
"files": [
"README.md",
"index.js",
"index.d.ts",
"cjs/",
"umd/"
],
"keywords": [
"react",
"reactjs",
"render",
"props",
"promise",
"fetch"
],
"bugs": {
"url": "https://github.com/kuzn-ilya/react-async-call/issues"
},
"homepage": "https://github.com/kuzn-ilya/react-async-call#readme",
"scripts": {
"clean": "rimraf build",
"build": "npm run eslint && npm run test && npm run docs && npm run rollup",
"docs": "jsdoc2md --name-format --separators --helper ./docs/helpers/isTypeDefinition.js --partial ./docs/partials/scope.hbs ./docs/partials/body.hbs ./docs/partials/params.hbs --template ./docs/templates/README.hbs --heading-depth 3 ./src/*.js > ./README.md",
"eslint": "eslint ./",
"test": "cross-env NODE_ENV=development jest src --coverage",
"format": "prettier --write **/*.{js,jsx,json,d.ts} !build/** !.vscode/**",
"release": "npm run test && npm run build && npm version patch && npm publish && git push --tags",
"rollup": "node ./scripts/build.js"
},
"pre-commit": [
"test"
],
"dependencies": {
"create-react-context": "0.2.3",
"fbjs": "0.8.0",
"react-lifecycles-compat": "3.0.4"
},
"peerDependencies": {
"react": "^16.0.0",
"prop-types": "^15.6.2"
},
"devDependencies": {
"@semantic-release/changelog": "3.0.0",
"@semantic-release/git": "7.0.4",
"babel-cli": "6.26.0",
"babel-code-frame": "6.26.0",
"babel-core": "6.26.3",
"babel-eslint": "10.0.1",
"babel-jest": "23.6.0",
"babel-plugin-external-helpers": "6.22.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "6.23.0",
"babel-preset-env": "1.7.0",
"babel-preset-react": "6.24.1",
"chalk": "2.4.1",
"cli-table": "0.3.1",
"codecov": "3.1.0",
"cross-env": "5.2.0",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "4.19.0",
"eslint-config-react-app": "3.0.3",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-react": "7.7.0",
"gzip-size": "5.0.0",
"jest": "23.6.0",
"jest-enzyme": "6.0.1",
"jsdoc-to-markdown": "4.0.1",
"mkdirp": "0.5.1",
"ncp": "2.0.0",
"pre-commit": "^1.2.2",
"prettier": "^1.11.1",
"react": "^16.5.2",
"react-dom": "^16.5.2",
"rimraf": "^2.6.2",
"rollup": "0.66.5",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-commonjs": "9.1.8",
"rollup-plugin-node-resolve": "3.4.0",
"rollup-plugin-replace": "2.1.0",
"rollup-plugin-uglify": "6.0.0",
"semantic-release": "15.9.16",
"uglify-js": "^3.4.9"
},
"jest": {
"coverageDirectory": "../coverage/",
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"/node_modules/",
"./__tests__/setup.js",
"./__tests__/common.js"
],
"setupTestFrameworkScriptFile": "./__tests__/setup.js",
"testMatch": [
"**/__tests__/**/*.test.js?(x)"
],
"transform": {
"^.+\\.jsx?$": "../jest/transform.js"
},
"rootDir": "./src",
"testURL": "http://localhost"
},
"eslintConfig": {
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"plugins": [
"import",
"react"
],
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:react/recommended"
]
},
"eslintIgnore": [
"build/**",
"npm/**",
"src/__tests__/**",
"coverage/**",
"scripts/**"
],
"release": {
"verifyConditions": [
{
"path": "@semantic-release/npm",
"pkgRoot": "./build"
},
"@semantic-release/github",
"@semantic-release/git"
],
"generateNotes": [
"@semantic-release/release-notes-generator"
],
"prepare": [
{
"path": "@semantic-release/changelog",
"changelogFile": "docs/CHANGELOG.md",
"changelogTitle": "# Change Log"
},
{
"path": "@semantic-release/npm",
"pkgRoot": "./build"
},
{
"path": "@semantic-release/git",
"assets": [
"package.json",
"docs/CHANGELOG.md",
"./README.md",
"scripts/stats.json"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"publish": [
{
"path": "@semantic-release/npm",
"pkgRoot": "./build"
},
"@semantic-release/github"
]
}
}