-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add MIT license * refactor: extract link and graph generation * refactor: use array * refactor: extract into files * feat: provide fluent interface * feat: fluent interface * fix: take account of class declaration * chore: housekeeping * feat: deno config * refactor: deps directory * wip * docs: add pages * ci: unit tests * style: fmt/lint
- Loading branch information
Showing
27 changed files
with
1,394 additions
and
150 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,49 @@ | ||
name: Publish on GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: pages | ||
|
||
env: | ||
DENO_DIR: /home/runner/.cache/deno | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache Deno dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.DENO_DIR }} | ||
key: ${{ hashFiles('deno.lock') }} | ||
|
||
- name: Setup Deno environment | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Build site | ||
run: deno task build | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: '_site' | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
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,53 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
env: | ||
DENO_DIR: /home/runner/.cache/deno | ||
|
||
jobs: | ||
lint_and_fmt: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache Deno dependencies | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: ${{ env.DENO_DIR }} | ||
key: ${{ hashFiles('deno.lock') }} | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
|
||
- name: Lint files | ||
run: deno lint | ||
- name: Check formatting | ||
run: deno fmt --check | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
deno: [v1.x, canary] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache Deno dependencies | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: ${{ env.DENO_DIR }} | ||
key: ${{ hashFiles('deno.lock') }} | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ matrix.deno }} | ||
|
||
- name: Run unit tests on Deno | ||
run: deno test --allow-none |
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
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Danggeun Market Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import lume from "lume/mod.ts" | ||
import codeHighlight from "lume/plugins/code_highlight.ts" | ||
|
||
const site = lume({ src: "render" }) | ||
const site = lume({ src: "doc" }) | ||
|
||
site.copy("index.html", "index.html") | ||
site.copy("assets", "assets") | ||
|
||
site.use(codeHighlight()) | ||
|
||
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"exclude": ["render/assets", "_site"], | ||
"exclude": ["doc/assets", "render/assets", "_site"], | ||
"tasks": { | ||
"lume": "echo \"import 'lume/cli.ts'\" | deno run --unstable -A -", | ||
"build": "deno task lume", | ||
|
@@ -11,12 +11,13 @@ | |
"proseWrap": "never" | ||
}, | ||
"compilerOptions": { | ||
"allowJs": false, | ||
"allowJs": true, | ||
"checkJs": true, | ||
"exactOptionalPropertyTypes": true, | ||
"lib": ["deno.window", "dom"], | ||
"jsx": "precompile", | ||
"jsxImportSource": "npm:preact", | ||
"types": ["./main.d.ts", "lume/types.ts"] | ||
"types": ["./render/main.d.ts", "lume/types.ts"] | ||
}, | ||
"imports": { | ||
"lume/": "https://deno.land/x/[email protected]/" | ||
|
Oops, something went wrong.