Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2.0.0 #50

Merged
merged 30 commits into from
Sep 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3a58b57
Add 'US' as an alternative name for the US
alpn Aug 12, 2023
02bec89
Create node.js.yml
BrodaNoel May 7, 2024
4127007
bring codebase to the modern era
meeDamian Aug 26, 2024
7ccb22a
Add and use xo parser able to handle import attributes
meeDamian Aug 26, 2024
74295a4
Make xo happy
meeDamian Aug 26, 2024
ebcd665
Make sure countries.json always maps string->array[1+]. Closes #47
meeDamian Aug 29, 2024
9651c9d
Add Python port. Close #40
meeDamian Aug 29, 2024
fc426dc
sort out README badges
meeDamian Aug 29, 2024
549a42e
Add modules example to README
meeDamian Aug 29, 2024
eacc294
first batch of countries.json necessary updates
meeDamian Aug 29, 2024
562f4be
Merge branch 'brodanoel/run-tests-on-each-new-pr' into v2.0.0
meeDamian Aug 29, 2024
05f68ef
Move CI to GH Actions
meeDamian Aug 29, 2024
e21eef1
only test on node 20+
meeDamian Aug 29, 2024
9061d45
Add .nvmrc = 20 as per #46
meeDamian Aug 29, 2024
4442dc9
Add name normalisation, as I can't imagine when "Virgin Islands, Brit…
meeDamian Aug 29, 2024
258646f
Handle & in country names as per #45
meeDamian Aug 29, 2024
721e516
Return Türkiye by default
meeDamian Aug 29, 2024
f49158c
Limit extent of output normalisation
meeDamian Aug 29, 2024
2872589
Replace test example
meeDamian Aug 29, 2024
47c5d4d
Make sure South Sudan is handled correctly. Closes #49
meeDamian Aug 29, 2024
cee9bab
Update .gitignore
meeDamian Aug 29, 2024
a25a1b1
pedantic space is pedantic
meeDamian Aug 29, 2024
c4ae409
Make xo happy
meeDamian Aug 29, 2024
0fec536
Fix coverage
meeDamian Aug 29, 2024
279038a
CI on push to selected branches only
meeDamian Aug 29, 2024
e0d8605
automate GH Release publishing to npm
meeDamian Aug 29, 2024
8ed8553
2.0.0-alpha.1
meeDamian Aug 29, 2024
b7c52e2
rid of GH actions complaining
meeDamian Aug 29, 2024
4bd7db8
2.0.0-alpha.2
meeDamian Aug 29, 2024
ea4638f
update README
meeDamian Aug 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move CI to GH Actions
  • Loading branch information
meeDamian committed Aug 29, 2024

Verified

This commit was signed with the committer’s verified signature.
meeDamian Damian Mee
commit 05f68ef58902f65e26e9a3eaa84cae4c382f33c8
36 changes: 19 additions & 17 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -5,27 +5,29 @@ name: Node.js CI

on:
push:
branches: [ "master" ]
branches: ['**']
pull_request:
branches: [ "master" ]
branches: ['master', 'main']

jobs:
build:

test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

node-version: [14, 16, 18, 20]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
# - run: npm run build --if-present
- run: npm test
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -12,11 +12,10 @@
],
"types": "./index.d.ts",
"scripts": {
"test": "xo && check-dts && c8 ava && c8 report --reporter=text-lcov > coverage.lcov",
"test-ava": "ava",
"test-dts": "check-dts",
"test-cover": "c8 ava && c8 report --reporter=text-lcov > coverage.lcov",
"lint": "xo && check-dts",
"build": "babel src -d dist",
"test": "c8 ava && c8 report --reporter=text-lcov > coverage.lcov",
"test-ava": "ava",
"prepublishOnly": "npm run build"
},
"repository": {