Compare commits
4 Commits
a491e59964
...
cb845c043c
Author | SHA1 | Date |
---|---|---|
Bauke | cb845c043c | |
Bauke | f80ba026b5 | |
Bauke | 75d65a95d5 | |
Bauke | 075983b05f |
|
@ -0,0 +1,8 @@
|
|||
.netlify/
|
||||
.vscode/
|
||||
node_modules/
|
||||
public/
|
||||
target/
|
||||
|
||||
Cargo.lock
|
||||
pnpm-lock.yaml
|
|
@ -0,0 +1,20 @@
|
|||
[tasks.build]
|
||||
clear = true
|
||||
command = "pnpm"
|
||||
args = ["astro", "build"]
|
||||
|
||||
[tasks.clean]
|
||||
clear = true
|
||||
command = "pnpm"
|
||||
args = ["trash", "public/"]
|
||||
|
||||
[tasks.dev]
|
||||
clear = true
|
||||
command = "pnpm"
|
||||
args = ["astro", "dev"]
|
||||
|
||||
[tasks.publish]
|
||||
clear = true
|
||||
dependencies = ["clean", "build"]
|
||||
command = "pnpm"
|
||||
args = ["netlify", "deploy", "-p", "-d", "public/", "-s", "tildes.community"]
|
Binary file not shown.
Before Width: | Height: | Size: 7.1 KiB |
|
@ -0,0 +1,30 @@
|
|||
import path from "node:path";
|
||||
// eslint-disable-next-line n/file-extension-in-import
|
||||
import {defineConfig} from "astro/config";
|
||||
import mdxIntegration from "@astrojs/mdx";
|
||||
import preactIntegration from "@astrojs/preact";
|
||||
|
||||
/**
|
||||
* Create an absolute path from a given relative one, using the directory
|
||||
* this file is located in as the base.
|
||||
*
|
||||
* @param relative The relative path to make absolute.
|
||||
* @returns The absolute path.
|
||||
*/
|
||||
function toAbsolutePath(relative: string): string {
|
||||
return new URL(relative, import.meta.url).pathname;
|
||||
}
|
||||
|
||||
// Create absolute paths to various directories.
|
||||
const buildDir = toAbsolutePath("./public");
|
||||
const sourceDir = toAbsolutePath("./source");
|
||||
|
||||
export default defineConfig({
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
compressHTML: true,
|
||||
integrations: [mdxIntegration(), preactIntegration()],
|
||||
outDir: buildDir,
|
||||
publicDir: path.join(sourceDir, "assets/"),
|
||||
site: "https://tildes.community",
|
||||
srcDir: sourceDir,
|
||||
});
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"private": "true",
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^0.19.7",
|
||||
"@astrojs/preact": "^2.2.1",
|
||||
"@bauke/eslint-config": "^0.1.4",
|
||||
"@bauke/prettier-config": "^0.1.4",
|
||||
"@bauke/stylelint-config": "^0.1.4",
|
||||
"@types/node": "^20.4.2",
|
||||
"astro": "^2.8.3",
|
||||
"modern-normalize": "^2.0.0",
|
||||
"netlify-cli": "^15.9.0",
|
||||
"preact": "^10.16.0",
|
||||
"sass": "^1.63.6",
|
||||
"stylelint": "^15.10.1",
|
||||
"trash-cli": "^5.0.0",
|
||||
"typescript": "^5.1.6",
|
||||
"xo": "^0.55.0"
|
||||
},
|
||||
"prettier": "@bauke/prettier-config",
|
||||
"stylelint": {
|
||||
"extends": "@bauke/stylelint-config"
|
||||
},
|
||||
"xo": {
|
||||
"extends": "@bauke/eslint-config",
|
||||
"prettier": true,
|
||||
"space": true
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 689 B After Width: | Height: | Size: 689 B |
Binary file not shown.
After Width: | Height: | Size: 597 B |
|
@ -0,0 +1,27 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"
|
||||
viewBox="0 0 100 100">
|
||||
<!-- Default Tildes logo with Solarized colors: -->
|
||||
<rect fill="#002b36" width="100" height="100"/>
|
||||
<g>
|
||||
<rect fill="#859900" width="12.5" height="12.5" x="0" y="50"/>
|
||||
<rect fill="#2aa198" width="12.5" height="12.5" x="12.5" y="37.5"/>
|
||||
<rect fill="#268bd2" width="12.5" height="12.5" x="25" y="25"/>
|
||||
<rect fill="#6c71c4" width="12.5" height="12.5" x="37.5" y="37.5"/>
|
||||
<rect fill="#d33682" width="12.5" height="12.5" x="50" y="50"/>
|
||||
<rect fill="#dc322f" width="12.5" height="12.5" x="62.5" y="62.5"/>
|
||||
<rect fill="#cb4b16" width="12.5" height="12.5" x="75" y="50"/>
|
||||
<rect fill="#b58900" width="12.5" height="12.5" x="87.5" y="37.5"/>
|
||||
</g>
|
||||
<!-- Bottom-left extension with Dracula colors: -->
|
||||
<g transform="translate(0 37.5)">
|
||||
<rect fill="#50fa7b" width="12.5" height="12.5" x="12.5" y="37.5"/>
|
||||
<rect fill="#8be9fd" width="12.5" height="12.5" x="25" y="25"/>
|
||||
<rect fill="#6272a4" width="12.5" height="12.5" x="37.5" y="37.5"/>
|
||||
</g>
|
||||
<!-- Top-right extension with Zenburn colors: -->
|
||||
<g transform="translate(0 -37.5)">
|
||||
<rect fill="#e06c75" width="12.5" height="12.5" x="50" y="50"/>
|
||||
<rect fill="#be5046" width="12.5" height="12.5" x="62.5" y="62.5"/>
|
||||
<rect fill="#d19a66" width="12.5" height="12.5" x="75" y="50"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"esModuleInterop": true,
|
||||
"jsx": "react-jsx",
|
||||
"jsxImportSource": "preact",
|
||||
"lib": [
|
||||
"DOM",
|
||||
"ES2022"
|
||||
],
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "Node",
|
||||
"resolveJsonModule": true,
|
||||
"strict": true,
|
||||
"target": "ES2022"
|
||||
},
|
||||
"include": [
|
||||
"source"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue