-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6532183
Showing
11 changed files
with
1,850 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
_site | ||
_cache |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
|
||
} |
Oops, something went wrong.