Skip to content

Commit

Permalink
chore: Upgrade dev dependencies (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
offirgolan authored Nov 27, 2021
1 parent 246a2f2 commit ede95ce
Show file tree
Hide file tree
Showing 8 changed files with 3,264 additions and 3,233 deletions.
File renamed without changes.
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"

yarn commitlint --edit "$1"
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"

yarn lint-staged
5 changes: 5 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
spec: './packages/@pollyjs/*/build/node/*.js',
ui: 'bdd',
require: 'tests/node-setup.js'
};
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ module.exports = {
testURL: 'http://localhost:4000/api',
testMatch: ['**/@pollyjs/*/build/jest/*.js'],
roots: ['<rootDir>/packages/@pollyjs'],
reporters: ['jest-tap-reporter']
reporters: ['jest-tap-reporter'],
testEnvironment: 'jsdom'
};
52 changes: 21 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,18 @@
"workspaces": [
"packages/@pollyjs/*"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"linters": {
"*.js": [
"eslint --fix",
"git add"
],
"*.{json,md,html,yml,css}": [
"prettier --ignore-path .eslintignore --write",
"git add"
]
},
"globOptions": {
"dot": true
}
"*.js": [
"eslint --fix",
"git add"
],
"*.{json,md,html,yml,css}": [
"prettier --ignore-path .eslintignore --write",
"git add"
]
},
"scripts": {
"prepare": "husky install",
"build": "lerna run build --ignore=@pollyjs/ember --parallel",
"build:prod": "NODE_ENV=production yarn build && NODE_ENV=production MINIFY=true yarn build",
"prewatch": "yarn server:build",
Expand All @@ -52,7 +42,7 @@
"test:watch": "testem",
"test:ci": "testem ci",
"test:build": "lerna run test:build --parallel",
"test:node": "mocha --opts tests/mocha.opts",
"test:node": "mocha",
"test:jest": "jest",
"test:ember": "lerna run test --stream --no-prefix --scope=@pollyjs/ember",
"server:build": "lerna run build --scope=@pollyjs/node-server --scope=@pollyjs/utils",
Expand All @@ -73,14 +63,14 @@
"@babel/preset-env": "^7.16.4",
"@babel/runtime": "^7.16.3",
"@babel/runtime-corejs2": "^7.16.3",
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
"@commitlint/config-lerna-scopes": "^8.0.0",
"@commitlint/travis-cli": "^8.0.0",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@commitlint/config-lerna-scopes": "^15.0.0",
"@commitlint/travis-cli": "^15.0.0",
"chai": "^4.3.4",
"compression": "^1.7.4",
"contributor-faces": "^1.1.0",
"deepmerge": "^3.2.0",
"deepmerge": "^4.2.0",
"docsify-cli": "^4.4.3",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0",
Expand All @@ -89,15 +79,15 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.27.1",
"formdata-polyfill": "^4.0.10",
"gh-pages": "^2.0.1",
"gh-pages": "^3.2.3",
"har-validator": "^5.1.3",
"husky": "^2.4.0",
"jest": "^24.8.0",
"husky": "^7.0.4",
"jest": "^27.3.1",
"jest-tap-reporter": "^1.9.0",
"lerna": "^3.15.0",
"lerna": "^4.0.0",
"lerna-alias": "^3.0.2",
"lint-staged": "^8.2.0",
"mocha": "^6.1.4",
"lint-staged": "^12.1.2",
"mocha": "^9.1.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.0",
"rimraf": "^3.0.2",
Expand Down
3 changes: 0 additions & 3 deletions tests/mocha.opts

This file was deleted.

Loading

0 comments on commit ede95ce

Please sign in to comment.