Skip to content

Commit

Permalink
chore: flatten src/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybacon committed Oct 3, 2024
1 parent 0b6a042 commit 6ac9162
Show file tree
Hide file tree
Showing 113 changed files with 15 additions and 8 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
4 changes: 3 additions & 1 deletion 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 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.
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.
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.
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.
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
"jsx": "preserve",
"module": "preserve",
"noEmit": true,
"paths": { "@/*": ["./src/*"] },
"paths": {
"@/components/*": ["./components/*"],
"@/hooks/*": ["./hooks/*"],
"@/theme/*": ["./theme/*"],
"@/tools/*": ["./tools/*"]
},
"verbatimModuleSyntax": false
},
"exclude": ["node_modules"],
Expand Down

0 comments on commit 6ac9162

Please sign in to comment.