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
1 parent d8096aa commit 4b7e2da
Show file tree
Hide file tree
Showing 6 changed files with 1,084 additions and 809 deletions.
12 changes: 3 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"es6": true,
"node": true
},
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
Expand All @@ -13,6 +13,7 @@
"jsx": true
},
"ecmaVersion": 2017,
"requireConfigFile": false,
"sourceType": "module"
},
"plugins": [
Expand Down Expand Up @@ -166,14 +167,7 @@
"import/order": [
2,
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"newlines-between": "never"
}
],
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: 30 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,58 +13,62 @@
},
"homepage": "https://github.com/streamich/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": {
"@semantic-release/changelog": "3.0.6",
"@semantic-release/git": "8.0.0",
"@babel/core": "7.13.8",
"@babel/eslint-parser": "7.13.8",
"@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 4b7e2da

Please sign in to comment.