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

Commit

Permalink
perf: ⚡️ package upgrades + babel/core|eslint-pareser + husky
Browse files Browse the repository at this point in the history
Breaking change node>=10.8, and husky@5 + babel-eslint deprecated to
babel/core+eslint-parser

This would come _after_ streamich#256

```bash
@semantic-release/changelog@5.0.1
@semantic-release/git@9.0.0
chai@4.3.0
eslint@7.21.0
eslint-plugin-jest@24.1.5
eslint-plugin-jsdoc@32.2.0
eslint-plugin-promise@4.3.1
eslint-plugin-unicorn@28.0.2
husky@5.1.1
inquirer@8.0.0
mocha@8.3.0
semantic-release@17.4.0
```

Breaking Changes covered by:

```json
  "engines": {
    "node": ">=10.18"
  },
```

`babel-eslint` deprecated
- `@babel/core`
- `@babel/eslint-parser`

`husky`
- 5.x upgrade with `.husky` folder and ported `pre-commit` and `prepare-commit-msg`

BREAKING CHANGE: 🧨 ⬆️ node>=10.8, husky@5, 🔥️ babel-eslint 📦️ @babel/core|eslint-parser
  • Loading branch information
JeromeFitz committed Feb 28, 2021
2 parents 2aa7445 + 4b7e2da commit 0e888e1
Show file tree
Hide file tree
Showing 6 changed files with 866 additions and 545 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"jsx": true
},
"ecmaVersion": 2017,
"sourceType": "module",
"requireConfigFile": false
"requireConfigFile": false,
"sourceType": "module"
},
"plugins": [
"no-use-extend-native",
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
[ -n "$CI" ] && exit 0
. "$(dirname "$0")/_/husky.sh"

yarn lint
4 changes: 4 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ -n "$CI" ] && exit 0

exec < /dev/tty
node ./lib/cli.js --hook || true
56 changes: 29 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jeromefitz/git-cz",
"version": "4.8.0-develop.1",
"version": "4.8.0-develop.2",
"description": "Semantic emojified git commit, git-cz.",
"main": "dist/cz.js",
"bin": {
Expand All @@ -13,60 +13,62 @@
},
"homepage": "https://github.com/jeromefitz/git-cz",
"license": "Unlicense",
"engines": {
"node": ">=10.18"
},
"scripts": {
"lint": "yarn eslint",
"clean": "rimraf dist binaries",
"build": "yarn build:cli && yarn build:cz",
"build:binaries": "mkdirp binaries && pkg lib/cli.js --out-path binaries",
"build:cli": "browserify --node -o dist/cli.js lib/cli.js",
"build:cz": "browserify --node -o dist/cz.js --standalone prompter lib/cz.js",
"build:readme": "mmarkdown",
"build:binaries": "mkdirp binaries && pkg lib/cli.js --out-path binaries",
"test": "jest --maxWorkers 2",
"test:dev": "jest --watch",
"test:coverage": "jest --coverage",
"build": "yarn build:cli && yarn build:cz",
"clean": "rimraf dist binaries",
"eslint": "eslint lib/*.js",
"lint": "yarn eslint",
"postinstall": "is-ci || husky install",
"postpublish": "pinst --enable",
"prepublishOnly": "pinst --disable",
"release": "semantic-release",
"eslint": "eslint lib/*.js"
"test:coverage": "jest --coverage",
"test:dev": "jest --watch",
"test": "jest --maxWorkers 2"
},
"devDependencies": {
"@babel/core": "7.13.8",
"@babel/eslint-parser": "7.13.8",
"@semantic-release/changelog": "3.0.6",
"@semantic-release/git": "8.0.0",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/git": "9.0.0",
"any-shell-escape": "0.1.1",
"browserify": "17.0.0",
"chai": "4.2.0",
"chai": "4.3.0",
"chalk": "4.1.0",
"commitizen": "4.2.3",
"eslint": "7.17.0",
"eslint": "7.21.0",
"eslint-plugin-babel": "5.3.1",
"eslint-plugin-filenames": "1.3.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.1.3",
"eslint-plugin-jsdoc": "30.7.13",
"eslint-plugin-jest": "24.1.5",
"eslint-plugin-jsdoc": "32.2.0",
"eslint-plugin-no-use-extend-native": "0.5.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-unicorn": "23.0.0",
"eslint-plugin-promise": "4.3.1",
"eslint-plugin-unicorn": "28.0.2",
"fuzzy": "0.1.3",
"global": "4.4.0",
"husky": "4.3.0",
"inquirer": "7.3.3",
"husky": "5.1.1",
"inquirer": "8.0.0",
"inquirer-list-search-prompt": "1.0.2",
"is-ci": "3.0.0",
"jest": "26.6.3",
"minimist": "1.2.5",
"mocha": "8.2.1",
"mocha": "8.3.0",
"pinst": "2.1.6",
"pkg": "4.4.9",
"rimraf": "3.0.2",
"semantic-release": "16.0.4",
"semantic-release": "17.4.0",
"signale": "1.4.0",
"spawncommand": "2.2.0",
"word-wrap": "1.2.3"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint",
"prepare-commit-msg": "exec < /dev/tty && node ./lib/cli.js --hook || true"
}
},
"config": {
"commitizen": {
"path": "./dist/cz.js"
Expand Down
Loading

0 comments on commit 0e888e1

Please sign in to comment.