tiarebalbi/flux-main-sample

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@tiarebalbi/flux-main-sample",
  "version": "1.3.0",
  "description": "Code Splitting with Flux and React",
  "main": "src/index.js",
  "homepage": "https://tiarebalbi.github.io/flux-main-sample",
  "repository": "git@github.com:tiarebalbi/flux-main-sample.git",
  "author": "TiarĂª Balbi <me@tiarebalbi.com>",
  "license": "Apache-2.0",
  "dependencies": {
    "@tiarebalbi/flux-module-report": "git+https://github.com/tiarebalbi/flux-module-report.git",
    "flux": "^3.1.3",
    "immutable": "^3.8.2",
    "keymirror": "^0.1.1",
    "object-assign": "^4.1.1",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-loadable": "^5.5.0",
    "react-router-dom": "^5.1.2",
    "react-scripts": "^3.4.1"
  },
  "publishConfig": {
    "registry": "https://npm.pkg.github.com/"
  },
  "files": [
    "build"
  ],
  "devDependencies": {
    "enzyme": "^3.11.0",
    "enzyme-adapter-react-16": "^1.15.2",
    "enzyme-to-json": "^3.4.4",
    "eslint": "^6.8.0",
    "eslint-config-react-app": "^5.2.1",
    "eslint-loader": "4.0.0",
    "eslint-plugin-flowtype": "4.7.0",
    "eslint-plugin-import": "2.20.2",
    "eslint-plugin-jest": "^23.8.2",
    "eslint-plugin-jsx-a11y": "6.2.3",
    "eslint-plugin-react": "7.19.0",
    "flow-bin": "0.122",
    "flow-coverage-report": "^0.7.0",
    "flow-typed": "^3.1.0",
    "gh-pages": "^2.2.0",
    "husky": "^4.2.5",
    "jest-enzyme": "^7.1.2",
    "jsdom": "^16.2.2",
    "jsdom-global": "^3.0.2",
    "lint-staged": "^10.1.3",
    "npm-run-all": "^4.1.5",
    "prettier-eslint-cli": "^5.0.0"
  },
  "scripts": {
    "ci": "npm install && SKIP_PREFLIGHT_CHECK=true CI=true run-p lint-staged",
    "flow": "flow",
    "flow:fetch-types": "flow-typed install",
    "flow:cov": "flow-coverage-report -i './src/**/*.js' -t text",
    "lint": "eslint src",
    "lint-staged": "lint-staged",
    "precommit": "lint-staged",
    "predeploy": "SKIP_PREFLIGHT_CHECK=true npm run build",
    "deploy": "gh-pages -d build",
    "start": "SKIP_PREFLIGHT_CHECK=true react-scripts start",
    "build": "SKIP_PREFLIGHT_CHECK=true react-scripts build",
    "test": "SKIP_PREFLIGHT_CHECK=true react-scripts test --env=jsdom",
    "test:cov": "SKIP_PREFLIGHT_CHECK=true yarn test --coverage"
  },
  "babel": {
    "presets": [
      "react-app"
    ],
    "plugins": [
      "syntax-dynamic-import"
    ]
  },
  "jest": {
    "coverageThreshold": {
      "global": {
        "branches": 80,
        "functions": 80,
        "lines": 80,
        "statements": 80
      }
    },
    "collectCoverageFrom": [
      "src/**/*.{js,jsx}",
      "!**/index.js",
      "!**/registerServiceWorker.js"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}