{"id":18484130,"url":"https://github.com/jdf2e/jdf","last_synced_at":"2025-04-07T17:10:03.368Z","repository":{"id":57279941,"uuid":"70460760","full_name":"jdf2e/jdf","owner":"jdf2e","description":"🛠️京东前端自动化构建工具","archived":false,"fork":false,"pushed_at":"2020-11-20T12:12:15.000Z","size":1133,"stargazers_count":168,"open_issues_count":6,"forks_count":22,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-31T14:15:04.406Z","etag":null,"topics":["build-tool","fe","font-end","jdf","jdfx","tool"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdf2e.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-10T07:01:01.000Z","updated_at":"2025-02-25T02:13:37.000Z","dependencies_parsed_at":"2022-09-18T13:02:59.545Z","dependency_job_id":null,"html_url":"https://github.com/jdf2e/jdf","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Fjdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Fjdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Fjdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Fjdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdf2e","download_url":"https://codeload.github.com/jdf2e/jdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411236,"owners_count":20934650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-tool","fe","font-end","jdf","jdfx","tool"],"created_at":"2024-11-06T12:38:40.615Z","updated_at":"2025-04-07T17:10:03.321Z","avatar_url":"https://github.com/jdf2e.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://nodei.co/npm/jdfx.png?downloads=true)](https://nodei.co/npm/jdfx/)\n\n[![NPM version](https://badge.fury.io/js/jdfx.png)](http://badge.fury.io/js/jdfx)  [![Build Status](https://travis-ci.org/jdf2e/jdf.svg?branch=master)](https://travis-ci.org/jdf2e/jdf)\n\n## 关于JDFX\n\nJDFX是京东前端团队自主研发的一款自动化构建工具，目的是合理、快速和高效的解决前端开发中的工程和项目问题，核心集成了本地调试、本地构建、远程布署、代码生成等一系列开发命令工具。\n\n## 安装使用\n\n* [nodejs@4.4.5到最新LTS版本可用](http://nodejs.org/)\n```\n$ npm install jdfx -g\n```\n* 执行`jdf -V`，测试是否安装成功（注意是大写的`V`）\n\n* [快速开始](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_develop.md)\n\n* [配置config.json](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_config.md)\n\n## 更新日志\n\n[完整日志](https://github.com/jdf2e/jdf/blob/master/CHANGELOG.md)\n\n### 3.4.13 / 2020/11/20 18:34:00\n* [fix] 修改node-sass版本，修复node-sass更新到5.0.0后无法在node 8安装的问题。\n\n## 说明文档\n* [示例安装](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_develop.md)\n* [命令文档](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_command.md)\n* [配置文档](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_config.md)\n* [api调用文档](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_api.md)\n* [css优化策略](https://github.com/jdf2e/jdf/blob/master/doc/core_css_optimize.md)\n* [css雪碧图](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_csssprite.md)\n* [smarty模版](https://github.com/jdf2e/jdf/blob/master/doc/core_smarty.md)\n* [tpl模版](https://github.com/jdf2e/jdf/blob/master/doc/core_tpl.md)\n* [vm模版](https://github.com/jdf2e/jdf/blob/master/doc/core_vm.md)\n* [widget说明](https://github.com/jdf2e/jdf/blob/master/doc/core_widget.md)\n* [widgetOutputName标签](https://github.com/jdf2e/jdf/blob/master/doc/core_widgetoutputname.md)\n* [插件模块](https://github.com/jdf2e/jdf/blob/master/doc/core_plugin.md)\n\n## 使用攻略\n* [文件路径拼写说明](https://github.com/jdf2e/jdf/issues/6)\n* [移动端页面开发](https://github.com/jdf2e/jdf/issues/7)\n\n## 功能介绍\n\n#### 跨平台\n* 完美支持windows、mac、linux三大系统\n\n#### 项目构建\n* 生成标准化的项目文件夹\n* 支持本地联调，本地编译，测试预览等开发流程\n* 每个项目拥有独立的配置文件，按选项统一编译\n\n#### 模块开发\n* 可快速方便的对模块进行创建，引用，预览，安装和发布\n* 通过积累，可形成完全符合自己业务的模块云服务\n* 支持将vm和smarty模版编译为html\n* 支持将sass和less编译为css\n* 支持velocity语法\n* 支持ES6(需要将js文件后缀改为`.babel`)\n\n#### 项目输出\n* 自动将页面中的js、css引用转换成combo请求格式\n* 自动压缩优化js、css、图片文件\n* 默认给所有静态资源添加CDN域名\n* 支持cmd规范，自动提取文件id和dependencies，压缩时保留require关键字\n* 自动生成css精灵图，并更新background-position属性值\n* 自动生成base64编码\n* 自动给css样式添加相应的浏览器前缀\n* 支持图片生成webp格式，并更新相关css图片链接\n* 压缩css、js、图片文件，并且可根据当前项目中的文件数量自动决定是否启用多线程进行压缩，当前的数量阀值是`200`\n* 自动给js，css文件的内容头部添加时间戳，方便查看\n* 文件编码统一输出为utf8\n\n#### 项目联调\n* 一键上传文件到测试服务器，方便其他同学开发预览\n\n#### 本地服务\n* 支持开启本地服务器，方便调试\n* 支持本地静态文件预览，内置本地开发调试服务器，以及当前目录浏览\n* 支持实时监听文件，文件被修改时会自动编译成css，并刷新浏览器\n* 内置browserSync\n* [详细文档](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_build.md)\n\n#### 辅助工具\n* 支持html/js/css文件格式化\n* 支持html/js/css代码压缩\n* 支持html/js/css文件lint，代码质量检查\n\n## 集成工具\n\n* [在本地任意目录开启一个server静态服务器](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_server.md)\n* [html/js/css文件lint代码质量检查](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_lint.md)\n* [html/js/css文件格式化](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_format.md)\n* [csssprite图片合并](https://github.com/jdf2e/jdf/blob/master/doc/a_tool_csssprite.md)\n\n## widget组件\n\n* 详情请参考[widget文档](https://github.com/jdf2e/jdf/blob/master/doc/core_widget.md)\n* [vm模版文档](https://github.com/jdf2e/jdf/blob/master/doc/core_vm.md)\n* [tpl模版文档](https://github.com/jdf2e/jdf/blob/master/doc/core_tpl.md)\n* [smarty模版文档](https://github.com/jdf2e/jdf/blob/master/doc/core_smarty.md)\n\n## 编译器插件\n* [Sublime Text2 插件](https://sublime.wbond.net/packages/Jdf%20-%20Tool)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdf2e%2Fjdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdf2e%2Fjdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdf2e%2Fjdf/lists"}