Skip to content

Commit a967749

Browse files
committed
use semantic-release
1 parent da2cdfb commit a967749

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[ignore]
22
<PROJECT_ROOT>/lib/.*
3+
.*/node_modules/json5/.*
34

45
[include]
56
./src

.travis.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
language: node_js
2+
cache:
3+
directories:
4+
- node_modules
5+
notifications:
6+
email: false
27
node_js:
3-
- "4"
4-
- "5"
5-
- "6"
6-
before_install:
7-
- npm config set progress false
8+
- '7'
9+
- '6'
10+
- '4'
11+
before_script:
12+
- npm prune
813
script:
914
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
15+
after_success:
16+
- npm run semantic-release
17+
branches:
18+
except:
19+
- /^v\d+\.\d+\.\d+$/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/jedwards1211/es2015-library-skeleton.svg?branch=master)](https://travis-ci.org/jedwards1211/es2015-library-skeleton)
44
[![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)
5+
[![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)
56

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

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "es2015-library-skeleton",
3-
"version": "3.0.0",
3+
"version": "0.0.0-development",
44
"description": "my personal skeleton for ES2015 library NPM packages",
55
"main": "lib/index.js",
66
"scripts": {
@@ -15,8 +15,8 @@
1515
"build": "rimraf lib && babel src --out-dir lib",
1616
"test": "NODE_ENV=production BABEL_ENV=test nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha",
1717
"prepublish": "npm run lint && flow && npm test && npm run build && npm run copy-flow-files",
18-
"postpublish": "git tag -a v$npm_package_version -m v$npm_package_version && git push origin v$npm_package_version",
19-
"open:coverage": "open coverage/lcov-report/index.html"
18+
"open:coverage": "open coverage/lcov-report/index.html",
19+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
2020
},
2121
"config": {
2222
"mocha": "--compilers js:babel-core/register ./test/**/*.js"
@@ -33,7 +33,7 @@
3333
},
3434
"repository": {
3535
"type": "git",
36-
"url": "git+https://github.com/jedwards1211/es2015-library-skeleton.git"
36+
"url": "https://github.com/jedwards1211/es2015-library-skeleton.git"
3737
},
3838
"keywords": [
3939
"es2015"
@@ -69,7 +69,8 @@
6969
"mocha": "^3.2.0",
7070
"nyc": "^10.0.0",
7171
"pre-commit": "^1.1.3",
72-
"rimraf": "^2.5.4"
72+
"rimraf": "^2.5.4",
73+
"semantic-release": "^6.3.2"
7374
},
7475
"dependencies": {},
7576
"pre-commit": [

0 commit comments

Comments
 (0)