# createWeb **Repository Path**: muand/createWeb ## Basic Information - **Project Name**: createWeb - **Description**: 准备做一个建展的网站。 1、通过添加页面组,子页面。 2、然后在页面上添加组件,配置组件内容和属性。然后生成 json保存 3、根据 json 使用 node或者go 脚本,生成一个工程项目的代码,代码可以直接打包为网站,也可以二次开发。 - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2020-08-14 - **Last Updated**: 2021-07-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 超级建站工具 ## 一、文件分级 1. web_create 是网站生成器,用于拖拽配置生成json 2. web_tpl 根据json和模板代码。生成目标工程 3. scripts 脚本代码,用于转换 json 到 目标工程 ## 二、数据结构 ` { id:"xx", // 工程基本配置 config:{ desc:"xxx", name:"xxx", width:1200 }, // 可能需要的 webpack 打包配置 webpack:{ publicPath:"/" }, pages:[ { id:"xxxx", // 页面单独配置 config:{ name:"Home", title:"首页", background:"xxx", url:"/home/index", fileName:"home" }, // 页面的所有用到的组件 components:[ { id:"xxx", type:"header", name:opt.name, // 组件的名字 // 组件的所有配置属性和数据 data:{} } ], // 子页面 children:[ ] } ] } `