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

Move to TypeScript #83

Merged
merged 33 commits into from
Jan 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
11b8e0c
Move to TypeScript, part 1
dmythro Mar 7, 2021
9948f09
Update .github/CODEOWNERS
dmythro Mar 7, 2021
db5b84e
feat: remove punycode and ditch getUnicode(); Jest with Typescript
dmythro Mar 9, 2021
b6fa9aa
feat: new interfaces; scripts: copy, csv
dmythro Mar 9, 2021
a49f579
feat: fix build
dmythro Mar 9, 2021
801a44a
fix: maintainer
dmythro Mar 9, 2021
5822ad5
feat: update types, scripts, build config
dmythro Mar 10, 2021
68cc9e1
feat: delete non-minified JSON from dist
dmythro Mar 10, 2021
52cdb2c
feat: better lint, scripts, log output
dmythro Mar 10, 2021
87f9c9b
fix: import paths, test paths
dmythro Mar 10, 2021
6e6ff91
feat: remove migrated code
dmythro Mar 10, 2021
13295ab
feat: es5 build; version script
dmythro Mar 10, 2021
03007a0
feat: update scripts
dmythro Mar 10, 2021
722d943
feat: es5 build+min; tests; typings
dmythro Mar 10, 2021
666efa8
feat: add "typescript" to keywords
dmythro Mar 10, 2021
134b5bd
feat: split build tasks into files
dmythro Mar 10, 2021
f35580d
feat: generate SQL
dmythro Mar 10, 2021
82ead16
feat: relative file names in logs
dmythro Mar 10, 2021
659025a
feat: remove old code for SQL
dmythro Mar 10, 2021
a638840
feat: refactor sources, move files
dmythro Mar 21, 2021
03024a7
feat: data modules
dmythro Mar 22, 2021
d8ceca8
feat: add es5 d.ts
dmythro Mar 22, 2021
8029851
feat: improve declaration file, move ES5 export tests to TypeScript
dmythro Mar 22, 2021
1a54341
feat: add declaration refecence
dmythro Mar 22, 2021
0887c0a
feat: generate more type definitions
dmythro Mar 22, 2021
0389219
feat: support transcontinental countries
dmythro Mar 22, 2021
1e1450f
feat: format the data file
dmythro Mar 22, 2021
d68acd5
feat: file size stats
dmythro Mar 22, 2021
dfd3b00
feat: refactor currency to array of strings
dmythro Mar 22, 2021
709f6cc
feat: refactor phone to array of numbers
dmythro Mar 22, 2021
b66f0a5
feat: a better description
dmythro Mar 22, 2021
f1c7f02
feat: generate minimal files; better build logs
dmythro Mar 22, 2021
6de78c0
feat: bump modules
dmythro Jan 2, 2022
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
11 changes: 7 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
"jest": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"ignorePatterns": ["**/dist/*.min.*"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"ignorePatterns": ["*.js", "*.min.*"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script"
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-explicit-any": ["warn"]
}
}
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @z-ax
* @dmythro
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ coverage/*
*.json

*.min.*
*.test.*
7 changes: 4 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "Countries",
"version": "2.6.1",
"version": "3.0.0",
"homepage": "http://annexare.github.io/Countries/",
"author": {
"name": "Dmytro",
"email": "[email protected]",
"url": "https://github.com/z-ax"
"url": "https://github.com/dmythro"
},
"description": "Continents & countries: ISO 3166-1 alpha-2 code, name, ISO 639-1 languages, capital, currency, native name, phone. JSON, CSV and SQL.",
"keywords": [
Expand All @@ -22,7 +22,8 @@
"sql",
"ISO 3166-1",
"ISO 639-1",
"node"
"node",
"typescript"
],
"license": "MIT"
}
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "annexare/countries-list",
"version": "2.6.1",
"version": "3.0.0",
"description": "Continents & countries: ISO 3166-1 alpha-2 code, name, ISO 639-1 languages, capital, currency, native name, phone. JSON, CSV and SQL.",
"type": "library",
"keywords": [
Expand All @@ -17,13 +17,14 @@
"sql",
"ISO 3166-1",
"ISO 639-1",
"node"
"node",
"typescript"
],
"authors": [
{
"name": "Dmytro",
"email": "[email protected]",
"homepage": "https://github.com/z-ax"
"homepage": "https://github.com/dmythro"
}
],
"license": "MIT",
Expand Down
File renamed without changes.
File renamed without changes.
Loading