Skip to content

Instantly share code, notes, and snippets.

@igorkamyshev
Created January 18, 2019 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorkamyshev/7a1f43547cf27460187a0f465b596a43 to your computer and use it in GitHub Desktop.
Save igorkamyshev/7a1f43547cf27460187a0f465b596a43 to your computer and use it in GitHub Desktop.
TS, npm, template
{
...,
"main": "dist/index.js",
"scripts": {
"build": "rimraf dist && tsc",
"prepare": "yarn build",
"ci": "yarn types && yarn test && yarn lint",
"test": "jest",
"types": "tsc --noEmit lib",
"lint": "tslint -p tsconfig.json -c tslint.json",
"pretty": "prettier --write \"lib/**/*.ts\"",
"release": "standard-version"
},
...,
"devDependencies": {
"@commitlint/cli": "^7.3.2",
"@commitlint/config-conventional": "^7.3.1",
"@team-griffin/install-self-peers": "^1.1.1",
"@types/jest": "^23.3.10",
"@types/node": "^10.11.7",
"cz-conventional-changelog": "^2.1.0",
"husky": "^1.3.1",
"jest": "^23.6.0",
"lint-staged": "^8.1.0",
"prettier": "^1.15.3",
"rimraf": "^2.6.3",
"standard-version": "^4.4.0",
"ts-jest": "^23.10.5",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.17.0",
"tslint-eslint-rules": "^5.4.0",
"typescript": "^3.1.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && yarn test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.ts": [
"yarn pretty",
"yarn lint",
"git add"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"prettier": {
"tabWidth": 2,
"semi": false,
"trailingComma": "all",
"singleQuote": true
},
"publishConfig": {
"access": "public"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment