wopian/kitsu

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "private": true,
  "homepage": "https://github.com/wopian/kitsu#readme",
  "repository": "https://github.com/wopian/kitsu",
  "bugs": {
    "url": "https://github.com/wopian/kitsu/issues"
  },
  "engines": {
    "node": ">= 14"
  },
  "workspaces": [
    "packages/*"
  ],
  "scripts": {
    "diff": "lerna diff",
    "updated": "lerna updated -l --sort",
    "updated:json": "yarn updated --json",
    "bootstrap": "lerna bootstrap",
    "build": "lerna exec yarn build",
    "docs": "lerna exec --parallel yarn docs:lint",
    "docs:build": "lerna exec --parallel yarn docs:build",
    "docs:typescript": "lerna exec --parallel yarn docs:typescript",
    "docs:release": "yarn docs && yarn docs:build && yarn docs:typescript",
    "fix": "eslint . --fix",
    "lint": "eslint .",
    "test": "yarn test:coverage && yarn lint && yarn docs && yarn build && yarn size",
    "test:coverage": "jest --coverage",
    "release": "yarn updated && yarn release:test && yarn release:commit && yarn release:lerna",
    "release:test": "jest && yarn lint && yarn docs:release && yarn build",
    "release:commit": "git commit -am \"chore(release): update documentation\"",
    "release:lerna": "lerna publish",
    "release:lerna-alpha": "lerna publish --preid=alpha",
    "browserslist": "browserslist \"last 2 years, not < 0.05%\"",
    "size": "lerna exec size-limit"
  },
  "devDependencies": {
    "@babel/cli": "~7.25.0",
    "@babel/core": "~7.26.0",
    "@babel/preset-env": "~7.26.0",
    "@rollup/plugin-babel": "~6.0.0",
    "axios": "~0.28.1",
    "axios-mock-adapter": "~1.22.0",
    "babel-jest": "~29.7.0",
    "browserslist": "~4.24.0",
    "conventional-changelog-angular": "~6.0.0",
    "cross-env": "~7.0.0",
    "documentation": "~14.0.0",
    "eslint": "~8.57.0",
    "eslint-config-wopian": "~3.0.0",
    "jest": "~29.7.0",
    "jest-environment-jsdom": "^29.0.0",
    "json-stringify-safe": "~5.0.1",
    "lerna": "^3.0.0",
    "rollup": "~2.79.0",
    "rollup-plugin-delete": "~2.1.0",
    "rollup-plugin-local-resolve": "~1.0.7",
    "size-limit": "~8.2.0",
    "typescript": "~5.6.0"
  },
  "jest": {
    "coverageThreshold": {
      "global": {
        "branches": 100,
        "functions": 100,
        "lines": 100,
        "statements": 0
      }
    },
    "projects": [
      {
        "displayName": "browser",
        "testEnvironment": "jsdom",
        "bail": true,
        "collectCoverageFrom": [
          "<rootDir>/packages/**/src/**/*.js"
        ],
        "coveragePathIgnorePatterns": [
          "/node_modules/",
          "/specification/"
        ],
        "coverageDirectory": "<rootDir>/coverage",
        "moduleNameMapper": {
          "^specification(.*)$": "<rootDir>/specification/$1",
          "^kitsu-core(.*)$": "<rootDir>/packages/kitsu-core/src/$1",
          "^kitsu(.*)$": "<rootDir>/packages/kitsu/src/$1",
          "^pkg$": "<rootDir>/package.json"
        },
        "transform": {
          "^.+\\.js$": "<rootDir>/config/jest.transform.js"
        },
        "testMatch": [
          "<rootDir>/packages/**/src/**/*.spec.js",
          "<rootDir>/packages/**/src/**/*.spec.browser.js"
        ]
      },
      {
        "displayName": "node",
        "testEnvironment": "node",
        "bail": true,
        "collectCoverageFrom": [
          "<rootDir>/packages/**/src/**/*.js"
        ],
        "coveragePathIgnorePatterns": [
          "/node_modules/",
          "/specification/"
        ],
        "coverageDirectory": "<rootDir>/coverage",
        "moduleNameMapper": {
          "^specification(.*)$": "<rootDir>/specification/$1",
          "^kitsu-core(.*)$": "<rootDir>/packages/kitsu-core/src/$1",
          "^kitsu(.*)$": "<rootDir>/packages/kitsu/src/$1",
          "^pkg$": "<rootDir>/package.json"
        },
        "transform": {
          "^.+\\.js$": "<rootDir>/config/jest.transform.js"
        },
        "testMatch": [
          "<rootDir>/packages/**/src/**/*.spec.js",
          "<rootDir>/packages/**/src/**/*.spec.node.js"
        ]
      }
    ]
  },
  "renovate": {
    "extends": [
      "github>wopian/renovate-config",
      ":pathSemanticCommitType(packages/kitsu/**,build(kitsu))",
      ":pathSemanticCommitType(packages/kitsu-core/**,build(kitsu-core))"
    ],
    "baseBranches": [
      "master"
    ]
  }
}