Generate Markdown files
Ever wondered how to DRY (Don’t Repeat Yourself) in a README.md
file? Or generate contents in any Markdown file? As it turns out, it’s quite simple.
Ever wondered how to DRY (Don’t Repeat Yourself) in a README.md
file? Or generate contents in any Markdown file? As it turns out, it’s quite simple.
When installing packages to a Node.js project, many people stick with the default npm. Many people also use its alternative, yarn, but few know about more uncommon ones like pnpm or dry.
…Most of my Node.js projects require some build routine. As a fan of minimalism, for simple builds I used to write short scripts operating directly on fs
. In order to avoid duplication and simplify the process for future, I created a simple npm package. I described the required steps below.
For simple build tasks in Node.js I use a custom script. Let’s consider the following requirements:
dist
and dist/assets
folders.dist/background-dist.js
.assets/*.png
files to dist/assets/
.