diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..9c62828 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +node_modules +coverage +dist diff --git a/prettier.config.js b/.prettierrc.js similarity index 100% rename from prettier.config.js rename to .prettierrc.js diff --git a/.travis.yml b/.travis.yml index ba01b79..5dd8a0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,14 @@ -sudo: false language: node_js -cache: - directories: - - ~/.npm +cache: npm notifications: email: false -node_js: '8' +node_js: + - 10.14 + - 12 + - node install: npm install script: npm run validate -after_success: - - npx codecov - - npx -p semantic-release@7 -c "semantic-release pre && npm publish && semantic-release post" +after_success: kcd-scripts travis-after-success branches: - only: master + only: + - master diff --git a/appveyor.yml b/appveyor.yml index 5e4c315..6bc0c29 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,20 +1,15 @@ environment: matrix: - - node_version: "8" - + - node_version: '10.14' + - node_version: '12' + - node_version: '13' branches: only: - master - install: - ps: Install-Product node $env:node_version - - npm i - -test_script: - - node --version - - npm test - + - npm install +test_script: npm run validate cache: - ~/.npm - build: off diff --git a/jest.config.js b/jest.config.js index 257c5ce..7f5d5d6 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,6 @@ -const jestConfig = require('kcd-scripts/config').jest +const jest = require('kcd-scripts/jest') -jestConfig.coveragePathIgnorePatterns = jestConfig.coveragePathIgnorePatterns.concat( - ['/bin/'], -) -module.exports = jestConfig +module.exports = { + ...jest, + coveragePathIgnorePatterns: [...jest.coveragePathIgnorePatterns, '/bin/'], +} diff --git a/package.json b/package.json index 644eef1..7ae5316 100644 --- a/package.json +++ b/package.json @@ -8,11 +8,15 @@ "cross-env-shell": "src/bin/cross-env-shell.js" }, "engines": { - "node": ">=8.0" + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" }, "scripts": { "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" }, "husky": { @@ -32,10 +36,10 @@ "author": "Kent C. Dodds (http://kentcdodds.com/)", "license": "MIT", "dependencies": { - "cross-spawn": "^7.0.0" + "cross-spawn": "^7.0.1" }, "devDependencies": { - "kcd-scripts": "^1.8.0" + "kcd-scripts": "^4.1.0" }, "eslintConfig": { "extends": "./node_modules/kcd-scripts/eslint.js"