drop node 6 support

This commit is contained in:
bezoerb 2018-12-18 12:50:39 +01:00
parent 340db21f6a
commit b93d67e659
3 changed files with 24 additions and 17 deletions

View File

@ -1,8 +1,7 @@
sudo: false sudo: false
language: node_js language: node_js
node_js: node_js:
- "10" - '10'
- "8" - '8'
- "6"
after_success: after_success:
- npm run coveralls - npm run coveralls

View File

@ -1,14 +1,13 @@
# https://www.appveyor.com/docs/appveyor-yml # https://www.appveyor.com/docs/appveyor-yml
version: "{build}" version: '{build}'
clone_depth: 10 clone_depth: 10
environment: environment:
matrix: matrix:
- nodejs_version: "10" - nodejs_version: '10'
- nodejs_version: "8" - nodejs_version: '8'
- nodejs_version: "6"
install: install:
- ps: Install-Product node $env:nodejs_version - ps: Install-Product node $env:nodejs_version

View File

@ -4,8 +4,8 @@
"description": "Inline critical-path css and load the existing stylesheets asynchronously", "description": "Inline critical-path css and load the existing stylesheets asynchronously",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "xo && nyc mocha test/index.js --timeout 5000", "test": "xo && jest --coverage",
"coveralls": "nyc report --reporter=text-lcov | coveralls" "coveralls": "cat ./coverage/lcov.info | coveralls"
}, },
"files": [ "files": [
"index.js", "index.js",
@ -35,6 +35,7 @@
"detect-indent": "5.0.0", "detect-indent": "5.0.0",
"dom-serializer": "0.1.0", "dom-serializer": "0.1.0",
"fg-loadcss": "^2.0.1", "fg-loadcss": "^2.0.1",
"fs-extra": "^7.0.1",
"get-stdin": "^6.0.0", "get-stdin": "^6.0.0",
"indent-string": "^3.2.0", "indent-string": "^3.2.0",
"lodash": "^4.17.11", "lodash": "^4.17.11",
@ -49,23 +50,31 @@
"chai": "^4.0.2", "chai": "^4.0.2",
"concat-stream": "^1.6.2", "concat-stream": "^1.6.2",
"coveralls": "^3.0.2", "coveralls": "^3.0.2",
"execa": "^1.0.0",
"jest": "^23.6.0",
"mocha": "^5.2.0", "mocha": "^5.2.0",
"mockery": "^2.1.0", "mockery": "^2.1.0",
"nyc": "^13.0.1", "nyc": "^13.0.1",
"read-package-json": "^2.0.10", "read-package-json": "^2.0.10",
"read-pkg-up": "^4.0.0",
"xo": "^0.23.0" "xo": "^0.23.0"
}, },
"xo": { "xo": {
"space": 4, "space": 2,
"envs": [ "prettier": true
"node", },
"mocha" "jest": {
], "roots": [
"ignores": [ ""
"test/*.js"
] ]
}, },
"prettier": {
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 120,
"bracketSpacing": false
},
"engines": { "engines": {
"node": ">= 6" "node": ">= 8"
} }
} }