Skip to content

Commit

Permalink
chore(release): setup semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
niklashigi committed Dec 24, 2017
1 parent b191698 commit 9c5dc04
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: node_js
node_js: 8
cache:
directories:
- ~/.npm
- node_modules
script:
- npm run lint
- npm run test
after_success:
- npm run coverage
- npm run build
- npm run release
branches:
except:
- /^v\d+\.\d+\.\d+$/
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "contro",
"version": "1.0.0",
"version": "0.0.0-semantically-released",
"description": "Unified game controls made easy.",
"main": "dist/contro.esm.js",
"unpkg": "dist/contro.js",
"scripts": {
"build": "rollup -c && uglifyjs build/contro.js -cm > build/contro.min.js",
"lint": "tslint -p .",
"test": "nyc mocha src/**/*.spec.ts --require ts-node/register --watch-extensions ts",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"build": "rollup -c && uglifyjs build/contro.js -cm > build/contro.min.js",
"release": "semantic-release",
"clean": "rimraf .nyc_output coverage dist"
},
"repository": "shroudedcode/contro",
Expand Down Expand Up @@ -41,7 +42,8 @@
"ts-node": "^4.1.0",
"tslint": "^5.8.0",
"typescript": "^2.6.2",
"uglify-es": "^3.2.2"
"uglify-es": "^3.2.2",
"semantic-release": "^11.0.2"
},
"dependencies": {}
}

0 comments on commit 9c5dc04

Please sign in to comment.