sounisi5011/metalsmith-directory-metadata

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "metalsmith-directory-metadata",
  "version": "1.0.0",
  "description": "Metalsmith plugin: defines default metadata for files in a directory",
  "keywords": [
    "data",
    "metalsmith",
    "metalsmith-plugin",
    "plugin"
  ],
  "homepage": "https://github.com/sounisi5011/metalsmith-directory-metadata#readme",
  "bugs": {
    "url": "https://github.com/sounisi5011/metalsmith-directory-metadata/issues"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/sounisi5011/metalsmith-directory-metadata.git"
  },
  "license": "MIT",
  "author": "sounisi5011",
  "files": [
    "dist/"
  ],
  "main": "dist/index",
  "types": "dist/index.d.ts",
  "directories": {
    "test": "test"
  },
  "scripts": {
    "build": "tsc",
    "build:readme": "node ./script/readme-generator.js --template ./readme-template.mustache",
    "clean": "del './dist/'",
    "fmt-pkg": "run-s fmt-pkg:prettier fmt-pkg:sort",
    "fmt-pkg:prettier": "prettier-package-json --write ./package.json",
    "fmt-pkg:sort": "sort-package-json ./package.json",
    "fmt-ts": "run-s 'lint:eslint -- --fix'",
    "lint": "run-p lint:*",
    "lint:eslint": "eslint --ext .ts ./",
    "lint:tsc-src": "tsc --noEmit",
    "lint:tsc-test": "tsc -p ./test/ --noEmit",
    "release": "run-s release:validation release:build release:publish",
    "release:build": "run-s clean build",
    "release:publish": "run-s release:publish:git release:publish:npm",
    "release:publish:git": "package-version-git-tag --push",
    "release:publish:npm": "npm publish --access=public",
    "release:validation": "npm-run-all release:validation:publishable -p 'release:validation:!(publishable)' test",
    "release:validation:git-branch": "git-branch-is master",
    "release:validation:git-work-dir": "is-git-status-clean",
    "release:validation:publishable": "can-npm-publish --verbose",
    "test": "run-s test:readme test:peer-deps lint test:ava test:check-type-defs-pkgs",
    "test:ava": "ava",
    "test:check-type-defs-pkgs": "node script/check-type-defs-pkgs.js ./dist/ build",
    "test:peer-deps": "check-peer-deps",
    "test:readme": "npm run build:readme -- --test"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "!(README.md)": [
      "npm run build:readme",
      "git add ./README.md"
    ],
    "!(package).json|*.{js,yaml,yml}": [
      "prettier --write",
      "git add"
    ],
    "*.ts": [
      "eslint --fix",
      "git add"
    ],
    "README.md": [
      "npm run test:readme"
    ],
    "package.json": [
      "prettier-package-json --write",
      "sort-package-json",
      "git add"
    ]
  },
  "dependencies": {
    "@types/metalsmith": "2.3.0",
    "debug": "4.1.1",
    "deep-freeze-strict": "1.1.1",
    "js-yaml": "3.13.1",
    "multimatch": "4.0.0"
  },
  "devDependencies": {
    "@sounisi5011/check-peer-deps": "github:sounisi5011/check-peer-deps",
    "@types/debug": "4.1.5",
    "@types/deep-freeze-strict": "1.1.0",
    "@types/js-yaml": "3.12.1",
    "@types/lodash.clonedeep": "4.5.6",
    "@types/node": "*",
    "@typescript-eslint/eslint-plugin": "2.2.0",
    "@typescript-eslint/parser": "2.2.0",
    "ava": "2.3.0",
    "can-npm-publish": "1.3.1",
    "del-cli": "3.0.0",
    "eslint": "6.3.0",
    "eslint-config-prettier": "6.3.0",
    "eslint-config-standard": "14.1.0",
    "eslint-plugin-import": "2.18.2",
    "eslint-plugin-node": "10.0.0",
    "eslint-plugin-prettier": "3.1.0",
    "eslint-plugin-promise": "4.2.1",
    "eslint-plugin-simple-import-sort": "4.0.0",
    "eslint-plugin-standard": "4.0.1",
    "git-branch-is": "3.0.0",
    "husky": "3.0.5",
    "is-git-status-clean": "1.0.0",
    "lint-staged": "9.2.5",
    "lodash.clonedeep": "4.5.0",
    "metalsmith": "2.3.0",
    "mustache": "3.1.0",
    "npm-run-all": "4.1.5",
    "package-version-git-tag": "1.1.2",
    "prettier": "1.18.2",
    "prettier-package-json": "2.1.0",
    "sort-package-json": "1.22.1",
    "ts-node": "8.3.0",
    "typescript": "3.6.3"
  },
  "peerDependencies": {
    "metalsmith": ">=2.3.0"
  },
  "engines": {
    "node": ">=8.3.0"
  },
  "ava": {
    "files": [
      "./test/**/*.ts"
    ],
    "helpers": [
      "**/{fixtures,helpers}/**/*"
    ],
    "compileEnhancements": false,
    "require": [
      "ts-node/register/transpile-only"
    ],
    "extensions": [
      "ts"
    ]
  }
}