Skip to content

Commit

Permalink
chore: flatten src/ directory (#255)
Browse files Browse the repository at this point in the history
* chore: flatten src/ directory

* chore: bump dependencies
  • Loading branch information
angrybacon authored Oct 3, 2024
1 parent 0b6a042 commit 968d267
Show file tree
Hide file tree
Showing 114 changed files with 334 additions and 290 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING_WITH_MARKDOWN.org
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ content.

In some contexts, you can refer to card names within Markdown. To ease the
writing process and reduce typos, a number of shorthands for card names can be
found [[./src/tools/game/constants/Cards.ts][here]].
found [[./tools/game/constants/Cards.ts][here]].

For parts where you query card imagery, you can optionally provide a specific
set using the 3-letters set code. By default, the first print for the card is
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default [
},
},
].map((it) => ({
files: ['{scryfall,src}/**/*.{ts,tsx}'],
files: ['{components,hooks,pages,scryfall,theme,tools}/**/*.{ts,tsx}'],
languageOptions: { parser: Ts.parser },
...it,
})),
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { type Config } from 'jest';
import NextJest from 'next/jest';

export default NextJest()({
moduleNameMapper: { '^@/(.+)$': '<rootDir>/src/$1' },
moduleNameMapper: { '^@/(.+)$': '<rootDir>/$1' },
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
testEnvironment: 'jsdom',
} satisfies Config);
4 changes: 2 additions & 2 deletions markdown/partials/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ existing articles for inspiration.
[Tag.ts][constants:tag]. Tags are used to dictate which card abbreviations
should be documented in the sidebar

[constants:kind]: https://github.com/angrybacon/doomsday-wiki/blob/master/src/tools/markdown/constants/Kind.ts
[constants:tag]: https://github.com/angrybacon/doomsday-wiki/blob/master/src/tools/markdown/constants/Tag.ts
[constants:kind]: https://github.com/angrybacon/doomsday-wiki/blob/master/tools/markdown/constants/Kind.ts
[constants:tag]: https://github.com/angrybacon/doomsday-wiki/blob/master/tools/markdown/constants/Tag.ts

## Images

Expand Down
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"lint": "pnpm run '/^lint:[^:]+$/'",
"lint:code": "eslint",
"lint:format": "pnpm run '/^lint:format:[^:]+$/'",
"lint:format:code": "prettier --check --log-level warn puzzles/ scryfall/ src/",
"lint:format:code": "prettier --check --log-level warn components/ hooks/ pages/ theme/ tools/",
"lint:format:puzzles": "prettier --check --log-level warn puzzles/",
"lint:format:scryfall": "prettier --check --log-level warn scryfall/",
"lint:format:wiki": "prettier --check --log-level warn markdown/",
"lint:prune": "knip",
"lint:typings": "tsc",
Expand All @@ -34,16 +36,16 @@
"@korumite/kiwi": "3.1.0",
"@mdi/js": "7.4.47",
"@mdi/react": "1.6.1",
"@mui/material": "6.1.1",
"@mui/system": "6.1.1",
"@mui/utils": "6.1.1",
"@mui/material": "6.1.2",
"@mui/system": "6.1.2",
"@mui/utils": "6.1.2",
"@vercel/speed-insights": "1.0.12",
"async-sema": "3.1.1",
"mana-font": "1.15.9",
"mdast-util-find-and-replace": "3.0.1",
"next": "14.2.13",
"next": "14.2.14",
"plaiceholder": "3.0.0",
"posthog-js": "1.165.0",
"posthog-js": "1.166.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-intersection-observer": "9.13.1",
Expand All @@ -67,22 +69,22 @@
"@testing-library/react": "16.0.1",
"@types/jest": "29.5.13",
"@types/mdast": "4.0.4",
"@types/node": "20.16.9",
"@types/react": "18.3.10",
"@types/node": "22.7.4",
"@types/react": "18.3.11",
"@types/react-dom": "18.3.0",
"@types/react-syntax-highlighter": "15.5.13",
"@types/unist": "3.0.3",
"concurrently": "9.0.1",
"eslint": "9.11.1",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-import": "2.31.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"knip": "5.30.6",
"knip": "5.31.0",
"markdownlint-cli": "0.42.0",
"mdast-util-directive": "3.0.0",
"prettier": "3.3.3",
"ts-node": "10.9.2",
"typescript": "5.6.2",
"typescript-eslint": "8.7.0"
"typescript-eslint": "8.8.0"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/sandbox/index.tsx → pages/sandbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useEffect, useState, type ChangeEvent } from 'react';

import { Layout } from '@/components/Layout/Layout';
import { SpoilsCalculator } from '@/components/SpoilsCalculator/SpoilsCalculator';
import { phyrexian } from '@/fonts/fonts';
import { phyrexian } from '@/theme/fonts/fonts';
import { MENU } from '@/tools/markdown/menu';

// NOTE Flavor text from "Dark Ritual" in "Urza's Saga"
Expand Down
File renamed without changes.
Loading

0 comments on commit 968d267

Please sign in to comment.