mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-05 09:36:19 +00:00
178126725e
- Add a basic data exporter to the test mod, run via a /ccexport command. This dumps all of CC's recipes, and the item icons needed to display those recipes. - Post-process our illuaminate HTML, applying several transforms: - Apply syntax highlighting to code blocks. We previously did this at runtime, so this shaves some bytes off the bundle. - Convert a mc-recipe custom element into a recipe grid using react/react-dom. - Add a recipe to the speaker page. I'll probably clean this up in the future (though someone else is free to too!), but it's a nice start and proof-of-concept. I tried so hard here to use next.js and MDX instead of rolling our own solution again, but it's so hard to make it play well with "normal" Markdown, which isn't explicitly written for MDX.
30 lines
724 B
JSON
30 lines
724 B
JSON
{
|
|
"name": "tweaked.cc",
|
|
"version": "1.0.0",
|
|
"description": "Website additions for tweaked.cc",
|
|
"author": "SquidDev",
|
|
"license": "BSD-3-Clause",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"preact": "^10.5.5",
|
|
"tslib": "^2.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@rollup/plugin-typescript": "^8.2.5",
|
|
"@rollup/plugin-url": "^6.1.0",
|
|
"@types/glob": "^7.2.0",
|
|
"@types/react-dom": "^18.0.5",
|
|
"glob": "^8.0.3",
|
|
"react": "^18.1.0",
|
|
"react-dom": "^18.1.0",
|
|
"rehype": "^12.0.1",
|
|
"rehype-highlight": "^5.0.2",
|
|
"rehype-react": "^7.1.1",
|
|
"requirejs": "^2.3.6",
|
|
"rollup": "^2.33.1",
|
|
"rollup-plugin-terser": "^7.0.2",
|
|
"ts-node": "^10.8.0",
|
|
"typescript": "^4.0.5"
|
|
}
|
|
}
|