Smart PG integrated development platform pgting-cli released

introduce

Two weeks ago we released a smart page building platform -  Smart PG (pgting) , which was favored by users, and many users tried to develop components online. In order to facilitate user-customized development of components and component sharing, the development of component customization was considered at the beginning of the design of smart PG. For this reason, we designed and developed pgting- cli, a smart PG integrated workbench, to connect online and offline.

Users who don’t know about Smart PG (pgting) can check this introduction: Smart PG (pgting), a drag-and-drop smart page building system

pgting-cli is a node integrated workbench, no configuration is required, and it can be used out of the box. pgting-cli mainly provides local component development environment, panel visual design, etc., which is exactly the same as the online environment, and the data is synchronized with one key.

pgting-cli文档地址:https://www.pgting.com/pg-doc/pgting-cli
智慧PG(pgting)地址:https://www.pgting.com

The online editor clicks Local Development and provides a short introduction.

online editor

Function:

pgting-cli is a node command tool, similar to the scaffolding tool we use, which integrates the following functions:

  • Smart PG system operating environment
  • Component configuration panel design and preview
  • Component initial property value setting
  • generate configuration file
  • New component
  • Pull online components remotely
  • Save components online

Table overview

basic use

Install:

To use pgting-cli , you need to install the node environment first, and select the node version above 16.1.x

yarn global add pgting-cli

New component

mkdir demo
cd demo
pg init // 新建组件
yarn
yarn dev

Pull online components

Pull online components, after starting the project, you need to synchronize online data first

mkdir demo
cd demo
pg pull 组件id // 拉取组件
yarn
yarn dev

Here is a brief introduction. For the specific use of pgting-cli, please refer to: User Manual

Guess you like

Origin blog.csdn.net/qdmoment/article/details/131058826