Skip to content

Commit

Permalink
fix: Added semantic.release
Browse files Browse the repository at this point in the history
  • Loading branch information
terkelg committed Oct 5, 2016
1 parent 58120fd commit 1122c32
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
20 changes: 16 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '6'
- 'node'
- '4'
before_install:
- npm i -g npm@latest
- npm i -g npm@^2.0.0
before_script:
- npm prune
script:
- standard
- npm test
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"name": "math-toolbox",
"version": "1.0.0",
"description": "Lightweight and modular math toolbox",
"main": "src/math-toolbox.js",
"version": "0.0.0-semantically-released",
"scripts": {
"build": "NODE_ENV=build rollup -c",
"build:uglify": "npm run build && uglifyjs dist/math-toolbox.js -cm --preamble \"// math-toolbox.js - https://github.com/terkelg/math-toolbox\" > dist/math-toolbox.min.js",
"pretest": "standard",
"test": "jest",
"test:watch": "npm test -- --watch",
"test:coverage": "jest --coverage",
"docs": "documentation build src/math-toolbox.js -f html -o docs"
"docs": "documentation build src/math-toolbox.js -f html -o docs",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -58,10 +59,17 @@
"rollup": "^0.36.1",
"rollup-plugin-babel": "^2.6.1",
"standard": "^8.2.0",
"uglify-js": "^2.7.3"
"uglify-js": "^2.7.3",
"semantic-release": "^4.3.5"
},
"standard": {
"globals": ["expect", "it", "test", "describe"]
"ignore": ["/docs"],
"globals": [
"expect",
"it",
"test",
"describe"
]
},
"config": {
"ghooks": {
Expand Down

0 comments on commit 1122c32

Please sign in to comment.