Skip to content

Commit

Permalink
use semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Dec 8, 2016
1 parent da2cdfb commit a967749
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[ignore]
<PROJECT_ROOT>/lib/.*
.*/node_modules/json5/.*

[include]
./src
Expand Down
20 changes: 15 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- "4"
- "5"
- "6"
before_install:
- npm config set progress false
- '7'
- '6'
- '4'
before_script:
- npm prune
script:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/jedwards1211/es2015-library-skeleton.svg?branch=master)](https://travis-ci.org/jedwards1211/es2015-library-skeleton)
[![Coverage Status](https://coveralls.io/repos/github/jedwards1211/es2015-library-skeleton/badge.svg?branch=master)](https://coveralls.io/github/jedwards1211/es2015-library-skeleton?branch=master)
[![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)

This is my personal skeleton for creating an ES2015 library npm package. You are welcome to use it.

Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "es2015-library-skeleton",
"version": "3.0.0",
"version": "0.0.0-development",
"description": "my personal skeleton for ES2015 library NPM packages",
"main": "lib/index.js",
"scripts": {
Expand All @@ -15,8 +15,8 @@
"build": "rimraf lib && babel src --out-dir lib",
"test": "NODE_ENV=production BABEL_ENV=test nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha",
"prepublish": "npm run lint && flow && npm test && npm run build && npm run copy-flow-files",
"postpublish": "git tag -a v$npm_package_version -m v$npm_package_version && git push origin v$npm_package_version",
"open:coverage": "open coverage/lcov-report/index.html"
"open:coverage": "open coverage/lcov-report/index.html",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"config": {
"mocha": "--compilers js:babel-core/register ./test/**/*.js"
Expand All @@ -33,7 +33,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/jedwards1211/es2015-library-skeleton.git"
"url": "https://github.com/jedwards1211/es2015-library-skeleton.git"
},
"keywords": [
"es2015"
Expand Down Expand Up @@ -69,7 +69,8 @@
"mocha": "^3.2.0",
"nyc": "^10.0.0",
"pre-commit": "^1.1.3",
"rimraf": "^2.5.4"
"rimraf": "^2.5.4",
"semantic-release": "^6.3.2"
},
"dependencies": {},
"pre-commit": [
Expand Down

0 comments on commit a967749

Please sign in to comment.