Skip to content

Commit

Permalink
setup skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
MidAutumnMoon committed Jul 30, 2024
0 parents commit 6532183
Show file tree
Hide file tree
Showing 11 changed files with 1,850 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_site
_cache
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Br

## Brrr Ideas to Implement

- [ ] [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)
46 changes: 46 additions & 0 deletions _config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import Lume from "lume/mod.ts"

import Esbuild from "lume/plugins/esbuild.ts"
import JsxPreact from "lume/plugins/jsx_preact.ts"

import Postcss from "lume/plugins/postcss.ts"
import PostcssNesting from "npm:postcss-nesting"

import Unocss from "lume/plugins/unocss.ts"
import UnoPresetUno from "@unocss/preset-uno"
import UnoPresetIcons from "@unocss/preset-icons"
import UnoPresetTypography from "@unocss/preset-typography"

import SlugifyUrls from "lume/plugins/slugify_urls.ts"
import Toml from "lume/plugins/toml.ts"


const site = Lume( {
src: "src",
location: new URL( "https://br.418.im/" )
} )

site.use( Esbuild() )
site.use( JsxPreact() )

site.use( Postcss( {
plugins:[ PostcssNesting ]
} ) )

site.use( Unocss( {
options: {
presets: [
UnoPresetUno,
// UnoPresetIcons(),
UnoPresetTypography
],
},
reset: "eric-meyer",
cssFile: "uno.css",
} ) )

site.use( SlugifyUrls() )
site.use( Toml() )


export default site
20 changes: 20 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"imports": {
"lume/": "https://deno.land/x/[email protected]/",
"@unocss": "npm:@unocss"
},

"tasks": {
// TODO: tighten permissions
"lume": "echo \"import 'lume/cli.ts'\" | deno run -A -",
"build": "deno task lume",
"serve": "deno task lume -s"
},

"compilerOptions": {
"types": [ "lume/types.ts" ],
"jsx": "react-jsx",
"jsxImportSource": "npm:preact"
}

}
Loading

0 comments on commit 6532183

Please sign in to comment.