Skip to content

Commit

Permalink
feat: move husky settings into package.json (#104)
Browse files Browse the repository at this point in the history
Settings are minor, and do not require a dedicated file.

BREAKING CHANGE: .huskyrc.js moved into package.json file
  • Loading branch information
iamturns committed Apr 10, 2019
1 parent f22df36 commit e4eda2d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .huskyrc.js

This file was deleted.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"lint--watch": "onchange 'src/**/*' --initial --kill --delay 1000 -- npm run lint",
"lint-eslint": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./",
"lint-markdown": "markdownlint --ignore coverage --ignore dist --ignore examples --ignore node_modules '**/*.md' '.**/**/*.md'",
"pre-commit": "lint-staged",
"prepublish": "rimraf dist && npm run build",
"start": "node --require dotenv/config dist/create-exposed-app-cli.js",
"start--dev": "NODE_ENV=development npm run start",
Expand All @@ -50,6 +49,11 @@
"typecheck--watch": "npm run typecheck -- --watch",
"validate": "run-p --print-label lint typecheck test build"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"dependencies": {
"asyncro": "^3.0.0",
"chalk": "^2.4.2",
Expand Down
5 changes: 0 additions & 5 deletions templates/.huskyrc.js.template

This file was deleted.

6 changes: 5 additions & 1 deletion templates/package.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"lint--watch": "onchange 'src/**/*' --initial --kill --delay 1000 -- npm run lint",
"lint-eslint": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./",
"lint-markdown": "markdownlint --ignore coverage --ignore dist --ignore node_modules '**/*.md' '.**/**/*.md'",
"pre-commit": "lint-staged",
"prepublish": "rimraf dist && npm run build",
"start": "node --require dotenv/config dist/<%- projectPackageName %>.js",
"start--dev": "NODE_ENV=development npm run start",
Expand All @@ -46,6 +45,11 @@
"typecheck--watch": "npm run typecheck -- --watch",
"validate": "run-p --print-label lint typecheck test build"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"dependencies": {
"dotenv": "^7.0.0"
},
Expand Down

0 comments on commit e4eda2d

Please sign in to comment.