package.json

Summary

Maintainability
Test Coverage
{
  "name": "adr",
  "version": "1.4.5",
  "description": "轻量级架构记录工具 - Command-line tools for working with Architecture Decision Records",
  "main": "build/main/index.js",
  "bin": "build/main/cli.js",
  "typings": "build/main/index.d.ts",
  "module": "build/module/index.js",
  "repository": "https://github.com/phodal/adr",
  "author": "Phodal HUANG <h@phodal.com>",
  "license": "MIT",
  "scripts": {
    "info": "npm-scripts-info",
    "build": "trash build && yarn build:main && yarn build:module && copyfiles -f ./src/lib/templates/* ./build/main/lib/templates/ && yarn copy:template",
    "build:main": "tsc -p tsconfig.json",
    "build:module": "tsc -p config/exports/tsconfig.module.json",
    "build:tests": "trash test && copyfiles -f ./src/test/*.html ./test/main/test/ && node config/exports/build-tests.js",
    "lint": "tslint --project . src/**/*.ts",
    "unit": "yarn build && yarn build:tests && nyc ava",
    "check-coverage": "nyc check-coverage --lines 85 --functions 80 --branches 80",
    "test": "yarn lint && yarn unit && nyc report --reporter=lcov && yarn check-coverage",
    "watch": "yarn build && yarn build:tests --no-browser  && yarn html-coverage && concurrently -r --kill-others 'npm run --silent build:main -- -w' 'npm run --silent build:tests -- -w --no-browser' 'sleepms 2000 && ava --watch'",
    "cov": "yarn unit && yarn html-coverage && opn coverage/index.html",
    "html-coverage": "nyc report --reporter=html",
    "send-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
    "docs": "yarn docs:html && opn build/docs/index.html",
    "docs:html": "typedoc src/index.ts --excludePrivate --mode file --theme minimal --out build/docs",
    "docs:json": "typedoc --mode file --json build/docs/typedoc.json src/index.ts",
    "docs:publish": "yarn docs:html && gh-pages -d build/docs",
    "changelog": "standard-version",
    "release": "yarn reset && yarn test && yarn docs:publish && yarn changelog",
    "reset": "git clean -dfx && git reset --hard && yarn",
    "cli": "node build/main/cli.js",
    "copy:template": "copyfiles -f ./src/lib/helpers/*.html ./build/main/lib/helpers/ && copyfiles -f ./src/lib/helpers/*.html ./build/module/lib/helpers/"
  },
  "scripts-info": {
    "info": "Display information about the scripts",
    "build": "(Trash and re)build the library",
    "lint": "Lint all typescript source files",
    "unit": "Build the library and run unit tests",
    "test": "Lint, build, and test the library",
    "watch": "Watch source files, rebuild library on changes, rerun relevant tests",
    "cov": "Run tests, generate the HTML coverage report, and open it in a browser",
    "docs": "Generate HTML API documentation and open it in a browser",
    "docs:publish": "Generate HTML API documentation and push it to GitHub Pages",
    "docs:json": "Generate API documentation in typedoc JSON format",
    "changelog": "Bump package.json version, update CHANGELOG.md, tag a release",
    "reset": "Delete all untracked files and reset the repo to the last commit",
    "release": "Clean, build, test, publish docs, and prepare release (a one-step publish process)"
  },
  "engines": {
    "node": ">=10.0"
  },
  "devDependencies": {
    "@istanbuljs/nyc-config-typescript": "^1.0.1",
    "@lisnote/image-generator": "^1.0.3",
    "@types/node": "^14.0.5",
    "ava": "4.3.3",
    "browserify": "^16.2.3",
    "codecov": "^3.5.0",
    "concurrently": "^5.2.0",
    "copyfiles": "^2.1.0",
    "cpx": "^1.5.0",
    "gh-pages": "^2.0.1",
    "npm-scripts-info": "^0.3.9",
    "nyc": "^15.0.1",
    "opn-cli": "^5.0.0",
    "proxyquire": "^2.1.0",
    "rollup": "^2.11.2",
    "rollup-plugin-alias": "^2.2.0",
    "rollup-plugin-commonjs": "^10.0.0",
    "rollup-plugin-node-resolve": "^5.0.4",
    "rollup-watch": "^4.3.1",
    "sinon": "^9.0.2",
    "sleep-ms": "^2.0.1",
    "sorcery": "^0.10.0",
    "standard-version": "^8.0.0",
    "trash-cli": "^3.0.0",
    "tslint": "^6.1.2",
    "tslint-config-standard": "^9.0.0",
    "typedoc": "^0.17.7",
    "typescript": "^3.5.3"
  },
  "keywords": [
    "async",
    "ava",
    "await",
    "boilerplate",
    "conventional-changelog",
    "ES6",
    "ES7",
    "library",
    "javascript-modules",
    "node",
    "nyc",
    "rollup",
    "starter",
    "template",
    "tree-shaking",
    "tslint",
    "typedoc",
    "typescript",
    "typings"
  ],
  "nyc": {
    "extends": "@istanbuljs/nyc-config-typescript",
    "exclude": [
      "**/*.spec.js",
      "build/browser/**"
    ]
  },
  "ava": {
    "source": [
      "test/**/*.js",
      "build/**/*.js",
      "!build/**/*.spec.js"
    ],
    "failFast": true,
    "files": [
      "build/main/**/*.spec.js"
    ],
    "ignoredByWatcher": [
      "build/main/**/*.js"
    ]
  },
  "dependencies": {
    "colors": "^1.3.3",
    "commander": "^5.1.0",
    "find-in-files": "^0.5.0",
    "inquirer": "^7.1.0",
    "lru-cache": "^5.1.1",
    "markdown": "^0.5.0",
    "markdown-toc": "^1.2.0",
    "mkdirp": "^1.0.4",
    "moment": "^2.24.0",
    "open-in-editor": "^2.2.0",
    "remarkable": "^2.0.1",
    "sharp": "^0.30.4",
    "table": "^5.4.1",
    "tslib": "^2.0.0",
    "walk": "^2.3.14",
    "walk-sync": "^2.1.0"
  }
}