mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-10 11:59:59 +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.
33 lines
842 B
JSON
33 lines
842 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "esNext",
|
|
"moduleResolution": "node",
|
|
"target": "es6",
|
|
"lib": [
|
|
"es2015",
|
|
"dom"
|
|
],
|
|
"newLine": "LF",
|
|
"baseUrl": ".",
|
|
// Additional compile options
|
|
"noEmitOnError": true,
|
|
"preserveWatchOutput": true,
|
|
"jsx": "react",
|
|
"jsxFactory": "h",
|
|
// Strict Type-Checking Options
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"importsNotUsedAsValues": "error",
|
|
"forceConsistentCasingInFileNames": true,
|
|
|
|
// Needed for some of our internal stuff.
|
|
"allowSyntheticDefaultImports": true,
|
|
},
|
|
"include": [
|
|
"src/web",
|
|
]
|
|
}
|