{"id":20651770,"url":"https://github.com/openblockcc/openblock-resource-cli","last_synced_at":"2025-04-17T14:21:12.510Z","repository":{"id":104408316,"uuid":"448014596","full_name":"openblockcc/openblock-resource-cli","owner":"openblockcc","description":"Cli tools for resource translation and pre-process before release.","archived":false,"fork":false,"pushed_at":"2022-04-04T05:08:48.000Z","size":222,"stargazers_count":0,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T06:11:24.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openblockcc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-01-14T15:26:45.000Z","updated_at":"2022-01-14T15:27:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e65cfc6-9c37-4a0e-8b33-b183e1fafb58","html_url":"https://github.com/openblockcc/openblock-resource-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openblockcc%2Fopenblock-resource-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openblockcc%2Fopenblock-resource-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openblockcc%2Fopenblock-resource-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openblockcc%2Fopenblock-resource-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openblockcc","download_url":"https://codeload.github.com/openblockcc/openblock-resource-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249347776,"owners_count":21255189,"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":[],"created_at":"2024-11-16T17:29:31.289Z","updated_at":"2025-04-17T14:21:12.501Z","avatar_url":"https://github.com/openblockcc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openblock-resource-cli\n\n[![Publish npm package](https://github.com/openblockcc/openblock-resource-cli/actions/workflows/publish.yml/badge.svg)](https://github.com/openblockcc/openblock-resource-cli/actions/workflows/publish.yml)\n![GitHub](https://img.shields.io/github/license/openblockcc/openblock-resource-cli)\n\nProvide some cli tools for resource translation and pre-process before release.\n\n## Instructions\n\n- Pre-process tools for release\n\n  - **opt-size** used to delete useless files to reduce the expansion size\n\n  - **gen-config** used to rewrite the configuration file that records the update parameters and folder hash\n\n      eg: `gen-config --version=v0.0.1`\n\n- Translation tools\n\n  - **i18n-extract** used to extract all i18n content within resources identified as community official extensions\n\n  - **i18n-push** used to push the extracted i18n content to transifex\n\n  - **i18n-update** used to pull the translation content on transifex, generate and update the local translation file\n\n- Release tools\n\n  - **upload-file** used to upload a file to digital ocean spaces. Used in updates in China.\n\n    eg: `upload-file --filePath=test.zip --endPoint=https://sgp1.digitaloceanspaces.com --bucket=openblock`\n\n  - **upload-releaseInfo** used to fetch latest release info and upload it to digital ocean spaces. Used in updates in China.\n\n    eg: `upload-releaseInfo --repo=openblockcc/external-resources-v2 --endPoint=https://sgp1.digitaloceanspaces.com --bucket=openblock`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenblockcc%2Fopenblock-resource-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenblockcc%2Fopenblock-resource-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenblockcc%2Fopenblock-resource-cli/lists"}