Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 19 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,26 @@ jobs:
bun run --bun validate

- name: Validate some requests
shell: bash
run: |
set -euo pipefail
cd server
bun run start &
sleep 10
cd ../.bruno
SERVER_PID=$!
cd ..

ATTEMPTS=0
until curl -sSf http://127.0.0.1:3000/status > /dev/null; do
ATTEMPTS=$((ATTEMPTS + 1))
if [ $ATTEMPTS -ge 60 ]; then
echo "Server did not become ready within 60 seconds" >&2
kill $SERVER_PID
exit 1
fi
sleep 1
done

cd .bruno
bru run --env Developpement

kill $SERVER_PID
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ dist/

# local folders for logs, autogenerated code & remote data cache
var/

# pokedexIdFixer generated files
scripts/pokedexIdFixer/pokemon-species.json
scripts/pokedexIdFixer/pokemon-mapping.json
scripts/pokedexIdFixer/fix-preview.txt
scripts/pokedexIdFixer/fix-log.txt
scripts/pokedexIdFixer/audit-report.txt
2 changes: 2 additions & 0 deletions data/E-Card/Best of game/4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const card: Card = {
illustrator: "K. Hoshiba",
rarity: "None",
category: "Pokemon",

dexId: [212],
stage: "Basic",

attacks: [{
Expand Down
2 changes: 2 additions & 0 deletions data/E-Card/Best of game/5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const card: Card = {
illustrator: "Katsura Tabata",
rarity: "None",
category: "Pokemon",

dexId: [215],
stage: "Basic",

attacks: [{
Expand Down
2 changes: 2 additions & 0 deletions data/E-Card/Best of game/6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const card: Card = {
illustrator: "Shin-ichi Yoshida",
rarity: "None",
category: "Pokemon",

dexId: [2],
stage: "Stage1",

abilities: [{
Expand Down
2 changes: 2 additions & 0 deletions data/E-Card/Best of game/7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const card: Card = {
illustrator: "Shin-ichi Yoshida",
rarity: "None",
category: "Pokemon",

dexId: [3],
stage: "Stage2",

attacks: [{
Expand Down
2 changes: 2 additions & 0 deletions data/E-Card/Best of game/8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const card: Card = {
illustrator: "Shin-ichi Yoshida",
rarity: "None",
category: "Pokemon",

dexId: [150],
stage: "Basic",

attacks: [{
Expand Down
2 changes: 2 additions & 0 deletions data/E-Card/Best of game/9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const card: Card = {
illustrator: "Ken Sugimori",
rarity: "None",
category: "Pokemon",

dexId: [107],
stage: "Basic",

attacks: [{
Expand Down
2 changes: 2 additions & 0 deletions data/E-Card/Skyridge/47.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const card: Card = {
illustrator: "Atsuko Nishida",
rarity: "Common",
category: "Pokemon",

dexId: [138, 140, 142],
set: Set,
hp: 30,

Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Triumphant/100.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
488,
],

dexId: [491, 488],
types: [
"Darkness",
"Psychic",
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Triumphant/101.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
483,
],

dexId: [484, 483],
hp: 160,

types: [
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Triumphant/102.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
483,
],

dexId: [484, 483],
types: [
"Water",
"Metal",
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Triumphant/99.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
488,
],

dexId: [491, 488],
hp: 150,

types: [
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Undaunted/87.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
382,
],

dexId: [382, 383],
hp: 150,

types: [
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Undaunted/88.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
382,
],

dexId: [382, 383],
types: [
"Water",
"Fighting",
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Undaunted/89.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
384,
],

dexId: [384, 386],
hp: 140,

types: [
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Undaunted/90.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
384,
],

dexId: [384, 386],
types: [
"Colorless",
"Psychic",
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Unleashed/90.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
243,
],

dexId: [244, 243],
hp: 140,

types: [
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Unleashed/91.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
243,
],

dexId: [244, 243],
hp: 140,

types: [
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Unleashed/92.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
243,
],

dexId: [243, 245],
hp: 160,

types: [
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Unleashed/93.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
243,
],

dexId: [243, 245],
hp: 160,

types: [
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Unleashed/94.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
244,
],

dexId: [245, 244],
hp: 160,

types: [
Expand Down
5 changes: 1 addition & 4 deletions data/HeartGold & SoulSilver/Unleashed/95.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const card: Card = {
category: "Pokemon",
set: Set,

dexId: [
244,
],

dexId: [245, 244],
hp: 160,

types: [
Expand Down
3 changes: 2 additions & 1 deletion data/Mega Evolution/Phantasmal Flames/001.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ const card: Card = {

rarity: "Common",
category: "Pokemon",

dexId: [43],
hp: 50,
types: ["Grass"],
stage: "Basic",
dexId: [43],

attacks: [{
cost: ["Grass"],
Expand Down
3 changes: 2 additions & 1 deletion data/Mega Evolution/Phantasmal Flames/002.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ const card: Card = {

rarity: "Common",
category: "Pokemon",

dexId: [44],
hp: 70,
types: ["Grass"],
stage: "Stage1",
dexId: [44],

attacks: [{
cost: ["Grass"],
Expand Down
3 changes: 2 additions & 1 deletion data/Mega Evolution/Phantasmal Flames/003.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ const card: Card = {

rarity: "Rare",
category: "Pokemon",

dexId: [45],
hp: 150,
types: ["Grass"],
stage: "Stage2",
dexId: [45],

attacks: [{
cost: ["Grass"],
Expand Down
3 changes: 2 additions & 1 deletion data/Mega Evolution/Phantasmal Flames/004.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ const card: Card = {

rarity: "Double rare",
category: "Pokemon",

dexId: [214],
hp: 280,
types: ["Grass"],
stage: "Basic",
dexId: [214],

attacks: [{
cost: ["Grass", "Grass"],
Expand Down
3 changes: 2 additions & 1 deletion data/Mega Evolution/Phantasmal Flames/005.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ const card: Card = {

rarity: "Common",
category: "Pokemon",

dexId: [270],
hp: 70,
types: ["Grass"],
stage: "Basic",
dexId: [270],

attacks: [{
cost: ["Grass", "Colorless"],
Expand Down
3 changes: 2 additions & 1 deletion data/Mega Evolution/Phantasmal Flames/006.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ const card: Card = {

rarity: "Common",
category: "Pokemon",

dexId: [271],
hp: 90,
types: ["Grass"],
stage: "Stage1",
dexId: [271],

attacks: [{
cost: ["Grass", "Colorless"],
Expand Down
3 changes: 2 additions & 1 deletion data/Mega Evolution/Phantasmal Flames/007.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ const card: Card = {

rarity: "Uncommon",
category: "Pokemon",

dexId: [272],
hp: 160,
types: ["Grass"],
stage: "Stage2",
dexId: [272],

abilities: [{
type: "Ability",
Expand Down
3 changes: 2 additions & 1 deletion data/Mega Evolution/Phantasmal Flames/008.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ const card: Card = {

rarity: "Rare",
category: "Pokemon",

dexId: [649],
hp: 120,
types: ["Grass"],
stage: "Basic",
dexId: [649],

attacks: [{
cost: ["Grass"],
Expand Down
3 changes: 2 additions & 1 deletion data/Mega Evolution/Phantasmal Flames/009.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ const card: Card = {

rarity: "Common",
category: "Pokemon",

dexId: [919],
hp: 50,
types: ["Grass"],
stage: "Basic",
dexId: [919],

attacks: [{
cost: ["Grass"],
Expand Down
Loading