Skip to content

Commit

Permalink
fix(package): update deps, npm scripts, travis, appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Mar 1, 2017
1 parent d3e6775 commit 3feb635
Show file tree
Hide file tree
Showing 4 changed files with 335 additions and 396 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ language: node_js
node_js:
- "node"
- "6"
- "5"
- "4"
- "0.12"
- "0.10"
Expand All @@ -13,10 +12,10 @@ matrix:
fast_finish: true
allow_failures:
- node_js: "4"
- node_js: "0.10"
- node_js: "0.12"
- node_js: "0.10"

notifications:
email: false

after_success: npm run report-coverage
after_success: bash <(curl -s https://codecov.io/bash)
24 changes: 24 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
environment:
matrix:
# node.js
- nodejs_version: "7"
- nodejs_version: "6"
- nodejs_version: "4"

# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm install

# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm test

# Don't actually build.
build: off
32 changes: 19 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,29 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"lint": "standard --verbose",
"pretest": "npm run lint",
"test": "npm run coverage",
"posttest": "npm run lint:coverage",
"coverage": "nyc node test.js",
"lint:coverage": "nyc check-coverage --lines 100 --branches 100 --statements 100 --functions 100",
"report-coverage": "nyc report --reporter=text-lcov | coveralls",
"lint": "standard **/*.js --fix --verbose",
"test": "npm-run-all -s lint test:*",
"test:api": "nyc --reporter lcov node test.js",
"test:report": "nyc report",
"prerelease": "npm test",
"release": "standard-version --sign --no-verify",
"precommit": "git add --all",
"commit": "git-cz"
"git": "npm-run-all -s git:*",
"git:add": "git add --all",
"git:cz": "git-cz",
"commit": "npm-run-all -s test git"
},
"dependencies": {
"extend-shallow": "^2.0.1"
},
"devDependencies": {
"commitizen": "^2.8.6",
"coveralls": "^2.11.12",
"cz-conventional-changelog": "^1.2.0",
"mukla": "^0.4.1",
"nyc": "^8.1.0",
"npm-run-all": "^4.0.2",
"nyc": "^10.1.2",
"pre-commit": "^1.1.3",
"standard": "^8.1.0",
"standard-version": "^2.4.0"
"standard": "^9.0.0",
"standard-version": "^3.0.0"
},
"files": [
"index.js"
Expand Down Expand Up @@ -79,5 +78,12 @@
"lint": {
"reflinks": true
}
},
"nyc": {
"check-coverage": true,
"statements": 100,
"functions": 100,
"branches": 100,
"lines": 100
}
}
Loading

0 comments on commit 3feb635

Please sign in to comment.