penguin.js
v1.0.0-rc.22
Published
This is a simple building chain for a CMS.
Readme
penguinjs
This is a simple building chain for a CMS.
Directory structure
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).
Tools
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.jsCommands
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
-vThe 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
-pThe directory to store the resulting files (defaultdocs/)-vThe view engine to use (default ishtml[dust] but there is alsopug)
build
This renders all templates under docs/ statically.
Available CLI options
-pThe directory where the packed files are stored (previously generated usingpack, default isdocs/)-dThe directory where data files reside in (default isdata/)
