{"id":21206723,"url":"https://github.com/xlayers/version-stamp","last_synced_at":"2025-07-10T08:33:08.677Z","repository":{"id":54439878,"uuid":"303362055","full_name":"xlayers/version-stamp","owner":"xlayers","description":"An easy way to version stamp your Angular applications and libraries","archived":false,"fork":false,"pushed_at":"2021-02-17T20:15:11.000Z","size":1274,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-02-24T17:34:43.543Z","etag":null,"topics":["angular","release-automation","stamp","stamp-component","typescript","version"],"latest_commit_sha":null,"homepage":"https://xlayers.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xlayers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null},"funding":{"open_collective":"xlayers","custom":null}},"created_at":"2020-10-12T10:53:25.000Z","updated_at":"2021-12-30T17:04:38.000Z","dependencies_parsed_at":"2022-08-13T15:40:59.363Z","dependency_job_id":null,"html_url":"https://github.com/xlayers/version-stamp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlayers%2Fversion-stamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlayers%2Fversion-stamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlayers%2Fversion-stamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlayers%2Fversion-stamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xlayers","download_url":"https://codeload.github.com/xlayers/version-stamp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225629864,"owners_count":17499295,"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":["angular","release-automation","stamp","stamp-component","typescript","version"],"created_at":"2024-11-20T20:56:38.656Z","updated_at":"2024-11-20T20:56:39.571Z","avatar_url":"https://github.com/xlayers.png","language":"TypeScript","readme":"\u003ch1 align=\"center\"\u003e\n  \u003ca href=\"https://xlayers.app\"\u003eWelcome to xLayers version-stamp\u003c/a\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\" \u003e\n  \n \u003ca href=\"https://xlayers.app\"\u003e\n    \u003cimg src=\"https://img.shields.io/website-up-down-ff69b4-ff69b4/http/shields.io.svg?label=xlayers.app\"/\u003e\n  \u003c/a\u003e\n\n \u003ca href=\"https://xlayers.dev\"\u003e\n    \u003cimg src=\"https://img.shields.io/website-up-down-ff69b4-ff69b4/http/shields.io.svg?label=xlayers.dev\"/\u003e\n  \u003c/a\u003e\n \n   \u003ca href=\"https://xlayers.design\"\u003e\n    \u003cimg src=\"https://img.shields.io/website-up-down-ff69b4-ff69b4/http/shields.io.svg?label=xlayers.design\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\" \u003e\n  \n  \u003ca href=\"https://twitter.com/xlayers_\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/say-thanks-ff69b4.svg\"/\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://angular.io\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Made%20with-Angular-E13137.svg\"/\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://github.com/xlayers/version-stamp/issues\"\u003e\n    \u003cimg src=\"http://isitmaintained.com/badge/resolution/xlayers/xlayers.svg\"/\u003e\n  \u003c/a\u003e\n  \n  \u003cbr/\u003e\n  \u003ca href=\"https://github.com/xlayers/version-stamp/actions\"\u003e\n    \u003cimg src=\"https://github.com/xlayers/version-stamp/workflows/mainworkflow/badge.svg\" /\u003e\n  \u003c/a\u003e\n  \n\u003c/p\u003e\n\n\u003cp align=\"center\" \u003e\n\n  \u003cimg src=\"https://img.shields.io/github/license/xlayers/xlayers.svg\"/\u003e\n  \n \u003ca href=\"https://github.com/xlayers/version-stamp\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/contributors/xlayers/version-stamp.svg\"/\u003e\n  \u003c/a\u003e\n\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003cimg width=\"250\" src=\"https://github.com/xlayers/version-stamp/raw/main/assets/xlayers_stamp.png?raw=true\"/\u003e\n\u003c/p\u003e\n  \n## What is xLayers version-stamp?\n\nWith xLayers version-stamp we've started a new initiative of providing a community-driven way of version stamping that will help on a daily base for everybody!\nThe xLayers projects are driven by community contributions. Please send us your Pull Requests and feedback!\n\n## Quick start\n\n1. Add `@xlayers/version-stamp` to your project\n\n   ```sh\n   ng add @xlayers/version-stamp\n   ```\n\n2. The package will make some small changes to the `angular.json`\n\n3. Add the following snippet (only the version property) to your environment files.\n\n```ts\nexport const environment = {\n  production: false,\n  version: '_BUILD_HASH_',\n};\n```\n\n4. Use the version that the packages has provided in your `environment` properties.\n\n````ts\n import { environment } from '../environment'\n ```\n```ts\n @Component({\n    selector: 'xlayers-builders-root',\n })\n export class AppComponent {\n     version = environment.version;\n }\n ```\n5. Now you can stamp your build\n\n```sh\nng run \u003cyour-app\u003e:stamp\n````\n\n## Usage\n\nYou can adjust some options to your needs.\nThe available options are:\n\n- `--version` - You can put in here your own version.\n\nExample:\n\n```sh\nng run \u003cyour-app\u003e:stamp --version=\"1.0.0\"\n```\n\n- `--files` - You can put in here the list of file patterns containing `_BUILD_HASH_`\n\nExample:\n\n```sh\nng run \u003cyour-app\u003e:stamp --files=*.js,*.json\n```\n\nYou can also set the configuration in `angular.json`\n\n```json\n  \"stamp\": {\n    \"builder\": \"@xlayers/version-stamp:stamp\",\n    \"options\": {\n      \"outputPath\": \"dist/packages/demo\",\n      \"files\": [\"*.js\", \"*.json\"]\n    }\n  }\n```\n\n## Want to help? [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/xlayers/version-stamp/issues)\n\nWant to file a bug, contribute some code, or improve the documentation? Excellent! Read up on our guidelines for [contributing](https://github.com/xlayers/version-stamp/blob/main/CONTRIBUTING.md) and then check out one of our issues in the hotlist: [community-help](https://github.com/xlayers/version-stamp/issues).\n\n## Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\n\u003ca href=\"https://github.com/xlayers/version-stamp/graphs/contributors\"\u003e\n\u003cimg src=\"https://opencollective.com/xlayers/contributors.svg?width=890\u0026button=false\" /\u003e\n\u003c/a\u003e\n\n## Backers\n\nThank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/xlayers#backer)]\n\u003ca href=\"https://opencollective.com/xlayers#backers\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/xlayers/backers.svg?width=890\"\u003e\u003c/a\u003e\n\n## Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/xlayers#sponsor)]\n\n[\u003cimg src=\"https://pbs.twimg.com/profile_images/481333142238679040/ErykRvBG_200x200.png\" width=\"50\"\u003e](https://www.centigrade.de/en)\n\u003ca href=\"https://opencollective.com/xlayers/sponsor/2/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/xlayers/sponsor/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/xlayers/sponsor/3/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/xlayers/sponsor/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/xlayers/sponsor/4/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/xlayers/sponsor/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/xlayers/sponsor/5/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/xlayers/sponsor/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/xlayers/sponsor/6/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/xlayers/sponsor/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/xlayers/sponsor/7/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/xlayers/sponsor/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/xlayers/sponsor/8/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/xlayers/sponsor/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/xlayers/sponsor/9/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/xlayers/sponsor/9/avatar.svg\"\u003e\u003c/a\u003e\n","funding_links":["https://opencollective.com/xlayers"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlayers%2Fversion-stamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxlayers%2Fversion-stamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlayers%2Fversion-stamp/lists"}