stoplightio/scripts

View on GitHub
templates/pkgs/base.json

Summary

Maintainability
Test Coverage
{
  "name": "",
  "version": "0.0.0",
  "description": "",
  "keywords": [],
  "sideEffects": false,
  "homepage": "",
  "bugs": "",
  "author": "",
  "repository": {
    "type": "git",
    "url": ""
  },
  "license": "UNLICENSED",
  "main": "src/index.ts",
  "files": ["**/*"],
  "engines": {
    "node": ">=10"
  },
  "scripts": {
    "build": "sl-scripts build",
    "bundle": "sl-scripts bundle",
    "commit": "git-cz",
    "lint": "tslint -c tslint.json 'src/**/*.{ts,tsx}' -p tsconfig.json",
    "lint.fix": "yarn lint --fix",
    "test": "jest",
    "test.prod": "yarn lint && yarn test --coverage --maxWorkers=2",
    "test.update": "yarn test --updateSnapshot",
    "test.watch": "yarn test --watch",
    "yalc": "yarn build && (cd dist && yalc push)",
    "yalc.watch": "nodemon --watch 'src/**/*' --exec 'yarn yalc'"
  },
  "peerDependencies": {},
  "dependencies": {},
  "devDependencies": {
    "@stoplight/scripts": "4.x.x",
    "@types/jest": "24.x.x",
    "jest": "24.x.x",
    "nodemon": "1.x.x",
    "prettier": "1.x.x",
    "ts-jest": "24.x.x",
    "tslint": "5.12.x",
    "tslint-config-prettier": "1.18.x",
    "tslint-config-stoplight": "1.2.x",
    "tslint-plugin-prettier": "2.0.x",
    "typescript": "3.3.x"
  },
  "lint-staged": {
    "*.{ts,tsx}$": ["yarn lint.fix", "git add"]
  },
  "husky": {
    "hooks": {
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
      "pre-commit": "lint-staged"
    }
  },
  "config": {
    "commitizen": {
      "path": "node_modules/cz-conventional-changelog"
    }
  },
  "commitlint": {
    "extends": ["@commitlint/config-conventional"]
  },
  "prettier": {
    "printWidth": 120,
    "singleQuote": true,
    "trailingComma": "all"
  }
}