src 和 dist 文件夹的作用是什么?
我正在查看 jquery 插件的 git repo.我想在我自己的项目中进行一些更改,但是当我打开存储库时,它具有我以前从未见过的结构.我不确定要使用/复制到我自己的项目中的文件.
I'm looking at a git repo for a jquery plugin. I want to make a few changes for use in my own project, but when I opened up the repo it had a structure I've never seen before. I'm not sure which files to use / copy into my own project.
有一个dist"和一个src"文件夹.这些有什么作用?这是特定于 gruntjs 还是 jquery 插件的东西?
There is a "dist" and a "src" folder. What purpose do these serve? Is this something specific for gruntjs or maybe jquery plugins?
我很好奇的 git repo:https://github.com/ducksboard/gridster.js
The git repo I'm curious about: https://github.com/ducksboard/gridster.js
推荐答案
src/
代表source,是之前的raw code缩小或连接或其他一些编译 - 用于读取/编辑代码.
src/
stands for source, and is the raw code before minification or concatenation or some other compilation - used to read/edit the code.
dist/
代表 distribution,是 minified/concatenated 版本 - 实际用于生产站点.
dist/
stands for distribution, and is the minified/concatenated version - actually used on production sites.
这是为网络上的资产完成的一项常见任务,以使其更小.
This is a common task that is done for assets on the web to make them smaller.
您可以在此处查看示例:http://blog.kevinchisholm.com/javascript/node-js/javascript-concatenation-and-minification-with-the-grunt-js-task-runer/
You can see an example here: http://blog.kevinchisholm.com/javascript/node-js/javascript-concatenation-and-minification-with-the-grunt-js-task-runer/
相关文章