Giter Site home page Giter Site logo

honey's People

Contributors

lanbin avatar xydudu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lanbin

honey's Issues

多项目时的结构

页面中需要引入

honey.source.js + config.js = honey.js 

config.js 中定义各项目的模块路径,以及一个公共的模块路径

root = ''; 
pubroot = '';

公共的模块放在 pub 路径下,项目专用模块则放在相应的路径下。


正式环境

honey.js + compressed combo script

关于 UI widget package 的构想

像 comment,photoview 这样的控件,由模板,CSS,以及javascript构成,像 photoview 还需要针对各种不同情况扩展一些方法,比如: mod_photoview, mod_photoview2。

这么多的关联文件如果散落在各个文件夹,控件多后,必然会造成文件难找,每引入一个控件,都需要在页面中引入一大堆的依赖。

由此,我想将这些控件以 package 的形式发布,在honey.go中只需要标记出为 package,就自然的把相应该的控件包引入进来,就不需要手动的引入过多的依赖

比如 comment 有 widget:comment, tpl:comment 还有 comment.css comment.ie.css 这四个文件,可能可以打包到 directive 文件夹,页面中只需要

honey.go(directive:comment) 

就自动的引入包内所有文件就好。比之现在的

honey.go(widget:comment, tpl:comment) //css 在 widget:comment 内引入

当然要方便得多。

所以 honey 应该识别一下,如果是 directive 就要引入包文件,此时包文件夹内应该有一个类似 package.json 的文件来组织这些依赖。

honey.def 依赖模板的加载问题

比如

honey.go('a, b, c', function() {

})

b 中
honey.def('d', function() {

})

当b模块所依赖的d模块没有在honey.go中引入时,会导致honey.go上注册的函数调用两次

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.