Code Monkey home page Code Monkey logo

Comments (4)

littledu avatar littledu commented on May 17, 2024

这个问题跟我们的规定有关,我们认为所有文件都是模块,都是可以公用的,所以不需要分目录存放,如果你觉得不好区分,可以适当用前缀来统一,比如库文件以 lib- 为前缀, ui 类用 ui- 比较纠结,以此类推可以有 commom- ,base- 等。

from tmt-workflow.

ouzhou avatar ouzhou commented on May 17, 2024

还有一个小的建议 加一些代码检查的东西比如jshint 或者代码风格jscs怎么样

from tmt-workflow.

littledu avatar littledu commented on May 17, 2024

嗯,后面考虑加一下,毕竟会让流程显得更完整。我们都使用 webstorm 作为主编辑器,比较强大,基本上一出错就会有相应提示,所以对我们来说 jshint 等就不是特别必要。

from tmt-workflow.

littledu avatar littledu commented on May 17, 2024

你是不是修改了 build_dist 的 less 的出口文件?要不然是不会去获取到二级目录下面的 style-.less 的,理论来讲我们 css 的出口文件都在一级目录,二级目录你想放一些公用的模块也是可以的,雪碧图是没有问题的,只要你把 style-header.less -> header.less, 然后在需要这一个模块的 style-.less 里面 @import 'commom/header' 即可

from tmt-workflow.

Related Issues (20)

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.