Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 'lts/*'
node-version: '20.19.0'
- run: npm i
- run: npm audit --production --level-critical
test:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Package to npmjs
on:
push:
branches:
- main
- master
release:
types: [published]
jobs:
Expand All @@ -13,7 +13,7 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
node-version: '20.19.0'
registry-url: 'https://registry.npmjs.org'
- run: |
if [ -e yarn.lock ]; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release
on:
workflow_run:
workflows: ['Snyk Security Check']
branches: [main]
branches: [master]
types:
- completed
jobs:
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
node-version: '20.19.0'
- name: Install dependencies
run: npm ci
- name: Release
Expand Down
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn format
yarn lint
yarn test
yarn build
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.npmignore
yarn.lock
CONTRIBUTING.md
CONTRIBUTOR_COVENANT.md
test/*
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ yarn add rwanda

<table>
<tr>
<td align="center"><a href="https://github.com/shyakadavis"><img
style="border-radius:50%"
src="https://github.com/shyakadavis.png" width="100px;" alt="Shyaka Davis"/><br /><sub><b>
Shyaka Davis</b></sub></td>
<td align="center"><a href="https://github.com/Karlmusingo"><img
style="border-radius:50%"
src="https://github.com/Karlmusingo.png" width="100px;" alt="Karl MUSINGO"/><br /><sub><b>
Expand Down
12 changes: 12 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
"formatter": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
}
}
37 changes: 30 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "rwanda",
"version": "3.0.1",
"description": "This package provides you access to provinces, districts, sectors, villages and cells found in Rwanda",
"type": "module",
"files": [
Expand All @@ -19,22 +20,44 @@
"build": "tsc && vite build",
"preview": "vite preview",
"test": "vitest run",
"test:watch": "vitest watch"
"test:watch": "vitest watch",
"format": "biome format src/ test/ --write",
"format:check": "biome format --check src/ test/",
"lint": "biome lint src/ test/",
"lint:fix": "biome lint --apply src/ test/",
"prepare": "husky install"
},
"devDependencies": {
"@biomejs/biome": "^2.1.4",
"husky": "^9.1.7",
"pathe": "^1.1.1",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-plugin-dts": "^3.6.0",
"vitest": "^0.34.6"
"pathe": "^2.0.3",
"typescript": "^5.9.2",
"vite": "^7.1.1",
"vite-plugin-dts": "^4.5.4",
"vitest": "^3.2.4"
},
"engines": {
"node": "20.19.0"
},
"license": "MIT",
"version": "3.0.0",
"repository": {
"type": "git",
"url": "git://github.com/knowbee/rwanda.git"
},
"keywords": [
"rwanda",
"urwanda",
"u rwanda",
"intara",
"uturere",
"akarere",
"imirenge",
"umurenge",
"utugari",
"akagari",
"imidugudu",
"umudugudu"
],
"author": "Igwaneza Bruce <knowbeeinc@gmail.com>",
"homepage": "https://github.com/knowbee/rwanda"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Kamuhoza: Cell = [
"Bambiro",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Kanyirabigogo: Cell = ["Giramata", "Kabana", "Mizingo", "Murambi"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Bihungwe: Cell = ["Bihungwe", "Bivumu", "Bunyove", "Mwirima", "Rukeri"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Bisizi: Cell = [
"Bweza",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Burushya: Cell = [
"Kaberamo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Bahimba: Cell = [
"Bahimba",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Buhaza: Cell = ["Dufatanye", "Gabiro", "Murambi"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Basa: Cell = [
"Buranga",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Nyange: Cell = [
"Cité",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Butanda: Cell = [
"Buganzo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Gikungu: Cell = ["Kibonajoro", "Rwamagare"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Birembo: Cell = ["Mariba", "Burama"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Cyendajuru: Cell = ["Burembo", "Kabeza", "Kibakure", "Murinzi"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Burunga: Cell = [
"Burunga",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Kizura: Cell = [
"Gasharu",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Cyingwa: Cell = [
"Kabucuku",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Cyangugu: Cell = [
"Gatovu",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Cyarukara: Cell = [
"Gashinjano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Gahinga: Cell = [
"Birogo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Gitwa: Cell = [
"Buganda",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Bigoga: Cell = [
"Gisunyu",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Gatare: Cell = [
"Bahuro",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Gasebeya: Cell = [
"Biteri",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Gatare: Cell = ["Bigando", "Kabumbwe", "Rwindare"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Butambamo: Cell = [
"Gashagwa",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Karenge: Cell = [
"Batura",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Bushaka: Cell = [
"Bikono",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

import { Cell, Sector } from "@rwanda/types";
import type { Cell, Sector } from "@rwanda/types";

const Bugina: Cell = ["Gishushu", "Gitarama", "Kagarama", "Karambi"];

Expand Down
Loading