是前端模块开发的目录模板生成器,在自己的devspace目录下,执行generate或者gen 即可启动模板生成器,跟着命令一步一步 即可生成一个基本目录
在开发机器 /home/xxx/devspace/目录下,执行generate xxx
快速生成项目xx结构的目录
配合pgc-fe-build
开发的入口文件
开发的入口样式文件
测试页面:在该页面可以调用测试编写的模块
编译打包后的js和css的目录
开发目录,modules各个模块的文件都放在这里,样式和js都以模块形式封装,例如需要一个排行榜的模块,可以在modules里面新建立一个rank模块,包含index.js和rank.less文件。在入口的index.js文件中引用该模块即可。
测试目录
可以参考 [email protected]:panda-pgc/pgc-quiz.git