File tree Expand file tree Collapse file tree 4 files changed +23
-10
lines changed
Expand file tree Collapse file tree 4 files changed +23
-10
lines changed Original file line number Diff line number Diff line change 11[ignore]
22<PROJECT_ROOT>/lib/.*
3+ .*/node_modules/json5/.*
34
45[include]
56./src
Original file line number Diff line number Diff line change 11language : node_js
2+ cache :
3+ directories :
4+ - node_modules
5+ notifications :
6+ email : false
27node_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
813script :
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+$/
Original file line number Diff line number Diff line change 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
67This is my personal skeleton for creating an ES2015 library npm package. You are welcome to use it.
78
Original file line number Diff line number Diff line change 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" : {
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"
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"
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" : [
You can’t perform that action at this time.
0 commit comments