This is a simple building chain for a CMS.
data/
This contains the data of the CMS. Usually the user input.pages/
This contains the template source files for the pages (any template language).objects/
This contains the template sources for the objects (any template language).
bin/create_component_map.js
This creates an index file for the components and writes it to stdout. You should place the
resulting file to components.js
. The map is based on the selected field from the package.json
.
$ bin/create_component_map.js --query webdesignio.components >components.js
serve
This starts a development server on http://localhost:3000
to be used to develop a website. It also
starts watchify
and recreates the client runtime on changes (including recreation of
components.js
based on components/
and package.json
).
Available CLI options
-v
The view engine to use (default ishtml
[dust] but there is alsopug
)
pack
This packs all the relevant files, builds the component-renderer-script and places all under
pack/
.
Available CLI options
-p
The directory to store the resulting files (defaultdocs/
)-v
The view engine to use (default ishtml
[dust] but there is alsopug
)
build
This renders all templates under docs/
statically.
Available CLI options
-p
The directory where the packed files are stored (previously generated usingpack
, default isdocs/
)-d
The directory where data files reside in (default isdata/
)