You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a collection of .js scripts which generate basic directory listings as JSON files into your src at expected locations
The create-modulo template
Will include a light index.js that imports Modulo in Node so scripts can use templating or modulo utilities as expected, and run as registered commands
Will include a one that regenerates "articles" as an example, and also
Will include documentation on how to regenerate OR edit with Decap (two options, since "manual" mode)
Include instructions on how to make automatic, if you want (basically include in npm build script)
Second version:
include helpers to make it automatic during development as well (e.g. watching for file changes, and outputting to a gen-build)
One approach that could be useful in the time being, esp. as a static file based replacement for directory listings:
Add scripts to generate files, can be simple node js scripts in a "gen-scripts/" directory
Add another directory, perhaps: gen-build/
Conventionally, the scripts in gen-scripts/ should be run like node gen-scripts/index.js
This gets overlayed with src/ during development / build (just like the current __dirlist system)
Related: Add an example 404.html page
This will create json listings that are "defaults". It's also possible it'd be better these get generated into the same directory, e.g. src/ and gen-build/ be merged, so that DecapCMS plays well. Maybe two modes: "Manual mode" (default, scripts output to src), and "Auto-overlay mode" (uses gen-build)
The text was updated successfully, but these errors were encountered:
Initial version (manual mode only):
Manual mode (does not run during
npm build
)Just a collection of
.js
scripts which generate basic directory listings as JSON files into your src at expected locationsThe create-modulo template
Include instructions on how to make automatic, if you want (basically include in
npm build
script)Second version:
gen-build
)One approach that could be useful in the time being, esp. as a static file based replacement for directory listings:
gen-build/
gen-scripts/
should be run likenode gen-scripts/index.js
src/
during development / build (just like the current__dirlist
system)This will create json listings that are "defaults". It's also possible it'd be better these get generated into the same directory, e.g.
src/
andgen-build/
be merged, so that DecapCMS plays well. Maybe two modes: "Manual mode" (default, scripts output tosrc
), and "Auto-overlay mode" (usesgen-build
)The text was updated successfully, but these errors were encountered: