Skip to content

Commit f6d74f6

Browse files
committed
Add coveralls and badges
1 parent 139bb4a commit f6d74f6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# gettext-pythonic
22

3+
[![Build Status](https://travis-ci.org/vphantom/gettext-pythonic.svg?branch=master)](https://travis-ci.org/vphantom/gettext-pythonic) [![Coverage Status](https://coveralls.io/repos/github/vphantom/gettext-pythonic/badge.svg?branch=master)](https://coveralls.io/github/vphantom/gettext-pythonic?branch=master)
4+
35
Tiny [po2json](https://github.com/mikeedwards/po2json)-compatible gettext with variable substitution.
46

57
This module allows you to use xgettext to build POT files, poedit (or online alternatives) to create PO translations, [po2json](https://github.com/mikeedwards/po2json) at build time to create JavaScript-friendly JSON representations of those PO files, while using a simple gettext() or __() invocation.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Tiny po2json-compatible gettext with variable substitution",
55
"main": "gettext-pythonic.js",
66
"scripts": {
7-
"test": "node test.js"
7+
"test": "istanbul cover --print none --report lcovonly test.js && cat ./coverage/lcov.info |coveralls && rm -fr ./coverage"
88
},
99
"repository": {
1010
"type": "git",
@@ -17,6 +17,7 @@
1717
},
1818
"homepage": "https://github.com/vphantom/gettext-pythonic#readme",
1919
"devDependencies": {
20+
"coveralls": "^2.11.9",
2021
"eslint": "^2.6.0",
2122
"faucet": "0.0.1",
2223
"istanbul": "^0.4.2",

0 commit comments

Comments
 (0)