Giter VIP home page Giter VIP logo

fe-module-generater's Introduction

这里是readme文档

pgc-fe-generater

是前端模块开发的目录模板生成器,在自己的devspace目录下,执行generate或者gen 即可启动模板生成器,跟着命令一步一步 即可生成一个基本目录

前端模块开发 快速搭建项目工具

在开发机器 /home/xxx/devspace/目录下,执行generate xxx

快速生成项目xx结构的目录

配合pgc-fe-build

模块提供的目录结构简介

index.js

开发的入口文件

index.less

开发的入口样式文件

demo

测试页面:在该页面可以调用测试编写的模块

lib

编译打包后的js和css的目录

src

开发目录,modules各个模块的文件都放在这里,样式和js都以模块形式封装,例如需要一个排行榜的模块,可以在modules里面新建立一个rank模块,包含index.js和rank.less文件。在入口的index.js文件中引用该模块即可。

test

测试目录

例子

可以参考 [email protected]:panda-pgc/pgc-quiz.git

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.