rxliuli | 琉璃

mami A cross-tool document converter

Original link: https://blog.rxliuli.com/p/a657a02fccca4f788fb864f2ec8ebfa0/ A tool I am writing recently to connect different tools so that their data can be converted to each other. The main use case is multi-platform publishing and cross-application migration, such as selecting a part from joplin/obsidian notes and rendering them as blog sharing through hexo/hugo To others, in fact, now you […]

mami A cross-tool document converter Read More »

vite – more than just a build tool

Original link: https://blog.rxliuli.com/p/0987a1de82694970851755d02920bc6e/ It’s been two years since vite released its first version (2020-04), and recently it released 3.0 without much break change. Maybe some people are already using it, but there are also many people who see the tools created by the vue author and take a detour, because the tools in the vue

vite – more than just a build tool Read More »

code generation – generate type definitions from environment variables

Original link: https://blog.rxliuli.com/p/d867b35e62454483ae697185d93617ab/ foreword Both the previous code generation – after generating dts from module css , this article implements the generation of interfaces from environment variables, so that it can have correct type hints during development. motivation In daily front-end development, environment variables are often used to distinguish the configuration of different environments, the

code generation – generate type definitions from environment variables Read More »

Gossip site’s Google indexing issues

Original link: https://blog.rxliuli.com/p/cb752f65aeee4661bf4f31fa7d2a2729/ Scenes Since February this year, I have created a GitHub project for the translation of Magical Girl Madoka-Flying to the Stars fan fiction, and it has been maintained until now. Initially, this project just packaged the translations of the current authors into epubs for reading on mobile phones and e-readers, while avoiding

Gossip site’s Google indexing issues Read More »

TypeScript code generation

Original link: https://blog.rxliuli.com/p/b8e8ce8bccff49d191480a40a18a7fc8/ foreword Code generation is not an unfamiliar concept to many developers. From generating projects with scaffolding (create-react-app), to generating code with IDE, or generating code from backend api schema, it is almost impossible to avoid using it. It can solve a variety of problems Generate projects from the same source to avoid

TypeScript code generation Read More »

JavaScript ESM is good, but it may not be so good right now

Original link: https://blog.rxliuli.com/p/73331967c1814df480811eee598e714b/ foreword Many front-end developers may know that since sindresorhus issued the esm only declaration for more than a year last year, many projects have turned to esm only, that is, only supporting esm but not cjs, in order to force the entire ecosystem to migrate to esm faster only. Some popular projects

JavaScript ESM is good, but it may not be so good right now Read More »

Use the ESBuild plugin mechanism to achieve the required functionality

Original link: https://blog.rxliuli.com/p/ba9b341a8792405fb86d8fe02a18adfc/ foreword esbuild is a general-purpose code compiler and build tool, built with golang, it is very fast, and its performance is 1~2 orders of magnitude higher than the existing js toolchain. It’s not currently an out-of-the-box build tool, but with its plugin system, we can already do many things. Automatically exclude all

Use the ESBuild plugin mechanism to achieve the required functionality Read More »