dsifford/academic-bloggers-toolkit

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "private": true,
  "version": "5.2.2",
  "scripts": {
    "build": "npm run webpack -- --mode production",
    "build:dev": "npm run webpack -- --mode development",
    "deploy": "npm run zip && ./scripts/deploy.sh",
    "down": "docker-compose down -v",
    "import-posts": "npm run wp -- plugin install --activate wordpress-importer && npm run wp -- import /docker-entrypoint-initwp.d/test-posts.xml --authors=skip && npm run wp -- plugin uninstall --deactivate wordpress-importer",
    "lint": "npm run lint:scss && npm run lint:ts",
    "lint:scss": "stylelint **/*.scss",
    "lint:ts": "eslint --ext .ts,.tsx src",
    "start": "npm run build:dev -- --watch",
    "test": "jest --coverage && npm run lint",
    "test-ci": "jest --coverage --runInBand && npm run build",
    "up": "docker-compose up -d && docker-compose logs -f wordpress",
    "update-styles": "ts-node --project ./scripts/tsconfig.json ./scripts/update-styles.ts",
    "webpack": "TS_NODE_PROJECT=./tsconfig.node.json TS_NODE_FILES=true webpack",
    "wp": "docker-compose exec wordpress wp",
    "zip": "npm run build && ./scripts/zip.sh",
    "zip:dev": "npm run build:dev && ./scripts/zip.sh"
  },
  "browserslist": [
    "extends @wordpress/browserslist-config"
  ],
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged",
      "pre-push": "npm run lint"
    }
  },
  "jest": {
    "collectCoverageFrom": [
      "src/**/*.{ts,tsx}",
      "!**/{__mocks__,__tests__}/**"
    ],
    "coverageDirectory": "node_modules/.cache/coverage",
    "globals": {
      "ts-jest": {
        "tsConfig": "tsconfig.node.json"
      }
    },
    "moduleNameMapper": {
      "\\.(css|scss)$": "identity-obj-proxy",
      "^(utils|components)/(.*)$": "<rootDir>/src/js/$1/$2"
    },
    "preset": "ts-jest",
    "testURL": "http://localhost"
  },
  "lint-staged": {
    "*.{ts,tsx,js,jsx,scss,json,css}": [
      "prettier --write",
      "git add"
    ]
  },
  "prettier": "@dsifford/prettier-config",
  "dependencies": {
    "@wordpress/block-editor": "^3.2.3",
    "@wordpress/blocks": "^6.7.2",
    "@wordpress/components": "^8.3.2",
    "@wordpress/compose": "^3.7.2",
    "@wordpress/data": "^4.9.2",
    "@wordpress/dom-ready": "^2.5.1",
    "@wordpress/edit-post": "^3.8.3",
    "@wordpress/editor": "^9.7.3",
    "@wordpress/element": "^2.8.2",
    "@wordpress/i18n": "^3.6.1",
    "@wordpress/keycodes": "^2.6.2",
    "@wordpress/plugins": "^2.7.2",
    "@wordpress/rich-text": "^3.7.2",
    "@wordpress/url": "^2.8.2",
    "astrocite": "^0.16.0",
    "citeproc": "^2.2.27",
    "classnames": "^2.2.6",
    "dompurify": "^2.0.7",
    "fuse.js": "^3.4.5",
    "lodash": "^4.17.15",
    "react": "^16.11.0",
    "react-autosuggest": "^9.4.3",
    "react-dom": "^16.11.0",
    "string-hash": "^1.1.3",
    "tooltip.js": "^1.3.3",
    "typescript": "^3.6.4",
    "uuid": "^3.3.3"
  },
  "devDependencies": {
    "@babel/core": "^7.6.4",
    "@babel/plugin-transform-react-jsx": "^7.3.0",
    "@dsifford/eslint-config": "^0.7.1",
    "@dsifford/prettier-config": "^0.4.14",
    "@dsifford/stylelint-config": "^0.4.15",
    "@types/browser-sync-webpack-plugin": "^2.2.0",
    "@types/classnames": "^2.2.9",
    "@types/copy-webpack-plugin": "^5.0.0",
    "@types/dompurify": "0.0.33",
    "@types/jest": "^24.0.20",
    "@types/lodash": "^4.14.144",
    "@types/mini-css-extract-plugin": "^0.8.0",
    "@types/node": "^12.11.7",
    "@types/react": "^16.9.11",
    "@types/react-autosuggest": "^9.3.13",
    "@types/react-dom": "^16.9.3",
    "@types/react-test-renderer": "^16.9.1",
    "@types/rimraf": "^2.0.3",
    "@types/string-hash": "^1.1.1",
    "@types/uuid": "^3.4.5",
    "@types/webpack": "^4.39.5",
    "@types/wordpress__block-editor": "^2.2.3",
    "@types/wordpress__blocks": "^6.4.4",
    "@types/wordpress__components": "^7.4.5",
    "@types/wordpress__compose": "^3.4.0",
    "@types/wordpress__data": "^4.6.4",
    "@types/wordpress__dependency-extraction-webpack-plugin": "^1.0.0",
    "@types/wordpress__dom-ready": "^2.3.0",
    "@types/wordpress__edit-post": "^3.5.1",
    "@types/wordpress__editor": "^9.4.1",
    "@types/wordpress__element": "^2.4.0",
    "@types/wordpress__i18n": "^3.4.0",
    "@types/wordpress__keycodes": "^2.3.0",
    "@types/wordpress__plugins": "^2.3.4",
    "@types/wordpress__rich-text": "^3.4.3",
    "@types/wordpress__url": "^2.3.0",
    "@wordpress/babel-plugin-makepot": "^3.2.1",
    "@wordpress/babel-preset-default": "^4.6.2",
    "@wordpress/browserslist-config": "^2.6.0",
    "@wordpress/dependency-extraction-webpack-plugin": "^2.0.0",
    "awesome-typescript-loader": "^5.2.1",
    "babel-loader": "^8.0.6",
    "browser-sync": "^2.26.7",
    "browser-sync-webpack-plugin": "^2.2.2",
    "camaro": "^4.1.2",
    "copy-webpack-plugin": "^5.0.4",
    "csl-json": "^0.1.0",
    "css-loader": "^3.2.0",
    "cssnano": "^4.1.10",
    "eslint": "^6.6.0",
    "husky": "^3.0.9",
    "identity-obj-proxy": "^3.0.0",
    "jest": "^24.9.0",
    "lint-staged": "^9.4.2",
    "mini-css-extract-plugin": "^0.8.0",
    "node-sass": "^4.13.0",
    "postcss-loader": "^3.0.0",
    "postcss-preset-env": "^6.7.0",
    "prettier": "^1.18.2",
    "react-test-renderer": "^16.11.0",
    "rimraf": "^3.0.0",
    "rollup": "^1.25.2",
    "rollup-plugin-commonjs": "^10.1.0",
    "rollup-plugin-node-resolve": "^5.2.0",
    "rollup-plugin-terser": "^5.1.2",
    "sass-loader": "^8.0.0",
    "style-loader": "^1.0.0",
    "stylelint": "^11.1.1",
    "stylelint-scss": "^3.12.0",
    "ts-jest": "^24.1.0",
    "ts-node": "^8.4.1",
    "webpack": "^4.41.2",
    "webpack-cli": "^3.3.9"
  }
}