penguin.js

2019-06-18 admin

penguin.js是什么

什么是penguin.js,This is a simple building chain for a CMS.

penguin.js使用教程帮助文档

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.js

Commands

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 is html [dust] but there is also pug)

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 (default docs/)
  • -v The view engine to use (default is html [dust] but there is also pug)

build

This renders all templates under docs/ statically.

Available CLI options

  • -p The directory where the packed files are stored (previously generated using pack, default is docs/)
  • -d The directory where data files reside in (default is data/)

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-67571.html

文章标题:penguin.js

回到顶部