Skip to content

Commit 7897aba

Browse files
committed
Adds pre-commit formatting
1 parent cc2281d commit 7897aba

File tree

3 files changed

+59
-1
lines changed

3 files changed

+59
-1
lines changed

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run format

npm-shrinkwrap.json

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"name": "netcentric.github.io",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Netcentric Open Source Site",
5+
"scripts": {
6+
"format": "prettier --write ./content/**/*.md",
7+
"prepare": "husky install"
8+
},
59
"repository": {
610
"type": "git",
711
"url": "git+https://github.com/Netcentric/netcentric.github.io.git"
@@ -18,5 +22,9 @@
1822
"dependencies": {
1923
"@fullhuman/postcss-purgecss": "^4.1.3",
2024
"postcss-cli": "^9.1.0"
25+
},
26+
"devDependencies": {
27+
"husky": "^7.0.4",
28+
"prettier": "^2.6.2"
2129
}
2230
}

0 commit comments

Comments
 (0)