UNPKG

@rest-api/react-models

Version:

[![npm version](https://img.shields.io/npm/v/@rest-api/react-models)](https://www.npmjs.com/package/@rest-api/react-models) [![codecov](https://codecov.io/gh/hector7/rest-api-react-models/branch/master/graph/badge.svg)](https://codecov.io/gh/hector7/rest-

183 lines (182 loc) 5.13 kB
{ "name": "@rest-api/react-models", "version": "2.2.8", "description": "", "main": "index.js", "scripts": { "prepublishOnly": "npm run clear && tsc", "clear": "find . -not -path \"./node_modules*\" -name \"*.d.ts\" -type f -delete && find . -not -path \"./node_modules*\" -not -path \"./config*\" -not -path \"./scripts*\" -name \"*.js\" -type f -delete && find . -not -path \"./node_modules*\" -name \"*.js.map\" -type f -delete", "pretest": "npm run clear", "test": "node scripts/test.ts", "watch": "mocha-typescript-watch" }, "repository": { "type": "git", "url": "https://github.com/hector7/rest-api-react-models.git" }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/*.d.ts", "test", "coverage" ], "reporter": [ "text-summary", "html" ], "all": true }, "author": "hector.rbs91@gmail.com", "license": "MIT", "homepage": "https://github.com/hector7/rest-api-react-models", "keywords": [ "react-plugin", "react-fetch", "api", "rest-api", "rest-api-redux", "react-models", "model" ], "devDependencies": { "@babel/core": "7.9.0", "@svgr/webpack": "4.3.3", "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.4.0", "@testing-library/user-event": "^7.2.1", "@types/jest": "^25.2.3", "@types/jest-expect-message": "^1.0.2", "@types/node": "^12.12.7", "@types/react-redux": "^7.1.9", "@types/redux-thunk": "^2.1.0", "@typescript-eslint/eslint-plugin": "^2.10.0", "@typescript-eslint/parser": "^2.10.0", "babel-eslint": "10.1.0", "babel-jest": "^24.9.0", "babel-loader": "8.1.0", "babel-plugin-named-asset-import": "^0.3.6", "babel-preset-react-app": "^9.1.2", "camelcase": "^5.3.1", "case-sensitive-paths-webpack-plugin": "2.3.0", "codecov": "^3.1.0", "css-loader": "3.4.2", "dotenv": "8.2.0", "dotenv-expand": "5.1.0", "eslint": "^6.6.0", "eslint-config-react-app": "^5.2.1", "eslint-loader": "3.0.3", "eslint-plugin-flowtype": "4.6.0", "eslint-plugin-import": "2.20.1", "eslint-plugin-jsx-a11y": "6.2.3", "eslint-plugin-react": "7.19.0", "eslint-plugin-react-hooks": "^1.6.1", "fake-xml-http-request": "^2.0.1", "file-loader": "4.3.0", "fs-extra": "^8.1.0", "html-webpack-plugin": "4.0.0-beta.11", "identity-obj-proxy": "3.0.0", "jest": "24.9.0", "jest-environment-jsdom-fourteen": "1.0.1", "jest-expect-message": "^1.0.2", "jest-junit": "^10.0.0", "jest-resolve": "24.9.0", "jest-watch-typeahead": "0.4.2", "mini-css-extract-plugin": "0.9.0", "optimize-css-assets-webpack-plugin": "5.0.3", "pnp-webpack-plugin": "1.6.4", "postcss-flexbugs-fixes": "4.1.0", "postcss-loader": "3.0.0", "postcss-normalize": "8.0.1", "postcss-preset-env": "6.7.0", "postcss-safe-parser": "4.0.1", "react": "^16.13.1", "react-app-polyfill": "^1.0.6", "react-dev-utils": "^10.2.1", "react-dom": "^16.13.1", "resolve": "1.15.0", "resolve-url-loader": "3.1.1", "sass-loader": "8.0.2", "semver": "6.3.0", "source-map-support": "^0.5.16", "style-loader": "0.23.1", "terser-webpack-plugin": "2.3.5", "ts-pnp": "1.1.6", "typescript": "^3.9.5", "url-loader": "2.3.0", "webpack": "4.42.0", "webpack-dev-server": "^3.11.0", "webpack-manifest-plugin": "2.2.0", "workbox-webpack-plugin": "4.3.1", "xmlhttprequest": "^1.8.0" }, "dependencies": { "react-redux": "^7.2.0", "redux": "^4.0.5", "redux-thunk": "^2.3.0" }, "peerDependencies": { "react": "^16.13.1", "react-dom": "^16.13.1" }, "jest": { "roots": [ "<rootDir>/src" ], "collectCoverageFrom": [ "src/**/*.{ts,tsx}", "*.tsx", "!src/**/*.d.ts", "!src/test/**/*" ], "setupFiles": [ "react-app-polyfill/jsdom" ], "setupFilesAfterEnv": [], "testMatch": [ "<rootDir>/src/**/__tests__/**/*.{ts,tsx}", "<rootDir>/src/**/*.{spec,test}.{ts,tsx}" ], "testEnvironment": "jest-environment-jsdom-fourteen", "transform": { "^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest", "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js", "^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js" }, "transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$", "^.+\\.module\\.(css|sass|scss)$" ], "modulePaths": [], "moduleNameMapper": { "^react-native$": "react-native-web", "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy" }, "moduleFileExtensions": [ "web.js", "js", "web.ts", "ts", "web.tsx", "tsx", "json", "web.jsx", "jsx", "node" ], "watchPlugins": [ "jest-watch-typeahead/filename", "jest-watch-typeahead/testname" ] }, "babel": { "presets": [ "react-app" ] }, "eslintConfig": { "extends": "react-app" } }