Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
refactor, test(package.json): add processing to run test in npm scrip…
Browse files Browse the repository at this point in the history
…ts at commit (close #8)
  • Loading branch information
hitsuji_no_shippo committed Dec 3, 2019
1 parent 45a2c08 commit d8f2985
Show file tree
Hide file tree
Showing 3 changed files with 4,225 additions and 2,012 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
:!author-email:
:author: {author-name}
:!email: {author-email}
:revnumber: v1.3.0
:revdate: 2019-12-03T19:17:01+0900
:revremark: Add log of chnage and convert README
:revnumber: v1.4.0
:revdate: 2019-12-03T19:37:41+0900
:revremark: Add log of Add processing to run test in npm scripts at commit
:doctype: article
:description: gatsby-simple-blog-with-asciidoctor Change Log
:title:
Expand Down Expand Up @@ -43,6 +43,11 @@ ifndef::env-github[:icons: font]

== 0.0.1 (2019-12-03)

=== Refactor

* Add processing to run test in npm scripts at commit.
(close link:{issues-url}/8[#8])

=== Docs

* Add my copyright in LICENSE. (close link:{issues-url}/9[#9])
Expand Down
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^2.0.1",
"gatsby-plugin-eslint": "^2.0.5",
"husky": "^3.1.0",
"jest": "^24.9.0",
"lint-staged": "^9.5.0",
"prettier": "^1.18.2"
},
"homepage": "https://github.com/hitsuji-no-shippo/gatsby-simple-blog-with-asciidoctor",
Expand Down Expand Up @@ -92,5 +94,15 @@
"eslint": "eslint .",
"jest": "jest",
"test": "cross-env NODE_ENV=test yarn run eslint && cross-env NODE_ENV=test yarn run jest"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx}": [
"cross-env NODE_ENV=test yarn run jest --testPathPattern=''"
]
}
}
Loading

0 comments on commit d8f2985

Please sign in to comment.