mirror of
https://github.com/gibbok/typescript-book
synced 2024-11-16 19:47:27 +01:00
855 B
855 B
Tools
These are tools for working with Markdown books.
To install, use nvm use
and npm i
.
To format all TypeScript snippets using Prettier, use npm run format
.
To compile snippets using TypeScript, use npm run compile
.
To apply Prettier formatting to all TypeScript snippets and compile them using TypeScript, use npm run check
.
To mark snippets that you do not want to compile, use <!-- skip -->
just before the TypeScript demarcation.
Generate epub file for English version:
pandoc -o downloads/typescript-book.epub --metadata title="The Concise TypeScript Book" --metadata author="Simone Poggiali" -s README.md
Generate epub file for Chinese version:
pandoc -o downloads/typescript-book-zh_CN.epub --metadata title="The Concise TypeScript Book" --metadata author="Simone Poggiali" -s README-zh_CN.md