Skip to content

Commit

Permalink
build: add semantic release
Browse files Browse the repository at this point in the history
Closes #27.
  • Loading branch information
colinmeinke committed Jul 13, 2017
1 parent 4d1dc89 commit 6a58cf8
Show file tree
Hide file tree
Showing 5 changed files with 700 additions and 30 deletions.
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gitignore
.travis.yml
bundle.js
src/
tests/
yarn.lock
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '7'
- '6'
- '4'
before_script:
- npm prune
script:
- npm run lint
- npm test
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
16 changes: 16 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Internet Systems Consortium license
===================================

Copyright (c) `2017`, `Colin Meinke`

Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.0.0",
"jest": "^20.0.4",
"rimraf": "^2.6.1",
"rollup": "^0.45.2",
"rollup-plugin-babel": "^2.7.1",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-replace": "^1.1.1",
"rollup-plugin-uglify": "^2.0.1",
"semantic-release": "^6.3.6",
"snazzy": "^7.0.0",
"standard": "^10.0.2"
},
Expand All @@ -118,6 +120,10 @@
"commit": "git-cz",
"fix": "standard --fix",
"lint": "standard --verbose | snazzy",
"test": "jest"
}
"prepublish": "npm run tidy && npm run build",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "jest",
"tidy": "rimraf modules cjs dist"
},
"version": "0.0.0-development"
}
Loading

0 comments on commit 6a58cf8

Please sign in to comment.