eternia
v1.0.63
Published
Eternia Static Site Generator
Downloads
3
Readme
eternia
Eternia Static Site Generator
Installation
npm -g i eternia
Example
eternia create furkies-purrkies md
eternia build catpea.com
hs -o -c-1 ./dist/furkies-purrkies/wwwroot/
Usage
eternia build <task-name> #run it the directory containing your content database.
eternia create furkies-purrkies [md] # to create markdown record.
eternia create furkies-purrkies [html] # to create html record.
eternia create --name "The Philosopher" westland-warrior # to create a new yaml record.
How does it work?
Eternia works in three simple steps:
- Read the index.json of all the records in the database directory.
- Invoke a series of middleware plugins that transform the record into its cache directory.
- Write the results to a destination directory!
Notes
Because of aggressive caching it is recommended that you preserve time-stamps, use the -p
flag with scp and -H posix
with tar to store high resolution timestamps.
# tar using -H posix
tar -c -H posix -f furkies-purrkies.tar --exclude='*.mp4' furkies-purrkies
# scp using -p
scp -p -r bork:code/furkies-purrkies .