Web 开发人员的项目模板目录 [英] Web-Developer's Project Template Directory
问题描述
重要提示:接受的答案在赏金后被接受,不一定是因为我觉得这是最好的答案.
IMPORTANT: The accepted answer was accepted post-bounty, not necessarily because I felt it was the best answer.
我发现自己在开始新项目时一遍又一遍地做事情.我创建了一个带有子文件夹的文件夹,然后复制一些标准项目,如 css 重置文件、famfamfam 图标、jquery 等.
I find myself doing things over and over when starting new projects. I create a folder, with sub-folders and then copy over some standard items like a css reset file, famfamfam icons, jquery, etc.
这让我想到了理想的起始模板是什么.我问的原因是我再次经历,想知道我应该在我的模板中包含什么,这样我就不必在将来返回并在我开始的每个新站点上重新执行此操作.
This got me thinking what the ideal starting template would be. The reason I'm asking is that I'm going through once again and am wondering what I should include in my template so that I don't have to go back in the future and do this all over again with every new site I start.
我目前拥有的内容如下:
What I currently have follows:
- index.html -- XHTML 1.0 Strict Doctype.元标签.引用了 CSS/js 文件.
- css/
- default.css -- 空.保留给用户样式.
- 960/-- 用于 CSS 布局的 960 网格系统.
- 960.css
- reset.css
- text.css
- default.js -- 空.为用户脚本保留.
- jQuery/-- 轻量级 Javascript 框架
- jquery-1.3.1.min.js
- famfamfam/--优秀的png图标集合
- 图标/
- 接受.png
- 添加.png
- ...等
推荐答案
我有类似的结构和命名约定,但对于 CSS,我使用 BluePrint 我发现它更具可扩展性.也更喜欢最近从原型切换的 jQuery.此外,我有一个 common.js 文件,它是带有 jQuery 自定义函数的扩展.
I have a similar structure and naming convention but for CSS, I use BluePrint which I find is more extensible. Also prefer jQuery having recently switched from prototype. In addition I have a common.js file that is an extension with custom functions for jQuery.
一个/db/文件夹,其中包含包含架构定义的 .sql 文件.用于常见中间层库的/lib/文件夹.
A /db/ folder with .sql files containing schema definitions. A /lib/ folder for common middle-tier libraries.
我还会有一个/src/文件夹,其中有时会包含原始文件,例如 Photoshop 模板、自述文件、待办事项列表等.
I will also have a /src/ folder which will sometimes have raw files such as Photoshop templates, readme's, todo lists etc.
这篇关于Web 开发人员的项目模板目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
- 图标/