Skip to content

Commit

Permalink
remove MarkdownScript -- remove "commonmark"
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Apr 21, 2024
1 parent fcff218 commit b3d84aa
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 108 deletions.
4 changes: 3 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
update to esmodule
inline DefaultScript to Script

尝试用 node:test 而不用 test-runner

- 因为每次开启 node 解释器有严重的 overhead。

update to esmodule

remove hypergraph support

- move test about hypergraph to docs/archive
Expand Down

This file was deleted.

7 changes: 0 additions & 7 deletions docs/diary/2024-04-21-summary.md.out

This file was deleted.

9 changes: 0 additions & 9 deletions docs/tests/scripts/markdown-script.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/tests/scripts/markdown-script.md.out

This file was deleted.

8 changes: 0 additions & 8 deletions package-lock.json

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

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"scripts": {
"build": "rm -rf lib && tsc",
"build:watch": "rm -rf lib && tsc --watch",
"test:chimera:docs": "test-runner snapshot 'node ./bin/chimera.js run --no-color' 'docs/**/*.(ch|md)' --exclude 'docs/**/*.error.(ch|md)'",
"test:chimera:docs-error": "test-runner snapshot-error 'node ./bin/chimera.js run --no-color' 'docs/**/*.error.(ch|md)'",
"test:chimera:docs": "test-runner snapshot 'node ./bin/chimera.js run --no-color' 'docs/**/*.ch' --exclude 'docs/**/*.error.ch'",
"test:chimera:docs-error": "test-runner snapshot-error 'node ./bin/chimera.js run --no-color' 'docs/**/*.error.ch'",
"test:chimera": "npm run test:chimera:docs && npm run test:chimera:docs-error",
"test:node": "node --test",
"test": "npm run test:node && npm run test:chimera",
Expand All @@ -24,7 +24,6 @@
"@cicada-lang/partech": "^0.2.5",
"@xieyuheng/command-line": "^0.0.13",
"@xieyuheng/ty": "^0.1.26",
"commonmark": "^0.30.0",
"immutable": "^4.3.4",
"lodash": "^4.17.21",
"node-watch": "^0.7.4",
Expand All @@ -33,7 +32,6 @@
"sjcl": "^1.0.8"
},
"devDependencies": {
"@types/commonmark": "^0.27.7",
"@types/lodash": "^4.14.199",
"@types/node": "^20.8.3",
"@types/sjcl": "^1.0.31",
Expand Down
64 changes: 0 additions & 64 deletions src/scripts/MarkdownScript.ts

This file was deleted.

6 changes: 1 addition & 5 deletions src/scripts/createScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@ import type { Script } from "../script"
import * as Scripts from "../scripts"

export function createScript(mod: Mod, text: string): Script {
if (mod.options.url.href.endsWith(".md")) {
return new Scripts.MarkdownScript(mod, text)
} else {
return new Scripts.DefaultScript(mod, text)
}
return new Scripts.DefaultScript(mod, text)
}
1 change: 0 additions & 1 deletion src/scripts/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./DefaultScript"
export * from "./MarkdownScript"
export * from "./createScript"

0 comments on commit b3d84aa

Please sign in to comment.