From c80448f758bb90aa84c199fe9d85f7acfc948617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Mon, 23 Mar 2020 16:25:21 +0100 Subject: [PATCH] chore: Update dependencies + use kcd-scripts' husky (#220) * Update dependencies + use kcd-scripts' husky * Update package.json --- .gitattributes | 3 +-- .gitignore | 4 ---- .huskyrc.js | 1 + .prettierignore | 3 +-- .travis.yml | 12 ++++++++++-- package.json | 27 +++++++++++---------------- 6 files changed, 24 insertions(+), 26 deletions(-) create mode 100644 .huskyrc.js diff --git a/.gitattributes b/.gitattributes index 391f0a4e..6313b56c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1 @@ -* text=auto -*.js text eol=lf +* text=auto eol=lf diff --git a/.gitignore b/.gitignore index afbd116c..8e0c70cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,7 @@ node_modules coverage dist -.opt-in -.opt-out .DS_Store -.eslintcache -*.log # these cause more harm than good # when working with contributors diff --git a/.huskyrc.js b/.huskyrc.js new file mode 100644 index 00000000..5e45c45d --- /dev/null +++ b/.huskyrc.js @@ -0,0 +1 @@ +module.exports = require('kcd-scripts/husky') diff --git a/.prettierignore b/.prettierignore index 30117ea2..9c628283 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,3 @@ -package.json node_modules -dist coverage +dist diff --git a/.travis.yml b/.travis.yml index ea153906..fdc18924 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,16 @@ node_js: - 12 - node install: npm install -script: npm run validate -after_success: kcd-scripts travis-after-success +script: + - npm run validate + - npx codecov@3 branches: only: - master + - beta + +jobs: + include: + - stage: release + node_js: 12 + script: kcd-scripts travis-release diff --git a/package.json b/package.json index d12eb0af..a56c0825 100644 --- a/package.json +++ b/package.json @@ -9,18 +9,13 @@ "yarn": ">=1" }, "scripts": { - "format": "kcd-scripts format", "build": "kcd-scripts build", + "format": "kcd-scripts format", "lint": "kcd-scripts lint", + "setup": "npm install && npm run validate -s", "test": "kcd-scripts test", "test:update": "npm test -- --updateSnapshot --coverage", - "validate": "kcd-scripts validate", - "setup": "npm install && npm run validate -s" - }, - "husky": { - "hooks": { - "pre-commit": "kcd-scripts pre-commit" - } + "validate": "kcd-scripts validate" }, "files": [ "dist", @@ -33,11 +28,11 @@ "jest", "jsdom" ], - "author": "Ernesto Garcia (http://gnapse.github.io/)", + "author": "Ernesto Garcia (http://gnapse.github.io)", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.8.3", - "@types/testing-library__jest-dom": "^5.0.0", + "@babel/runtime": "^7.9.2", + "@types/testing-library__jest-dom": "^5.0.2", "chalk": "^3.0.0", "css": "^2.2.4", "css.escape": "^1.5.1", @@ -47,10 +42,10 @@ "redent": "^3.0.0" }, "devDependencies": { - "jest-environment-jsdom-sixteen": "^1.0.0", - "jest-watch-select-projects": "^1.0.0", - "jsdom": "^16.0.1", - "kcd-scripts": "^4.1.0", + "jest-environment-jsdom-sixteen": "^1.0.3", + "jest-watch-select-projects": "^2.0.0", + "jsdom": "^16.2.1", + "kcd-scripts": "^5.6.0", "pretty-format": "^25.1.0" }, "eslintConfig": { @@ -66,7 +61,7 @@ ], "repository": { "type": "git", - "url": "https://github.com/testing-library/jest-dom.git" + "url": "https://github.com/testing-library/jest-dom" }, "bugs": { "url": "https://github.com/testing-library/jest-dom/issues"