Skip to content

Commit 940df3c

Browse files
authored
add support for detecting currencies with 3 decimal digits and comma decimal separator (#8)
1 parent 3f9ed28 commit 940df3c

13 files changed

Lines changed: 1742 additions & 1161 deletions

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ CONTRIBUTING.md
3535
dist/test/
3636
dist/example/
3737
dist/scripts/
38-
dist/currenciesSymbols.json
3938
# config files
4039
tslint.json
4140
.gitignore

.travis.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,39 @@ node_js:
55
- "8"
66
- "10"
77
- "12"
8+
- "14"
9+
- "15"
810

911
install:
1012
- npm install
1113

12-
before_script:
13-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
14-
- chmod +x ./cc-test-reporter
15-
- ./cc-test-reporter before-build
14+
before_script: >
15+
node_version=$(node -v);
16+
if [ ${node_version:1:1} = 14 ]; then
17+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
18+
chmod +x ./cc-test-reporter
19+
./cc-test-reporter before-build
20+
fi
1621
17-
script:
18-
- npm run build && npm run cover
22+
script: >
23+
node_version=$(node -v);
24+
if [ ${node_version:1:1} = 14 ]; then
25+
npm run build && npm run test:cover;
26+
else
27+
npm run build && npm run test:unit;
28+
fi
1929
20-
after_script:
21-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
30+
after_script: >
31+
node_version=$(node -v);
32+
if [ ${node_version:1:1} = 14 ]; then
33+
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
34+
fi
2235
2336
jobs:
2437
include:
2538
- stage: npm release
2639
if: tag IS present
27-
node_js: "6"
40+
node_js: "14"
2841
script: npm run build
2942
deploy:
3043
provider: npm

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![Npm Version](https://img.shields.io/npm/v/price-extractor.svg?style=popout)](https://www.npmjs.com/package/price-extractor)
2+
![node](https://img.shields.io/node/v-lts/price-extractor)
23
[![Build Status](https://travis-ci.org/PruvoNet/price-extractor.svg?branch=master)](https://travis-ci.org/PruvoNet/price-extractor)
34
[![Test Coverage](https://api.codeclimate.com/v1/badges/64f26f52c548c8d1e010/test_coverage)](https://codeclimate.com/github/PruvoNet/price-extractor/test_coverage)
45
[![Maintainability](https://api.codeclimate.com/v1/badges/64f26f52c548c8d1e010/maintainability)](https://codeclimate.com/github/PruvoNet/price-extractor/maintainability)

0 commit comments

Comments
 (0)