Skip to content

Commit

Permalink
feat: add precommit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
codeaholicguy committed Jun 16, 2018
1 parent e1a01d5 commit 7fda29c
Show file tree
Hide file tree
Showing 2 changed files with 367 additions and 9 deletions.
6 changes: 6 additions & 0 deletions package.json
Expand Up @@ -36,6 +36,8 @@
"@types/node-emoji": "^1.8.0",
"chai": "^4",
"globby": "^8",
"husky": "^0.14.3",
"lint-staged": "^7.2.0",
"mocha": "^5",
"nyc": "^12",
"ts-node": "^6",
Expand Down Expand Up @@ -69,8 +71,12 @@
"posttest": "tsc -p test --noEmit && tslint -p test -t stylish",
"prepack": "rm -rf lib && tsc && oclif-dev manifest && oclif-dev readme",
"prepare": "rm -rf lib && tsc",
"precommit": "lint-staged",
"test": "nyc mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif-dev readme && git add README.md"
},
"lint-staged": {
"*.ts": ["tsc"]
},
"types": "lib/index.d.ts"
}

0 comments on commit 7fda29c

Please sign in to comment.