Compare commits
No commits in common. "development" and "main" have entirely different histories.
developmen
...
main
10 changed files with 20 additions and 90 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,5 +1,3 @@
|
||||||
sass/@**
|
|
||||||
|
|
||||||
# build output
|
# build output
|
||||||
dist/
|
dist/
|
||||||
|
|
||||||
|
|
|
||||||
0
.gitmodules
vendored
Normal file
0
.gitmodules
vendored
Normal file
|
|
@ -6,6 +6,3 @@ dev:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@zola build
|
@zola build
|
||||||
|
|
||||||
link-dependencies:
|
|
||||||
bun run _scripts/link-dependencies.ts
|
|
||||||
|
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
#!/usr/bin/env bun
|
|
||||||
|
|
||||||
import { fileURLToPath } from 'url';
|
|
||||||
import fs from "node:fs/promises";
|
|
||||||
import { basename, normalize } from "node:path";
|
|
||||||
|
|
||||||
function ignore_exist_error(fn: (...args: any[]) => Promise<void>) {
|
|
||||||
return async (...args: any[]) => {
|
|
||||||
try {
|
|
||||||
await fn(...args);
|
|
||||||
} catch (error: any) {
|
|
||||||
if (error.code !== 'EEXIST') {
|
|
||||||
throw error; // Re-throw the error if it's not "file exists"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const mkdir = ignore_exist_error(fs.mkdir);
|
|
||||||
const symlink = ignore_exist_error(fs.symlink);
|
|
||||||
|
|
||||||
|
|
||||||
const def = await Bun.file("package.json").json();
|
|
||||||
|
|
||||||
const dependencies = Object.keys(def.dependencies);
|
|
||||||
|
|
||||||
for (const pkg of dependencies) {
|
|
||||||
const path = normalize(fileURLToPath(import.meta.resolve(pkg)));
|
|
||||||
const file = Bun.file(import.meta.resolve(pkg));
|
|
||||||
const type = file.type.split(";").at(0);
|
|
||||||
const filename = basename(path);
|
|
||||||
|
|
||||||
switch (type) {
|
|
||||||
case "text/x-scss":
|
|
||||||
await mkdir(`sass/${pkg}`)
|
|
||||||
await symlink(path, `sass/${pkg}/${filename}`);
|
|
||||||
console.log(`${path} -> sass/${pkg}/${filename}`)
|
|
||||||
break;
|
|
||||||
case "text/javascript":
|
|
||||||
// console.log("es JS")
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log();
|
|
||||||
console.log("Dependencies linked!");
|
|
||||||
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
|
@ -1,2 +0,0 @@
|
||||||
[install.scopes]
|
|
||||||
mini-strap = "https://git.alecodes.page/api/packages/alecodes/npm/"
|
|
||||||
13
package.json
13
package.json
|
|
@ -1,14 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "personal-page",
|
"name": "personal-page",
|
||||||
"version": "0.3.0",
|
|
||||||
"module": "index.ts",
|
|
||||||
"devDependencies": {
|
|
||||||
"typescript": "^5.2.2",
|
|
||||||
"@types/bun": "latest"
|
|
||||||
},
|
|
||||||
"scripts": {},
|
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"version": "0.3.0",
|
||||||
|
"scripts": { },
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mini-strap/core": "^0.1.0"
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"typescript": "^5.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
@import "@mini-strap/core/style.scss";
|
|
||||||
|
|
||||||
html {
|
|
||||||
// background-color: red;
|
|
||||||
}
|
|
||||||
|
|
@ -13,7 +13,6 @@
|
||||||
|
|
||||||
<!-- Reset and normilize styles -->
|
<!-- Reset and normilize styles -->
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gardevoir" />
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gardevoir" />
|
||||||
<link rel="stylesheet" href="style.css" />
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body transition:animate="fade">
|
<body transition:animate="fade">
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,20 @@
|
||||||
{
|
{
|
||||||
|
"extends": "astro/tsconfigs/strict",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
// Enable latest features
|
|
||||||
"lib": ["ESNext", "DOM"],
|
|
||||||
"target": "ESNext",
|
|
||||||
"module": "ESNext",
|
|
||||||
"moduleDetection": "force",
|
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"allowJs": true,
|
"jsxImportSource": "react",
|
||||||
|
|
||||||
// Bundler mode
|
|
||||||
"moduleResolution": "bundler",
|
|
||||||
"allowImportingTsExtensions": true,
|
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
"noEmit": true,
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
// Best practices
|
"@components/*": ["src/components/*"],
|
||||||
"strict": true,
|
"@layouts/*": ["src/layouts/*"],
|
||||||
"skipLibCheck": true,
|
"@assets/*": ["src/assets/*"],
|
||||||
"noFallthroughCasesInSwitch": true,
|
"@locales/*": ["public/locales/*"]
|
||||||
|
},
|
||||||
// Some stricter flags (disabled by default)
|
"plugins": [
|
||||||
"noUnusedLocals": false,
|
{
|
||||||
"noUnusedParameters": false,
|
"name": "@astrojs/ts-plugin"
|
||||||
"noPropertyAccessFromIndexSignature": false
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue