前端目錄結構

  • build/(工程目錄)css

    • common/html

    • tplAdmin/node

    • tplCustomer/json

    • tplHelpdesk/app

    • tplRepairer/grunt

    • appAdmin/ (獨立模塊,以app名字開頭,各app模塊內容近似)requirejs

    • appCustomer/測試

    • appHelpdesk/ui

    • appRepairer/htm

    • appLogin/

    • common/ (通用模塊庫)

    • utils/ (其餘組件)

    • controller/ (相關的子模板的controller.js存放在這裏)

    • directives/ (相關的directive.js存放在這裏)

    • admin_app.js (app模型定義和路由配置文件)

    • admin_main.js (requirejs的入口和配置文件)

    • admin_services.js (app的相關服務配置文件)

    • angular_filter/ (一些通用的過濾器)

    • common_plugin.js (一些非基於angular的但比較重要組件,例如console plugin)

    • css/

    • img/

    • js/

    • lib/ (包含全部第三方類庫)

    • templete/ (子模板文件夾,其內容按模塊類型分類)

    • 404.html

    • admin.html (admin模塊的入口html)

    • customer.html (customer模塊的入口html)

    • helpdesk.html (helpdesk模塊的入口html)

    • login.html (login模塊的入口html)

    • index.html (程序的總入口點,用以根據配置跳轉到各個模塊入口)

    • repairer.html (repairer模塊的入口html)

    • node_modules/ (grunt)

    • src/ (未經grunt處理的源文件)

    • test/ (端到端測試)

    • gruntfile.js (grunt)

    • human.txt

    • package.json (grunt)

    • README.md

    相關文章
    相關標籤/搜索