Skip to content

Commit

Permalink
chore(commitzen): added commitzen and husky
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiin committed Feb 17, 2022
1 parent 5f92328 commit 5885d65
Show file tree
Hide file tree
Showing 4 changed files with 1,669 additions and 531 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

exec < /dev/tty && git cz --hook || true
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
112 changes: 64 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,66 @@
{
"name": "url-minify",
"version": "2.2.13",
"description": "Library to shorten url without any api keys",
"scripts": {
"format": "prettier --write \"src/**/*.ts\"",
"minify": "uglifyjs dist/lib.js --compress --mangle -o dist/lib.min.js",
"build": "rimraf dist && tsc -p tsconfig.build.json --declaration && npm run minify && rimraf dist/lib.js",
"test": "jest"
},
"keywords": [
"utils",
"urls",
"shortner",
"minify",
"url",
"shortner",
"node",
"urlshortner",
"shorturl",
"url-shortner",
"node-shorturl"
],
"author": "Rubin Bhandari <roobin.bhandari@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/rubiin/url-minify"
},
"bugs": {
"url": "https://github.com/rubiin/url-minify/issues"
},
"dependencies": {
"axios": "^0.24.0"
},
"main": "dist/lib.min.js",
"devDependencies": {
"@types/jest": "^27.0.3",
"@types/node": "^16.11.9",
"jest": "^27.3.1",
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.7",
"typescript": "^4.5.2",
"uglify-js": "^3.14.3"
},
"publishConfig": {
"access": "public"
}
"name": "url-minify",
"version": "2.2.15",
"description": "Library to shorten url without any api keys",
"scripts": {
"format": "prettier --write \"src/**/*.ts\"",
"minify": "uglifyjs dist/lib.js --compress --mangle -o dist/lib.min.js",
"build": "rimraf dist && tsc -p tsconfig.build.json --declaration && npm run minify && rimraf dist/lib.js",
"test": "jest"
},
"keywords": [
"utils",
"urls",
"shortner",
"minify",
"url",
"shortner",
"node",
"urlshortner",
"shorturl",
"url-shortner",
"node-shorturl"
],
"author": "Rubin Bhandari <roobin.bhandari@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/rubiin/url-minify"
},
"bugs": {
"url": "https://github.com/rubiin/url-minify/issues"
},
"dependencies": {
"axios": "^0.26.0"
},
"main": "dist/lib.min.js",
"devDependencies": {
"@types/jest": "^27.4.0",
"@types/node": "^17.0.18",
"cz-conventional-changelog": "^3.3.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.4",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5",
"uglify-js": "^3.15.1"
},
"publishConfig": {
"access": "public"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write"
],
"*.{json,md,scss,yaml,yml}": [
"prettier --write"
]
}
}
Loading

0 comments on commit 5885d65

Please sign in to comment.