i18next/react-i18next

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "react-i18next",
  "version": "11.7.3",
  "description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
  "main": "dist/commonjs/index.js",
  "types": "src/index.d.ts",
  "jsnext:main": "dist/es/index.js",
  "module": "dist/es/index.js",
  "keywords": [
    "i18next",
    "internationalization",
    "i18n",
    "translation",
    "localization",
    "l10n",
    "globalization",
    "react",
    "reactjs"
  ],
  "homepage": "https://github.com/i18next/react-i18next",
  "bugs": "https://github.com/i18next/react-i18next/issues",
  "repository": {
    "type": "git",
    "url": "https://github.com/i18next/react-i18next.git"
  },
  "dependencies": {
    "@babel/runtime": "^7.3.1",
    "html-parse-stringify2": "2.0.1"
  },
  "devDependencies": {
    "@babel/cli": "^7.2.3",
    "@babel/core": "^7.2.2",
    "@babel/plugin-proposal-async-generator-functions": "^7.2.0",
    "@babel/plugin-proposal-object-rest-spread": "^7.3.2",
    "@babel/plugin-transform-modules-commonjs": "^7.2.0",
    "@babel/plugin-transform-runtime": "^7.2.0",
    "@babel/polyfill": "^7.2.5",
    "@babel/preset-env": "^7.3.1",
    "@babel/preset-react": "^7.0.0",
    "@babel/register": "^7.0.0",
    "@types/react": "^16.8.2",
    "all-contributors-cli": "^6.1.1",
    "babel-core": "^7.0.0-bridge.0",
    "babel-eslint": "10.0.3",
    "babel-jest": "24.8.0",
    "babel-plugin-macros": "^2.5.0",
    "babel-plugin-tester": "^6.0.0",
    "coveralls": "^3.0.2",
    "cp-cli": "^2.0.0",
    "cross-env": "^6.0.3",
    "dtslint": "^0.9.1",
    "enzyme": "^3.8.0",
    "enzyme-adapter-react-16": "^1.9.1",
    "enzyme-adapter-react-helper": "^1.3.2",
    "eslint": "6.5.1",
    "eslint-config-airbnb": "18.0.1",
    "eslint-config-prettier": "6.4.0",
    "eslint-plugin-import": "2.18.2",
    "eslint-plugin-jsx-a11y": "6.2.3",
    "eslint-plugin-react": "7.16.0",
    "husky": "^3.0.3",
    "i18next": "^19.0.0",
    "jest": "24.8.0",
    "jest-cli": "24.8.0",
    "lint-staged": "^8.1.3",
    "mkdirp": "0.5.1",
    "prettier": "1.18.2",
    "react": "^16.10.2",
    "react-dom": "^16.10.2",
    "rimraf": "2.6.3",
    "rollup": "1.19.4",
    "rollup-plugin-babel": "^4.3.2",
    "rollup-plugin-commonjs": "^10.0.2",
    "rollup-plugin-node-resolve": "5.2.0",
    "rollup-plugin-replace": "^2.1.0",
    "rollup-plugin-terser": "^5.1.1",
    "sinon": "^7.2.3",
    "tslint": "^5.13.1",
    "typescript": "^3.6.4",
    "yargs": "13.3.0"
  },
  "peerDependencies": {
    "i18next": ">= 19.0.0",
    "react": ">= 16.8.0"
  },
  "scripts": {
    "clean": "rimraf dist && mkdirp dist",
    "copy": "cp-cli ./dist/umd/react-i18next.min.js ./react-i18next.min.js && cp-cli ./dist/umd/react-i18next.js ./react-i18next.js",
    "build:es": "cross-env BABEL_ENV=jsnext babel src --out-dir dist/es",
    "build:cjs": "babel src --out-dir dist/commonjs",
    "build:umd": "rollup -c rollup.config.js --format umd && rollup -c rollup.config.js --format umd --uglify",
    "build:amd": "rollup -c rollup.config.js --format amd && rollup -c rollup.config.js --format amd --uglify",
    "build:iife": "rollup -c rollup.config.js --format iife && rollup -c rollup.config.js --format iife --uglify",
    "build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:umd && npm run build:amd && npm run copy",
    "preversion": "npm run build && git push",
    "postversion": "git push && git push --tags",
    "pretest": "npm run test:typescript && npm run test:typescript:noninterop",
    "test": "cross-env BABEL_ENV=development jest --no-cache",
    "test:watch": "cross-env BABEL_ENV=development jest --no-cache --watch",
    "test:coverage": "cross-env BABEL_ENV=development jest --no-cache --coverage",
    "test:coverageOldEnzymeAdapter": "enzyme-adapter-react-install 16 && cross-env BABEL_ENV=development jest --no-cache --coverage",
    "test:lint": "eslint ./src ./test",
    "test:typescript": "tslint --project tsconfig.json",
    "test:typescript:noninterop": "tslint --project tsconfig.nonEsModuleInterop.json",
    "contributors:add": "all-contributors add",
    "contributors:generate": "all-contributors generate",
    "prettier": "prettier --write \"{,**/}*.{ts,tsx,js,json,md}\""
  },
  "author": "Jan Mühlemann <jan.muehlemann@gmail.com> (https://github.com/jamuhl)",
  "license": "MIT",
  "jest": {
    "setupFilesAfterEnv": [
      "./test/setup.js"
    ],
    "unmockedModulePathPatterns": [
      "react"
    ],
    "testMatch": [
      "**/test/?(*.)(spec|test).js?(x)"
    ],
    "collectCoverageFrom": [
      "**/src/*.{js,jsx}",
      "*.macro.js",
      "!**/src/index.js",
      "!**/src/shallowEqual.js",
      "!**/node_modules/**",
      "!**/test/**",
      "!**/example/**"
    ]
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "linters": {
      "*.{ts,tsx,js,json,md}": [
        "prettier --write",
        "git add"
      ]
    },
    "ignore": [
      "**/dist/**/*.js",
      "**/react-i18next.js",
      "**/react-i18next.min.js"
    ]
  },
  "lock": false,
  "sideEffects": false
}