{"id":21413219,"url":"https://github.com/jweboy/tools-backend","last_synced_at":"2026-04-13T12:01:50.834Z","repository":{"id":97627015,"uuid":"370598997","full_name":"jweboy/tools-backend","owner":"jweboy","description":"各类实用工具的后台，目前支持颜色值转换、网上静态资源下载等功能。","archived":false,"fork":false,"pushed_at":"2021-05-25T08:12:13.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T17:55:03.570Z","etag":null,"topics":["antd","react","webpack"],"latest_commit_sha":null,"homepage":"https://jweboy.com/tools-backend/","language":"TypeScript","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/jweboy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-25T07:11:27.000Z","updated_at":"2021-05-25T08:12:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9e8cb72-89bb-44dc-811e-6288ba3c6c90","html_url":"https://github.com/jweboy/tools-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jweboy/tools-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweboy%2Ftools-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweboy%2Ftools-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweboy%2Ftools-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweboy%2Ftools-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jweboy","download_url":"https://codeload.github.com/jweboy/tools-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweboy%2Ftools-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31751705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["antd","react","webpack"],"created_at":"2024-11-22T18:17:34.952Z","updated_at":"2026-04-13T12:01:50.803Z","avatar_url":"https://github.com/jweboy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 模板项目\n\n## 环境变量\n\n项目全局有四种环境变量，分别是开发（`dev`）、测试（`test`）、压测（`perf`）、生产（`prod`），对应 `npm` 脚本注入不同的环境变量值来区分不同的配置，例子如下：\n\n```js\n// test就是测试环境的全局变量，通过脚本注入方式\n// cross-env 环境变量注入库 ENV=环境变量\n// ENV=环境变量\n\"build:test\": \"cross-env ENV=test umi build\"\n```\n\n## ENV文件\n如果在同一个环境中需要配置多个全局变量（如：请求API等），只需在 `.env.${ENV}` 文件中添加即可。（ `${ENV}` 可替换成不同的环境变量值，如：`dev`，即 `.env.dev` ）`.env.${ENV}` 文件遵循 `key=value` 的规范,可任意添加多个变量值，例子如下：\n\n```js\n.ev.perf // 针对测压环境的环境变量文件\n\n// 可存放固定密钥串、API请求地址、外链地址等等\nPUBLICKEY=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCl1DvAhU/lXdM0hFe1FCksP0zaQBMBgfQfqSY685V1s5zFM5ZQ/j+azHKSZQ7pUZY9aeWXFT6cbt2ZkwNYY0chVTMl9tm0q7x7ESHecV1pyxIqt/2szxbl7tAa0zfDbDFq9vuxq6wnVuFwFQl4cMmWn4FTxxb6NwP3dYBWPVcYswIDAQAB\nAPI=http://admanage.perf.shuli.com\nH5_URL=http://ssp-static.perf.shuli.com\nH5_DIRECT_URL=https://gateway-perf.shulidata.com/avt/direct/ssp/activity/directTask\nDIRECT_URL=http://gateway.perf.shuli.com/avt/direct/ssp/h5/aggregation\nUPS_URL=http://ups.perf.shuli.com\nDSP_URL=http://shuliadplatform-static-perf.shuli.com\n\n```\n\n## 执行脚本\n\n项目包含的 `build:${ENV}`（ `${ENV}` 可替换成不同环境的环境变量值，分别为 `dev`、`test`、`perf`）系列脚本是跟 [Jenkins](http://jenkins.shuli.com/) 项目部署的构建脚本一一对应，生产环境无需指定 `ENV` 变量，默认就是 `build` 脚本 。\n\n\n### start\n用于本地开发。\n\n### build\n用于生产环境打包。\n\n### build:dev\n用于开发环境打包。\n\n### build:test\n用于测试环境打包。。\n\n### build:perf\n用于压测环境打包。\n\n### build:analyze\n用于分析打包后的文件大小，只有在项目打包特别慢的时候比较有用。\n\n### preinstall\n在执行 `npm install` 或者 `yarn` 的时候会自动挂载内部 `npm` 仓库的代理，这个脚本无需手动执行，但`不能删除`，因为项目引用了内部组件。 `stu`。\n\n### precommit\n如果在命令行通过 `git commit` 或者 `gc` 命令提交代码，会默认在代码提交前进行拦截，并执行代码的格式化，完成后会执行代码提交模板，此时才可继续进行提交操作，如不需要`可删除`。\n\n### lint\n用于代码格式化，主要通过 `eslint` 结合 `prettier` 实现。`eslint`是编码规范，`perttier`是代码格式化，（`eslint` 对应配置文件是 `.eslintrc.js` 和 `.eslintignore`, `perttier` 对应配置文件是 `.prettierrc` 和 `.prettierignore` ），如不需要`可删除`。\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjweboy%2Ftools-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjweboy%2Ftools-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjweboy%2Ftools-backend/lists"}