{"id":39588958,"url":"https://github.com/yinzhenyu-su/vue-cli-plugin-build-version","last_synced_at":"2026-01-18T07:40:55.137Z","repository":{"id":52427562,"uuid":"297817299","full_name":"yinzhenyu-su/vue-cli-plugin-build-version","owner":"yinzhenyu-su","description":"Generate a build.version file in vue-cli project after project build.","archived":false,"fork":false,"pushed_at":"2021-05-19T03:14:54.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T02:26:35.168Z","etag":null,"topics":["buildversion","vue","vue-cli"],"latest_commit_sha":null,"homepage":"","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/yinzhenyu-su.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-23T01:25:12.000Z","updated_at":"2021-05-25T01:50:09.000Z","dependencies_parsed_at":"2022-09-05T00:41:29.157Z","dependency_job_id":null,"html_url":"https://github.com/yinzhenyu-su/vue-cli-plugin-build-version","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yinzhenyu-su/vue-cli-plugin-build-version","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinzhenyu-su%2Fvue-cli-plugin-build-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinzhenyu-su%2Fvue-cli-plugin-build-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinzhenyu-su%2Fvue-cli-plugin-build-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinzhenyu-su%2Fvue-cli-plugin-build-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yinzhenyu-su","download_url":"https://codeload.github.com/yinzhenyu-su/vue-cli-plugin-build-version/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinzhenyu-su%2Fvue-cli-plugin-build-version/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28533172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["buildversion","vue","vue-cli"],"created_at":"2026-01-18T07:40:54.483Z","updated_at":"2026-01-18T07:40:55.120Z","avatar_url":"https://github.com/yinzhenyu-su.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# what is this\n\nthis is a vue-cli-plugin that to generate version.json file for vue-cli project.\n\nthe content should like this\n\n```js\n{\n  \"date\": \"2020-09-23 11:11:11\", // last build date\n  \"cvs\": \"git\", // cvs type\n  \"rev\": \"a4f56gf\" // cvs short HEAD rev\n}\n```\n\n---\n\n## how to use it\n\n1. install from you node package manager.\n\n   ```js\n   npm install vue-cli-plugin-build-version\n   ```\n\n   or\n\n   ```js\n   vue add vue-cli-plugin-build-version\n   ```\n\n2. put below config in **vue.config.js**\n\n   ```js\n   pluginOptions: {\n     buildVersion: {\n       path: require('path').resolve('dist'), // build root dir\n       env: require('process').env, // env obj\n       cvs: 'git', // cvs type, git or svn\n       versionPath: '' // version file parent dir, empty string for default\n       name: '', // version file name, empty string for default\n     }\n   }\n   ```\n\n3. put below config in **package.json** `scripts` fields\n\n   ```json\n   \"buildVersion\": \"vue-cli-service build-version\"\n   ```\n\n4. run `npm run buildVersion`\n\n\n## Change log\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinzhenyu-su%2Fvue-cli-plugin-build-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyinzhenyu-su%2Fvue-cli-plugin-build-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinzhenyu-su%2Fvue-cli-plugin-build-version/lists"}