Skip to content

Commit

Permalink
add travis and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
liunian committed Jul 20, 2018
1 parent 0068ec7 commit b5f2370
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
node_js:
- "8"
script:
- npm run coverage
after_success:
- npm run coveralls
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# i18n properties message loader for webpack

[![Build Status](https://travis-ci.org/liunian/message-loader.svg?branch=master)](https://travis-ci.org/liunian/message-loader)

[![Coverage Status](https://coveralls.io/repos/github/liunian/message-loader/badge.svg?branch=master)](https://coveralls.io/github/liunian/message-loader?branch=master)

When import / require `i18n.properties`, import all other properties files in the same directory, and output as json.
Expand Down
40 changes: 40 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
],
"scripts": {
"test": "jest",
"coverage": "jest --coverage"
"coverage": "jest --coverage",
"coveralls": "cat coverage/lcov.info | node_modules/.bin/coveralls"
},
"keywords": [
"webpack",
Expand All @@ -35,6 +36,7 @@
"devDependencies": {
"babel-jest": "^23.4.0",
"babel-preset-env": "^1.7.0",
"coveralls": "^3.0.2",
"jest": "^23.4.1",
"memory-fs": "^0.4.1",
"webpack": "^4.16.1"
Expand All @@ -43,6 +45,8 @@
"node": ">=8"
},
"jest": {
"collectCoverageFrom": ["lib/**/*.js"]
"collectCoverageFrom": [
"lib/**/*.js"
]
}
}

0 comments on commit b5f2370

Please sign in to comment.