gregoranders/react-spinner

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@gregoranders/react-spinner",
  "version": "0.0.7",
  "description": "React Spinner Component",
  "author": "Gregor Anders <gregor.anders@gmail.com>",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/gregoranders/react-spinner/issues"
  },
  "homepage": "https://gregoranders.github.io/react-spinner/",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/gregoranders/react-spinner.git"
  },
  "engines": {
    "node": ">=16"
  },
  "private": false,
  "keywords": [
    "ci",
    "jest",
    "react",
    "typescript"
  ],
  "main": "dist/cjs/index.js",
  "module": "dist/esm/index.js",
  "types": "dist/index.d.ts",
  "files": [
    "dist",
    "!dist/.gitignore"
  ],
  "publishConfig": {
    "access": "public"
  },
  "scripts": {
    "clear": "rimraf --glob ./dist/* ./temp/* ./test/* ./node_modules ./package-lock.json ./docs-tmp/* ./etc/*",
    "prebuild": "rimraf --glob ./dist/* && eslint ./src/**/*.tsx",
    "build": "npm run build:cjs && npm run build:esm",
    "build:cjs": "tsc --project ./ --module commonjs --target es5 --outDir ./dist/cjs",
    "build:esm": "tsc --project ./ --module es6 --declaration --declarationDir ./dist/esm --outDir ./dist/esm",
    "postbuild": "rimraf --glob ./dist/esm/index.d.ts* && npm run scss && npm run types && npm run lint && npm run docs",
    "scss": "cpx './src/styles.scss' './dist/'",
    "types": "cpx './build/cjs/index.d.ts*' './dist/'",
    "lint": "npm run lint:dist && npm run lint:markdown && npm run lint:remark",
    "lint:dist": "eslint --no-eslintrc --config .eslintrc-dist.json --ext js --fix ./dist",
    "lint:markdown": "markdownlint --config .markdownlint.json --ignore-path .markdownlintignore .",
    "lint:remark": "remark --frail --rc-path .remarkrc-full.mjs .",
    "pretest": "rimraf --glob ./test/*",
    "test": "jest",
    "watch": "tsc --watch --project ./",
    "prepare": "husky install",
    "docs": "npm run api-extractor && npm run api-documenter",
    "api-extractor": "api-extractor run --local --verbose",
    "api-documenter": "api-documenter markdown --input ./dist --output ./docs-tmp && cpx 'docs-tmp/**/*.*' docs",
    "codeclimate": "docker run --interactive --rm --env CODECLIMATE_CODE=\"$PWD\" --volume \"$PWD\":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze",
    "codacy": "docker run --interactive --rm --env CODACY_CODE=\"$PWD\" --volume \"$PWD\":\"$PWD\" --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp:/tmp codacy/codacy-analysis-cli analyze --directory \"$PWD\"",
    "changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s && git add CHANGELOG.md"
  },
  "lint-staged": {
    "*.{ts, tsx}": [
      "eslint --ext .ts,.tsx"
    ],
    "*.md": [
      "markdownlint",
      "remark --frail --rc-path .remarkrc-full.mjs"
    ]
  },
  "jest-html-reporter": {
    "pageTitle": "react-spinner",
    "outputPath": "<rootDir>/test/index.html"
  },
  "jest-junit": {
    "outputDirectory": "<rootDir>/test"
  },
  "jest": {
    "collectCoverage": true,
    "coverageDirectory": "<rootDir>/test/coverage",
    "collectCoverageFrom": [
      "<rootDir>/src/**/*.ts",
      "<rootDir>/src/**/*.tsx",
      "!<rootDir>/node_modules/**",
      "!<rootDir>/dist/**",
      "!<rootDir>/temp/**",
      "!<rootDir>/test/**"
    ],
    "coverageReporters": [
      "lcovonly",
      "html",
      "text",
      "text-summary"
    ],
    "coverageThreshold": {
      "global": {
        "branches": 100,
        "functions": 100,
        "lines": 100,
        "statements": 100
      }
    },
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json"
    ],
    "reporters": [
      "jest-html-reporter",
      "jest-spec-reporter",
      "jest-junit"
    ],
    "setupFilesAfterEnv": [
      "@testing-library/jest-dom"
    ],
    "transform": {
      "\\.ts(x)?$": "ts-jest"
    },
    "testRegex": "/src/.*\\.spec\\.ts(x)?$"
  },
  "peerDependencies": {
    "prop-types": "15.8.1",
    "react": "18.2.0"
  },
  "devDependencies": {
    "@commitlint/cli": "18.2.0",
    "@commitlint/config-conventional": "18.1.0",
    "@microsoft/api-documenter": "7.23.9",
    "@microsoft/api-extractor": "7.38.0",
    "@testing-library/jest-dom": "^6.1.4",
    "@testing-library/react": "14.0.0",
    "@types/jest": "29.5.6",
    "@types/prop-types": "15.7.9",
    "@types/react": "18.2.33",
    "@typescript-eslint/eslint-plugin": "6.9.0",
    "@typescript-eslint/parser": "6.9.0",
    "conventional-changelog-cli": "4.1.0",
    "cpx": "1.5.0",
    "cross-env": "7.0.3",
    "dictionary-en": "3.2.0",
    "eslint": "8.52.0",
    "eslint-config-prettier": "9.0.0",
    "eslint-plugin-jest": "27.6.0",
    "eslint-plugin-prettier": "5.0.1",
    "eslint-plugin-react": "7.33.2",
    "eslint-plugin-react-hooks": "4.6.0",
    "eslint-plugin-unicorn": "48.0.1",
    "husky": "8.0.3",
    "jest": "29.7.0",
    "jest-cli": "29.7.0",
    "jest-environment-jsdom": "29.7.0",
    "jest-html-reporter": "3.10.2",
    "jest-junit": "16.0.0",
    "jest-spec-reporter": "1.0.19",
    "lint-staged": "15.0.2",
    "markdownlint": "0.31.1",
    "markdownlint-cli": "0.37.0",
    "prettier": "3.0.3",
    "prop-types": "15.8.1",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-is": "18.2.0",
    "remark-cli": "12.0.0",
    "remark-frontmatter": "5.0.0",
    "remark-lint": "9.1.2",
    "remark-lint-heading-whitespace": "1.0.0",
    "remark-lint-list-item-indent": "3.1.2",
    "remark-lint-no-dead-urls": "1.1.0",
    "remark-lint-no-duplicate-headings": "3.1.2",
    "remark-lint-write-good": "1.2.0",
    "remark-preset-lint-consistent": "5.1.2",
    "remark-preset-lint-markdown-style-guide": "5.1.3",
    "remark-preset-lint-recommended": "6.1.3",
    "remark-retext": "6.0.0",
    "remark-validate-links": "13.0.0",
    "retext-contractions": "6.0.0",
    "retext-diacritics": "5.0.0",
    "retext-english": "5.0.0",
    "retext-equality": "7.0.0",
    "retext-indefinite-article": "5.0.0",
    "retext-passive": "5.0.0",
    "retext-profanities": "8.0.0",
    "retext-quotes": "6.0.0",
    "retext-readability": "8.0.0",
    "retext-redundant-acronyms": "5.0.0",
    "retext-repeated-words": "5.0.0",
    "retext-sentence-spacing": "6.0.0",
    "retext-spell": "6.0.0",
    "retext-syntax-urls": "4.0.0",
    "retext-usage": "0.5.0",
    "rimraf": "5.0.5",
    "ts-jest": "29.1.1",
    "typescript": "5.2.2",
    "unified": "11.0.4"
  }
}