{"id":43841577,"url":"https://github.com/bravf/fepack","last_synced_at":"2026-02-06T05:11:14.158Z","repository":{"id":57234439,"uuid":"67575391","full_name":"bravf/fepack","owner":"bravf","description":"一款配置简单、功能强大的前端构建工具","archived":false,"fork":false,"pushed_at":"2018-11-19T02:17:01.000Z","size":1194,"stargazers_count":21,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-26T01:20:48.535Z","etag":null,"topics":[],"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/bravf.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-09-07T05:37:01.000Z","updated_at":"2021-09-16T10:27:30.000Z","dependencies_parsed_at":"2022-09-14T12:20:53.399Z","dependency_job_id":null,"html_url":"https://github.com/bravf/fepack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bravf/fepack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bravf%2Ffepack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bravf%2Ffepack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bravf%2Ffepack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bravf%2Ffepack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bravf","download_url":"https://codeload.github.com/bravf/fepack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bravf%2Ffepack/sbom","scorecard":{"id":251564,"data":{"date":"2025-08-11","repo":{"name":"github.com/bravf/fepack","commit":"f64451601d4dc5c4820278e0f46477267408087f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 2/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T08:35:39.855Z","repository_id":57234439,"created_at":"2025-08-17T08:35:39.855Z","updated_at":"2025-08-17T08:35:39.855Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29151859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-02-06T05:11:13.445Z","updated_at":"2026-02-06T05:11:14.143Z","avatar_url":"https://github.com/bravf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fepack\n\n[![Version](http://img.shields.io/npm/v/fepack.svg)](https://www.npmjs.org/package/fepack)\n\nfepack是面向前端的工程构建工具。解决前端工程中资源加载、模块化开发、自动化工具、代码部署等问题。\n\n```\n1、安装全局依赖\nnpm install -g typescript\ngem install compass\n\n2、安装fepack\nnpm install -g fepack\n```\n\n## 例子\n```\nmkdir my-proj\ncd my-proj\n\nfepack init // 生成fepack.json，配置看后文介绍\nfepack release dev\nfepack server start\n\n在浏览器中打开127.0.0.1:8080\n```\n\n## 支持功能\n1. 语法增强，支持\n    ```\n    (typescript,es6,coffee) =\u003e es5\n    sass =\u003e css\n    (jade,md) =\u003e html\n    jsx =\u003e js\n    ```\n\n2. 静态资源加版本号（支持.html inline模式 `\u003cscript src=\"a.js\" inline\u003e\u003c/script\u003e, \u003clink href=\"a.css\" inline\u003e`）\n3. 文件压缩\n4. 源文件常量注入\n5. 文件大小检测，主要是图片文件，默认大于200k报警\n6. 增加velocity模板语法支持，[用法](https://github.com/bravf/fepack/tree/master/test/vm)\n7. 支持jade文件mock，默认会去根目录mock目录下查找路径相同的js文件，比如 mock/index.data.js\n\n\n## 模块加载\n### fepack支持browserify式的模块加载\n```js\n// require业务js文件\nlet head = require('./head.js')\n\n// require 4种格式模板文件\nlet headTemplate = require('./head.tpl')\nrequire('./head.html')\nrequire('./head.jade')\nrequire('./head.md')\n\n// require css\n// index.css内容会被以style tag方式插入到head里\n// cssModule代表生成的style tag\nlet cssModule = require('./index.css')\n\n// require npm安装的node包（不支持依赖native环境的包）\n// 在项目根目录npm install --save cookie\nlet cookie = require('cookie')\n```\n\n## fepack.json\n```js\n{\n    \"server\": {\n\n        //server监听的端口\n        \"port\": 8080    \n    },\n    \"release\": {\n\n        //项目名，会加到被引用的资源前\n        \"project\": \"\",  \n\n        //域名，会加到被引用的资源前\n        \"domain\": \"//s1.mljr.com\",\n\n        //是否开启coffee编译\n        \"coffee\": \"false\", //默认不开启（如果开启，需要提前全局安装coffeescript, npm install -g coffee-script）\n\n        //编译实例\n        \"cases\": {\n            \"dev\": {\n                \"optimize\": false,\n                \"version\": true,\n                \"watch\": true,\n\n                //常量注入\n                //js里使用：let a = \"@{FEPACK.aa}\" =\u003e let a = \"aaaa\"\n                //jade里使用： #{FEPACK.aa}\n                \"env\": {    \n                    \"aa\": \"aaaa\",\n                    \"bb\": \"bbbb\",\n                    \"a\": \"cc\"\n                }\n            },\n            \"qa\": {\n                //是否压缩，默认false\n                \"optimize\": true,\n\n                //是否加版本号，默认false\n                \"version\": true,\n\n                //是否watch，默认false  \n                \"watch\": false,\n\n                //是否启用域名，默认false  \n                \"domain\": true,\n\n                //覆盖全局的domain\n                \"reDomain\": \"//s2.mljr.com\",\n\n                 //指定编译结果目录，\n                 //默认为/Users/${user}/.fedog-tmp/www\n                \"www\": \"../www\",\n                \n                //如果指定为ture，则保留page目录下的jade文件不编译，主要用来发布时server端使用，并且会\b强制开启optimize\n                \"jadeKeep\" : false\n            }\n        },\n\n        // 设置文件原样复制，中间不做任何处理\n        \"copy\": [\n            \"**/*.min.js\",\n            \"static/script/copy/**/*\"\n        ],\n\n        // 设置文件忽略\n        \"ignore\": [\n            \"static/script/ignore/**/*\",\n            \"fepack.json\"\n        ],\n\n        // 设置全局模块引用\n        \"externals\": {\n            \"jquery\": \"window.$\"\n        },\n\n        // 设置postcss配置\n        \"postcss\": {\n            \"autoprefixer\": {\"browsers\": [\"last 2 versions\", \"iOS 7\", \"Android 4.4\", \"\u003e 5%\"]},\n            \"pxtorem\": {\n                \"root_value\": 40,\n                \"prop_white_list\": []\n            }\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbravf%2Ffepack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbravf%2Ffepack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbravf%2Ffepack/lists"}