Skip to content

Commit

Permalink
chore(proj): set up semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinspecker committed Apr 17, 2016
1 parent e52799b commit 9d99b1a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
27 changes: 22 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
node_js:
- '5'
- '4'
- '0.12'
- '0.10'
after_success: npm run-script coveralls
- '5'
- '4'
- '0.12'
- '0.10'
notifications:
email: false
before_script:
- npm prune
script:
- npm run test
after_success:
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
- python travis_after_all.py
- 'export $(cat .to_export_back) &> /dev/null'
- npm run-script coveralls
- npm run semantic-release
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"name": "dscript",
"version": "1.0.0",
"version": "0.0.0-semantic-release",
"description": "Framework agnostic hyperscript",
"main": "lib/index.js",
"scripts": {
"compile": "babel src --out-dir lib",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"lint": "eslint ./ --ignore-pattern node_modules/ --ignore-pattern lib",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "npm run lint && npm run compile && nyc ava"
},
"repository": "dustinspecker/dscript",
"repository": {
"type": "git",
"url": "https://github.com/dustinspecker/dscript.git"
},
"keywords": [
"dscript",
"hyperscript",
Expand Down Expand Up @@ -45,7 +49,8 @@
"eslint-path-formatter": "^0.1.1",
"eslint-plugin-no-use-extend-native": "^0.3.1",
"nyc": "^6.0.0",
"react": "^15.0.0"
"react": "^15.0.0",
"semantic-release": "^4.3.5"
},
"ava": {
"files": [
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

> Framework agnostic hyperscript
Expand Down

0 comments on commit 9d99b1a

Please sign in to comment.