Skip to content

Commit

Permalink
Rewrite and update the website infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Ampflower committed Sep 12, 2024
1 parent 98d01c1 commit 6931c2a
Show file tree
Hide file tree
Showing 64 changed files with 1,106 additions and 4,737 deletions.
24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
root = true

[*]
indent_style = tab
insert_final_newline = true

[*.json]
indent_size = 2
ij_json_keep_trailing_comma = false
ij_json_space_after_comma = false
# Keeps IntelliJ from emitting nonsensical reformats that can't actually work.
ij_json_wrap_long_lines = false

[{*.svelte,*.md,*.html}]
# Enforces IntelliJ to not fight Prettier when reformatting
ij_html_space_inside_empty_tag = true
ij_html_keep_whitespaces_inside = true
ij_html_keep_whitespaces = true
ij_html_add_new_line_before_tags = false
ij_html_keep_blank_lines = 1
ij_html_do_not_indent_children_of_tags = none
# Annoyingly, this is ignored in 2022.2.2. Maybe you have better luck.
ij_html_align_attributes = false
ij_xml_align_attributes = false
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

20 changes: 0 additions & 20 deletions .eslintrc.cjs

This file was deleted.

26 changes: 21 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
.DS_Store
node_modules
/build
/.idea

# IDE
.idea

# Temporary messes in the tree
/static/assets/img/**/*.png
tmp

# Output
.output
.vercel
/.svelte-kit
/package
/build

# OS
.DS_Store
Thumbs.db

# Env
.env
.env.*
!.env.example
!.env.test

# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
package-lock.json
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"trailingComma": "es5",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
28 changes: 14 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use [Stackblitz Codeflow](https://pr.new/Pridecraft-Studios/website) for in-browser development environment instead of directly pushing to prod
use [Stackblitz Codeflow](https://pr.new/Pridecraft-Studios/website) for in-browser development environment instead of directly pushing to prod
32 changes: 32 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-plugin-prettier/recommended';
import globals from 'globals';

/** @type {import('eslint').Linter.Config[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser,
},
},
},
{
ignores: ['build/', '.svelte-kit/', 'dist/'],
},
prettier,
];
4 changes: 2 additions & 2 deletions mdsvex.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ const config = defineConfig({
extensions: ['.svelte.md', '.md', '.svx'],

smartypants: {
dashes: 'oldschool'
dashes: 'oldschool',
},

remarkPlugins: [],
rehypePlugins: []
rehypePlugins: [],
});

export default config;
48 changes: 22 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,31 @@
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ."
"lint": "eslint .",
"format": "prettier --write ."
},
"devDependencies": {
"@catppuccin/tailwindcss": "^0.1.1",
"@rgossiaux/svelte-headlessui": "^1.0.2",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.5.0",
"@tailwindcss/typography": "^0.5.3",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"autoprefixer": "^10.4.7",
"dotenv": "^16.0.3",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte3": "^4.0.0",
"mdsvex": "^0.10.6",
"postcss": "^8.4.14",
"postcss-load-config": "^4.0.1",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.8.1",
"svelte": "^3.54.0",
"svelte-check": "^3.0.1",
"svelte-feather-icons": "^4.0.0",
"svelte-preprocess": "^4.10.7",
"tailwindcss": "^3.1.5",
"tslib": "^2.4.1",
"@catppuccin/palette": "^1.2.0",
"@sveltejs/adapter-static": "^3.0.4",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/eslint": "^9.6.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-svelte": "^2.36.0",
"globals": "^15.0.0",
"mdsvex": "^0.12.3",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.6",
"sass-embedded": "^1.78.0",
"svelte": "^4.2.19",
"svelte-check": "^3.6.0",
"svelte-feather-icons": "^3.3.0",
"svelte-preprocess": "^6.0.2",
"typescript": "^5.0.0",
"vite": "^4.2.0"
"typescript-eslint": "^8.0.0",
"vite": "^5.0.3"
},
"type": "module"
}
15 changes: 0 additions & 15 deletions postcss.config.cjs

This file was deleted.

1 change: 1 addition & 0 deletions src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ declare global {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
Expand Down
20 changes: 10 additions & 10 deletions src/app.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head prefix="og: https://ogp.me/ns#">
<meta charset="utf-8"/>
<link rel="icon" href="%sveltekit.assets%/favicon.png"/>
<meta name="viewport" content="width=device-width"/>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover" class="latte dark:macchiato bg-base text-text">
<div class="contents">%sveltekit.body%</div>
</body>
<head prefix="og: https://ogp.me/ns#">
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
%sveltekit.body%
</body>
</html>
Loading

0 comments on commit 6931c2a

Please sign in to comment.