staticbuild 0.0.7
Install from the command line:
Learn more about npm packages
$ npm install @anthonyec/staticbuild@0.0.7
Install via package.json:
"@anthonyec/staticbuild": "0.0.7"
About this version
staticbuild
is a static site generator with minimum dependencies and minimum support for anything other than my own projects.
I'm currently using this in the following projects:
- Small and flat dependency tree, markdown-wasm and mustache.js
- Automatic page reloading when files change
- Configuration is just JavaScript™️
- Markdown files display nicely in GitHub, with images and no ugly front matter table
I was using jekyll
for generating my website. But after switching to a new computer, I found it very difficult to setup Ruby, Bundler and all the other junk that was required to get my site running.
So out of frustration I built my own static site generator within a couple of hours. It was messy but it worked. And was actually faster than jekyll
because I don't need it to be as flexible.
This version of staticbuild
is an attempt to clean things up while still maintaining it's minimalism-ish.
staticbuild <inputDirectory> <outputDirectory> [--watch]
There isn't a built-in way to serve the website generated by staticbuild
. Use a separate HTTP server to view the site locally. I like using http-server
.
npx http-server -c-1 ./dist -p 8081
Details
- staticbuild
- anthonyec
- over 1 year ago
- ISC
- 7 dependencies
Assets
- staticbuild-0.0.7.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0