Skip to content

Commit

Permalink
replace custom release scripts in favour of np (#55)
Browse files Browse the repository at this point in the history
* replace custom release scripts in favour of np

* lint only on node versions > 4
  • Loading branch information
zinserjan committed Oct 8, 2016
1 parent 3bd165e commit 4058740
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 58 deletions.
1 change: 1 addition & 0 deletions .npmrc
@@ -0,0 +1 @@
message = "Version %s"
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -15,5 +15,4 @@ before_script:
- "npm install mocha@$MOCHA_VERSION"

script:
- if [ "${TRAVIS_NODE_VERSION}" != "0.12" ]; then npm run lint; fi
- npm run test
9 changes: 7 additions & 2 deletions package.json
Expand Up @@ -15,8 +15,11 @@
"clean-lib": "del-cli \"lib/**\" \"!lib\" \"!lib/reporters\" \"!lib/utils.js\" \"!lib/reporters/base.js\"",
"clean-tmp": "del-cli \".tmp/**\"",
"build": "npm run clean-lib && babel ./src -d lib",
"lint": "eslint src test bin",
"test": "npm run clean-tmp && npm run build && mocha --timeout 10000 --recursive --require test/setup.js \"test/**/*.test.js\""
"lint": "node-version-gte-4 && eslint src test bin || echo Node version too old to run linting",
"test": "npm run clean-tmp && npm run build && mocha --timeout 10000 --recursive --require test/setup.js \"test/**/*.test.js\"",
"posttest": "npm run lint",
"prepublish": "npm run build",
"release": "np"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -49,6 +52,8 @@
"eslint-config-airbnb-base": "^4.0.2",
"eslint-plugin-import": "^1.11.0",
"mocha": "^3.0.0",
"node-version-check": "^2.1.1",
"np": "^2.9.0",
"sinon": "^1.17.3",
"webpack": "^1.12.13"
},
Expand Down
9 changes: 0 additions & 9 deletions scripts/build.js

This file was deleted.

46 changes: 0 additions & 46 deletions scripts/release.sh

This file was deleted.

0 comments on commit 4058740

Please sign in to comment.