V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
keith3
V2EX  ›  Node.js

写了个 yeoman generator,问下大家日常 web 前端项目结构是怎样的

  •  
  •   keith3 · Aug 3, 2014 · 4692 views
    This topic created in 4296 days ago, the information mentioned may be changed or developed.
    [项目主页](https://github.com/keith3/generator-gulp-app/), 生成的项目使用gulp做task runner,默认配置了server, livereload,可选项:jquery, less, coffee, js、css压缩,因为自己做的项目中还没有使用coffee, 压缩js/css这些,想问下大家的项目结构一般是怎样的。在工作的朋友给提供了一个
    ```
    - src
    - assets
    - img
    - foo.png
    - foo.js
    - foo.css
    - foo.html
    - build
    ```
    5 replies    2014-08-08 06:31:59 +08:00
    keith3
        1
    keith3  
    OP
       Aug 3, 2014
    怎么设置了markdown语法没作用呢。。

    andy12530
        2
    andy12530  
       Aug 3, 2014
    src目录
    img
    js
    util
    style
    assets
    build目录(空)

    生产环境只开发build目录访问,使用gulp编译src目录到build目录。
    andy12530
        3
    andy12530  
       Aug 3, 2014   ❤️ 1
    果然空格都被删干净了。

    img, js , util, style, assets 都是src下的子目录。
    leonlu
        4
    leonlu  
       Aug 4, 2014   ❤️ 1
    magicdawn
        5
    magicdawn  
       Aug 8, 2014   ❤️ 1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1569 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 16:41 · PVG 00:41 · LAX 09:41 · JFK 12:41
    ♥ Do have faith in what you're doing.