chore: replace Sculpin with Astro
This commit is contained in:
parent
d0ef96dead
commit
d1b76dda33
830 changed files with 5819 additions and 10532 deletions
|
|
@ -1 +0,0 @@
|
|||
--modules-folder /node_modules
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
const esbuild = require("esbuild");
|
||||
|
||||
let minify = false;
|
||||
let sourcemap = true;
|
||||
let watch_fs = true;
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
minify = true;
|
||||
sourcemap = false;
|
||||
watch_fs = false;
|
||||
}
|
||||
|
||||
const watch = watch_fs && {
|
||||
onRebuild(error) {
|
||||
if (error) console.error("[watch] build failed", error);
|
||||
else console.log("[watch] build finished");
|
||||
},
|
||||
};
|
||||
console.log(watch);
|
||||
|
||||
esbuild.build({
|
||||
entryPoints: ["./js/app.js"],
|
||||
outfile: "/app/build/app.js",
|
||||
bundle: true,
|
||||
minify: minify,
|
||||
sourcemap: sourcemap,
|
||||
watch: watch,
|
||||
plugins: [],
|
||||
});
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
import "focus-visible";
|
||||
import bash from "highlight.js/lib/languages/bash";
|
||||
import hljs from "highlight.js/lib/core";
|
||||
import ini from "highlight.js/lib/languages/ini";
|
||||
import javascript from "highlight.js/lib/languages/javascript";
|
||||
import php from "highlight.js/lib/languages/php";
|
||||
import yaml from "highlight.js/lib/languages/yaml";
|
||||
|
||||
hljs.registerLanguage("bash", bash);
|
||||
hljs.registerLanguage("ini", ini);
|
||||
hljs.registerLanguage("javascript", javascript);
|
||||
hljs.registerLanguage("php", php);
|
||||
hljs.registerLanguage("yaml", yaml);
|
||||
|
||||
document.addEventListener("DOMContentLoaded", (event) => {
|
||||
document.querySelectorAll("pre code").forEach((element) => {
|
||||
hljs.highlightElement(element);
|
||||
});
|
||||
});
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build:css": "./run yarn:build:css"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/aspect-ratio": "^0.2.0",
|
||||
"@tailwindcss/forms": "^0.2.1",
|
||||
"@tailwindcss/typography": "^0.4.0",
|
||||
"alpinejs": "^2.3.5",
|
||||
"autoprefixer": "^10.2.5",
|
||||
"elliptic": ">=6.5.3",
|
||||
"esbuild": "^0.14.10",
|
||||
"focus-visible": "^5.1.0",
|
||||
"highlight.js": "^10.4.1",
|
||||
"lodash": ">=4.17.19",
|
||||
"postcss": "^8.2.1",
|
||||
"postcss-easy-import": "^3.0.0",
|
||||
"postcss-nested": "^5.0.5",
|
||||
"tailwindcss": "2"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
module.exports = {
|
||||
plugins: {
|
||||
'postcss-easy-import': {
|
||||
extensions: ['.css', '.pcss']
|
||||
},
|
||||
tailwindcss: {},
|
||||
'postcss-nested': {},
|
||||
autoprefixer: {}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,65 +0,0 @@
|
|||
const colors = require("./tailwindcss/colours");
|
||||
const defaultTheme = require("tailwindcss/defaultTheme");
|
||||
const { fontFamily } = defaultTheme;
|
||||
|
||||
module.exports = {
|
||||
mode: "jit",
|
||||
darkMode: "media",
|
||||
important: true,
|
||||
purge: {
|
||||
content: ["./tailwindcss/safelist-classes.txt", "../source/**/*.{md,twig}"],
|
||||
},
|
||||
theme: {
|
||||
outline: {
|
||||
black: "1px solid black",
|
||||
white: "1px solid white",
|
||||
},
|
||||
extend: {
|
||||
typography: (theme) => ({
|
||||
DEFAULT: {
|
||||
css: {
|
||||
p: {
|
||||
lineHeight: 400,
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
colors,
|
||||
fontFamily: {
|
||||
sans: [
|
||||
"Roboto Condensed",
|
||||
"Arial",
|
||||
"Helvetica Neue",
|
||||
"Helvetica",
|
||||
"sans-serif",
|
||||
],
|
||||
mono: [
|
||||
"ui-monospace",
|
||||
"SFMono-Regular",
|
||||
"SF Mono",
|
||||
"Consolas",
|
||||
"Liberation Mono",
|
||||
...fontFamily.mono,
|
||||
],
|
||||
},
|
||||
spacing: {
|
||||
"2px": "2px",
|
||||
},
|
||||
borderWidth: {
|
||||
3: "3px",
|
||||
},
|
||||
width: {
|
||||
96: "24rem",
|
||||
},
|
||||
},
|
||||
},
|
||||
corePlugins: {
|
||||
container: false,
|
||||
},
|
||||
plugins: [
|
||||
require("./tailwindcss/plugins/focus-visible"),
|
||||
require("@tailwindcss/aspect-ratio"),
|
||||
require("@tailwindcss/forms"),
|
||||
require("@tailwindcss/typography"),
|
||||
],
|
||||
};
|
||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue