Skip to content

Commit 2630008

Browse files
committed
Husky
1 parent 0d78c00 commit 2630008

File tree

6 files changed

+1205
-1152
lines changed

6 files changed

+1205
-1152
lines changed

.husky/_/pre-commit

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env sh
2+
3+
set -e
4+
5+
update_version(){
6+
if [[ "$DONT_BUMP_VERSION" -ne "1" ]]
7+
then
8+
echo " Bumping version.. "
9+
else
10+
echo "Version will not be bumped since variable DONT_BUMP_VERSION is set."
11+
exit 0
12+
fi
13+
14+
old_version=`cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]'`
15+
version_split=( ${old_version//./ } )
16+
17+
#increment the number at the 3rd position ( 0,1,2 )
18+
#there is a problem with incrementaion if var is 0
19+
((++version_split[2]))
20+
21+
new_version="${version_split[0]}.${version_split[1]}.${version_split[2]}"
22+
23+
# overwrite it in the package.json file
24+
sed -i -e "0,/$old_version/s/$old_version/$new_version/" package.json
25+
}
26+
27+
# show off the old version
28+
npm version | head -1
29+
30+
update_version
31+
32+
# show off the updated version
33+
npm version | head -1
34+
35+
# track the change
36+
git add package.json

.yarn/releases/yarn-4.0.2.cjs renamed to .yarn/releases/yarn-4.2.1.cjs

Lines changed: 334 additions & 333 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-4.0.2.cjs
3+
yarnPath: .yarn/releases/yarn-4.2.1.cjs

package.json

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
11
{
2-
"name": "resume",
3-
"version": "3.0.24",
4-
"type": "module",
5-
"homepage": "https://najwer23.github.io/resume/",
6-
"scripts": {
7-
"deploy": "npm version patch --force && yarn run build && gh-pages -d build && rimraf build",
8-
"start": "vite --open --host",
9-
"build": "tsc && vite build",
10-
"preview": "yarn build && vite preview --open --host",
11-
"god": "ncu -u && yarn install && yarn run start"
12-
},
13-
"devDependencies": {
14-
"@emotion/react": "^11.11.4",
15-
"@emotion/styled": "^11.11.5",
16-
"@fontsource/mulish": "^5.0.17",
17-
"@fortawesome/fontawesome-svg-core": "^6.5.1",
18-
"@fortawesome/free-brands-svg-icons": "^6.5.1",
19-
"@fortawesome/free-regular-svg-icons": "^6.5.1",
20-
"@fortawesome/free-solid-svg-icons": "^6.5.1",
21-
"@fortawesome/react-fontawesome": "^0.2.0",
22-
"@types/node": "^20.12.2",
23-
"@types/react": "^18.2.73",
24-
"@types/react-dom": "^18.2.23",
25-
"@typescript-eslint/eslint-plugin": "^7.4.0",
26-
"@typescript-eslint/parser": "^7.4.0",
27-
"@vitejs/plugin-react": "^4.2.1",
28-
"eslint": "^8.57.0",
29-
"eslint-plugin-react-hooks": "^4.6.0",
30-
"eslint-plugin-react-refresh": "^0.4.6",
31-
"gh-pages": "^6.1.1",
32-
"najwer23storybook": "^4.1.69",
33-
"react": "^18.2.0",
34-
"react-dom": "^18.2.0",
35-
"react-router-dom": "^6.22.3",
36-
"rimraf": "^5.0.5",
37-
"typescript": "^5.4.3",
38-
"vite": "^5.2.7"
39-
},
40-
"packageManager": "yarn@4.0.2"
2+
"name": "resume",
3+
"version": "3.1.1",
4+
"type": "module",
5+
"homepage": "https://najwer23.github.io/resume/",
6+
"scripts": {
7+
"deploy": "yarn run build && gh-pages -d build && rimraf build",
8+
"start": "vite --open --host",
9+
"build": "tsc && vite build",
10+
"preview": "yarn build && vite preview --open --host",
11+
"god": "ncu -u && yarn install && yarn run start"
12+
},
13+
"devDependencies": {
14+
"@emotion/react": "^11.11.4",
15+
"@emotion/styled": "^11.11.5",
16+
"@fontsource/mulish": "^5.0.17",
17+
"@fortawesome/fontawesome-svg-core": "^6.5.1",
18+
"@fortawesome/free-brands-svg-icons": "^6.5.1",
19+
"@fortawesome/free-regular-svg-icons": "^6.5.1",
20+
"@fortawesome/free-solid-svg-icons": "^6.5.1",
21+
"@fortawesome/react-fontawesome": "^0.2.0",
22+
"@types/node": "^20.12.2",
23+
"@types/react": "^18.2.73",
24+
"@types/react-dom": "^18.2.23",
25+
"@typescript-eslint/eslint-plugin": "^7.4.0",
26+
"@typescript-eslint/parser": "^7.4.0",
27+
"@vitejs/plugin-react": "^4.2.1",
28+
"eslint": "^8.57.0",
29+
"eslint-plugin-react-hooks": "^4.6.0",
30+
"eslint-plugin-react-refresh": "^0.4.6",
31+
"gh-pages": "^6.1.1",
32+
"husky": "^9.0.11",
33+
"najwer23storybook": "^4.1.69",
34+
"react": "^18.2.0",
35+
"react-dom": "^18.2.0",
36+
"react-router-dom": "^6.22.3",
37+
"rimraf": "^5.0.5",
38+
"typescript": "^5.4.3",
39+
"vite": "^5.2.7"
40+
},
41+
"packageManager": "yarn@4.0.2"
4142
}

src/components/resumeSection/Skills.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const arrSkills = [
3535
"Search Engine Optimization(SEO)",
3636
"a11y",
3737
"SSR",
38-
38+
"Fastify"
3939
];
4040

4141
export const Skills = () => {

0 commit comments

Comments
 (0)