Skip to content

Commit

Permalink
refactor: small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkeyl committed Dec 15, 2024
1 parent 15c24e2 commit 7a643fb
Show file tree
Hide file tree
Showing 18 changed files with 44 additions and 85 deletions.
6 changes: 0 additions & 6 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# Directories
.husky
public

# Files
*.md
bun.lockb

# Configs
.editorconfig
.gitattributes

# Ignores
.gitignore
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Yokai - Bestiary of Japanese spirits and monsters

![Cover](public/github/cover.jpg)
![Cover](public/socials/cover.jpg)
24 changes: 0 additions & 24 deletions SECURITY.md

This file was deleted.

42 changes: 17 additions & 25 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
import { defineConfig } from '@archoleat/next-define-config';
import createNextIntlPlugin from 'next-intl/plugin';

export default defineConfig({
images: {
formats: ['image/webp'],
remotePatterns: [
{
hostname: 'yokais.vercel.app',
pathname: '/images/**',
protocol: 'https',
},
],
},
async headers() {
return [
{
source: '/(.*?)',
headers: [
{
key: 'Cache-Control',
value: 's-maxage=1, stale-while-revalidate=59',
},
],
},
];
},
});
const withNextIntl = createNextIntlPlugin('src/app/i18n/get-request-config.ts');

export default withNextIntl(
defineConfig({
images: {
formats: ['image/webp'],
remotePatterns: [
{
hostname: 'yokais.vercel.app',
pathname: '/images/**',
protocol: 'https',
},
],
},
}),
);
30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,29 @@
"@vercel/analytics": "^1.4.1",
"@vercel/speed-insights": "^1.1.0",
"clsx": "^2.1.1",
"next": "15.0.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"embla-carousel-react": "^8.5.1",
"next": "^15.1.0",
"next-intl": "^3.26.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sharp": "^0.33.5"
},
"devDependencies": {
"@archoleat/commitlint-define-config": "^1.1.0",
"@archoleat/eslint-flat-compatibility": "^1.2.1",
"@archoleat/next-define-config": "^1.1.1",
"@archoleat/prettier-define-config": "^1.1.0",
"@archoleat/stylelint-config-extended-scss": "^1.10.0",
"@commitlint/cli": "^19.6.0",
"@archoleat/stylelint-config-extended-scss": "^1.10.2",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@commitlint/types": "^19.5.0",
"@next/eslint-plugin-next": "^15.0.3",
"@next/eslint-plugin-next": "^15.1.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/bun": "^1.1.14",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/node": "^22.10.2",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"conventional-changelog-conventionalcommits": "^8.0.0",
Expand All @@ -38,22 +40,22 @@
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^2.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^56.0.1",
"git-pull-run": "^1.4.0",
"globals": "^15.13.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"prettier": "^3.4.1",
"lint-staged": "^15.2.11",
"prettier": "^3.4.2",
"remark": "15.0.1",
"remark-cli": "^12.0.1",
"remark-preset-lint-consistent": "^6.0.0",
"remark-preset-lint-markdown-style-guide": "^6.0.0",
"remark-preset-lint-recommended": "^7.0.0",
"sass": "^1.81.0",
"stylelint-define-config": "^1.8.0",
"sass": "^1.83.0",
"stylelint-define-config": "^1.8.1",
"typescript-plugin-css-modules": "^5.1.0"
}
}
Binary file removed public/github/cover.jpg
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions public/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"background_color": "#000",
"background_color": "#00090E",
"description": "Bestiary of Japanese spirits and monsters",
"display": "standalone",
"name": "Yokai",
"short_name": "Yokai",
"name": "Yokais",
"short_name": "Yokais",
"start_url": "/",
"theme_color": "#000",
"theme_color": "#00090E",
"icons": [
{
"sizes": "192x192",
Expand Down
2 changes: 1 addition & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
User-agent: *
Allow: *
Allow: /
Binary file added public/socials/cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/shared/helpers/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/shared/helpers/is-development.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
11 changes: 5 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@
"module": "ESNext",
"moduleResolution": "Bundler",
"paths": {
// Helpers
"@helpers": ["./src/shared/helpers/index.ts"],
// Socials
"@socials/*": ["./public/socials/*"],
// Styles
"@styles/*": ["./src/app/styles/*"]
"@/config/*": ["./src/app/config/*"],
"@/socials/*": ["./public/socials/*"],
"@/styles/*": ["./src/app/styles/*"],
"@/ui/*": ["./src/shared/ui/*"],
"@/widgets/*": ["./src/widgets/*"]
},
"resolveJsonModule": true,
// Projects
Expand Down

0 comments on commit 7a643fb

Please sign in to comment.