Skip to content

Commit

Permalink
notion kroki
Browse files Browse the repository at this point in the history
  • Loading branch information
zuisong committed Oct 17, 2023
1 parent 9647a99 commit 4b52476
Show file tree
Hide file tree
Showing 12 changed files with 198 additions and 153 deletions.
2 changes: 0 additions & 2 deletions build-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
Metadata,
userscriptMetadataGenerator,
} from "userscript-metadata-generator";
import { requiredLibs } from "./src/userscript-meta.ts";
import packageJson from "./package.json" assert { type: "json" };
export function meta(): string {
const metadata: Metadata = {
Expand All @@ -17,7 +16,6 @@ export function meta(): string {
license: "MIT",
match: ["*://www.notion.so/*", "*://*.notion.site/*", "*://*.super.site/*"],
supportURL: "https://github.com/zuisong/notion-kroki/issues",
require: requiredLibs,
"run-at": "document-idle",
author: "zuisong",
description: "Render notion code block as graph by kroki",
Expand Down
52 changes: 42 additions & 10 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
{
"imports": {
"deno_std/": "https://deno.land/[email protected]/",
"esm.sh/": "https://esm.sh/v131/",
"fflate": "npm:[email protected]",
"esm.sh/": "https://esm.sh/v133/",
"esbuild": "npm:esbuild-wasm",
"@happy-dom/global-registrator": "npm:@happy-dom/global-registrator",
"userscript-metadata-generator": "https://raw.githubusercontent.com/trim21/userscript-metadata-generator/v0.2.4/src/index.ts"
},
"scopes": {},
"compilerOptions": {
"allowJs": true,
"strict": true,
"lib": ["dom", "dom.iterable", "dom.asynciterable", "deno.ns"]
"lib": [
"dom",
"dom.iterable",
"dom.asynciterable",
"deno.ns"
]
},
// "lock": false,
"nodeModulesDir": false,
Expand All @@ -22,21 +28,47 @@
"html-report": "deno task clean && deno task test-cov && genhtml -o coverage/html coverage/lcov.info"
},
"lint": {
"include": ["src/", "test/", "*.ts", "*.js*"],
"include": [
"src/",
"test/",
"*.ts",
"*.js*"
],
"rules": {
"tags": ["recommended"],
"include": ["ban-untagged-todo"],
"exclude": ["no-unused-vars"]
"tags": [
"recommended"
],
"include": [
"ban-untagged-todo"
],
"exclude": [
"no-unused-vars"
]
}
},
"fmt": {
"include": ["src/", "test/", "*.ts", "*.js*", "*.json*", "README.md"]
"include": [
"src/",
"test/",
"*.ts",
"*.js*",
"*.json*",
"README.md"
]
},
"options": {
"useTabs": false
},
"test": {
"include": ["test/"]
"include": [
"test/"
]
},
"exclude": ["dist/", "coverage/", ".vscode/", ".idea/", "*.user.js"]
"exclude": [
"dist/",
"coverage/",
".vscode/",
".idea/",
"*.user.js"
]
}
49 changes: 18 additions & 31 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as esbuild from "esbuild-wasm";
import * as rollup from "rollup";
export { default as resolveUri } from "@jridgewell/resolve-uri";
import * as esbuild from "esbuild";
import * as rollup from "esm.sh/rollup@3.29.4";
export { default as resolveUri } from "esm.sh/@jridgewell/resolve-uri@3.1.1";
export { esbuild, rollup };
155 changes: 61 additions & 94 deletions notion-kroki.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4b52476

Please sign in to comment.