Skip to main content
Deno 2 is finally here 🎉️
Learn more

edia

Test codecov

時刻表をChart.jsによるダイヤグラムに変換します。

サンプル画像 インストール方法

import { render } from "https://deno.land/x/edia@v1.1.1/lib/mod.ts";

const table = document.querySelectorAll(".paper_table tr");
const el = await render(table, location.href);
document.body.insertAdjacentElement("afterstart", el);

ディレクトリ構成

  • .vscode/: vscode設定ファイル。
  • build/: TypeScriptビルド関連。
  • etension/: Chrome拡張用ファイル。
  • lib/: ライブラリ。
  • deno.json: Deno設定ファイル。
  • manifest.json: Chrome拡張設定ファイル。

開発

Denoをインストールする必要があります。

# TypeScriptをビルドしてjsファイルを生成
> deno task build
# TypeScriptをビルドしてjsファイルを生成(ファイル変更の度に自動生成)
> deno task build:watch
# TypeScriptがビルド結果が最新かどうかチェック
> deno task build:check
# テストを実行
> deno task test