Skip to content

Commit

Permalink
Merge pull request #849 from Gabb-c/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabb-c authored Jun 22, 2023
2 parents 6db48f0 + f71c410 commit 9f6b832
Show file tree
Hide file tree
Showing 42 changed files with 1,444 additions and 1,140 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [lts/gallium, lts/hydrogen]
node-version: [lts/gallium, lts/hydrogen, latest]

steps:
- name: Checkout Repository
Expand Down
14 changes: 7 additions & 7 deletions docs/src/typings/pokemon-typings.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface Pokemon {
name: string;
/** The base experience gained for defeating this Pokémon */
base_experience: number;
/** The height of this Pokémon in decimetres */
/** The height of this Pokémon in decimeters */
height: number;
/** Set for exactly one Pokémon used as the default for each species */
is_default: boolean;
Expand All @@ -27,7 +27,7 @@ export interface Pokemon {
abilities: PokemonAbility[];
/** A list of forms this Pokémon can take on */
forms: NamedAPIResource[];
/** A list of game indices relevent to Pokémon item by generation */
/** A list of game indices relevant to Pokémon item by generation */
game_indices: VersionGameIndex[];
/** A list of items this Pokémon may be holding when encountered */
held_items: PokemonHeldItem[];
Expand All @@ -50,7 +50,7 @@ export interface Pokemon {

> Check out [Bulbapedia](<https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_(species)>) for greater detail.
## Pokmeon Ability
## Pokemon Ability

Abilities the given pokémon could potentially have

Expand Down Expand Up @@ -147,7 +147,7 @@ export interface PokemonStat {
}
```

## Pokmeon Sprites
## Pokemon Sprites

A set of sprites used to depict this Pokémon in the game.

Expand Down Expand Up @@ -356,7 +356,7 @@ export interface PokemonSpecies {
/** The shape of this Pokémon for Pokédex search */
shape: NamedAPIResource;
/** The Pokémon species that evolves into this Pokemon_species */
envolves_from_species: NamedAPIResource;
evolves_from_species: NamedAPIResource;
/** The evolution chain this Pokémon species is a member of */
evolution_chain: APIResource;
/** The habitat this Pokémon species can be encountered in */
Expand Down Expand Up @@ -771,7 +771,7 @@ export interface NatureStatAffectSets {
}
```

## Mmove Stat Affect
## Move Stat Affect

Move and how it change the referenced stat.

Expand Down Expand Up @@ -860,7 +860,7 @@ export interface Type {
damage_relations: TypeRelations;
/** A list of details of how effective this type was toward others and vice versa in previous generations */
past_damage_relations: TypeRelationsPast[];
/** A list of game indices relevent to this item by generation */
/** A list of game indices relevant to this item by generation */
game_indices: GenerationGameIndex[];
/** The generation this type was introduced in */
generation: NamedAPIResource;
Expand Down
15 changes: 15 additions & 0 deletions env.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import z from "zod";

const envSchema = z.object({
API_KEY: z.string(),
APP_ID: z.string(),
INDEX_NAME: z.string(),
NODE_ENV: z.enum(["development", "test", "production"]).default("development"),
});

export const getEnvIssues = (): z.ZodIssue[] | void => {
const result = envSchema.safeParse(process.env);
if (!result.success) return result.error.issues;
};

export const ENV = envSchema.parse(process.env);
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"lint": "rome check src",
"lint:fix": "rome check --apply-unsafe ./src",
"lint:pkg": "sort-package-json",
"lint:tsc": "tsc --diagnostics",
"lint:tsc": "tsc --extendedDiagnostics",
"prepare": "is-ci || husky install",
"prepublishOnly": "pnpm build",
"size": "pnpm build && size-limit",
Expand All @@ -69,17 +69,17 @@
"@semantic-release/npm": "^10.0.4",
"@semantic-release/release-notes-generator": "^11.0.3",
"@size-limit/preset-small-lib": "^8.2.4",
"@swc/core": "^1.3.62",
"@swc/core": "^1.3.66",
"@types/is-ci": "^3.0.0",
"@types/node": "^20.3.0",
"@types/node": "^20.3.1",
"@vite-pwa/vitepress": "^0.2.0",
"@vitest/coverage-c8": "^0.32.0",
"@vitest/coverage-v8": "^0.32.0",
"@vitest/ui": "^0.32.0",
"@vitest/coverage-c8": "^0.32.2",
"@vitest/coverage-v8": "^0.32.2",
"@vitest/ui": "^0.32.2",
"axios": "^1.4.0",
"axios-cache-interceptor": "^1.2.0",
"ci-info": "^3.8.0",
"dotenv": "^16.1.4",
"dotenv": "^16.3.1",
"http-status-codes": "^2.2.0",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
Expand All @@ -88,12 +88,14 @@
"semantic-release": "^21.0.5",
"size-limit": "^8.2.4",
"sort-package-json": "^2.4.1",
"tsup": "^6.7.0",
"tsup": "^7.0.0",
"typescript": "^5.1.3",
"vite-tsconfig-paths": "^4.2.0",
"vitepress": "1.0.0-beta.2",
"vitest": "^0.32.0",
"vue": "^3.3.4"
"vitepress": "1.0.0-beta.3",
"vitest": "^0.32.2",
"vue": "^3.3.4",
"zod": "^3.21.4",
"zod-error": "^1.5.0"
},
"peerDependencies": {
"axios": "^1.4.0",
Expand Down
Loading

0 comments on commit 9f6b832

Please sign in to comment.