{"id":21855480,"url":"https://github.com/wix-incubator/bower-auto-release","last_synced_at":"2025-10-19T13:02:26.357Z","repository":{"id":66154366,"uuid":"58132638","full_name":"wix-incubator/bower-auto-release","owner":"wix-incubator","description":"Auto release npm module as bower component","archived":false,"fork":false,"pushed_at":"2023-03-19T11:28:07.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":7,"subscribers_count":117,"default_branch":"master","last_synced_at":"2025-04-14T18:12:44.286Z","etag":null,"topics":["bower","bower-components","release-automation"],"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/wix-incubator.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":"2016-05-05T13:27:35.000Z","updated_at":"2023-03-13T08:53:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"b62b3a7d-f5b6-44c3-9399-6c093915c082","html_url":"https://github.com/wix-incubator/bower-auto-release","commit_stats":null,"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wix-incubator%2Fbower-auto-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wix-incubator%2Fbower-auto-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wix-incubator%2Fbower-auto-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wix-incubator%2Fbower-auto-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wix-incubator","download_url":"https://codeload.github.com/wix-incubator/bower-auto-release/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248933340,"owners_count":21185460,"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":["bower","bower-components","release-automation"],"created_at":"2024-11-28T02:15:54.961Z","updated_at":"2025-10-19T13:02:21.314Z","avatar_url":"https://github.com/wix-incubator.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bower-auto-release\n\nThis **node module** will publish your package to a bower registry.\nIdeally you would **only publish to npm**, but as many older projects still use bower, this is sometime an unfortunate necessity.\n\n## How to enable bower publishing for your existing npm module\n\nAssuming you already defined an npm module in CI and already use the incredible [wnpm-release](https://github.com/wix/wnpm-ci) script to automatically bump your module's version, all you have to do to publish your package to bower is follow these simple steps:\n\n### Add bower.json to your project\n\nJust run the command `bower init`, and answer truthfully to all questions :P\n\n### When using a PRIVATE bower registry: Add .bowerrc to your project\n\n**Notice: This is critical so that you work against your private bower registry.**\n\n### Run bower-auto-release in your release script\n\n```json\n{\n  \"name\": \"my-package\",\n  \"version\": \"1.0.0\",\n  \"scripts\": {\n    \"build\": \":\", \n    \"test\": \":\",\n    \"release\": \"wnpm-release; bower-auto-release\",\n    \"postpublish\": \"rm -f npm-shrinkwrap.json\"\n  },\n  \"devDependencies\": {\n    \"wnpm-ci\": \"*\",\n    \"bower-auto-release\": \"*\"\n  }\n}\n```\n\n### The `--dist` option\n\nBy default the contents of your post-build dist folder are copied to the bower component's root folder. You can change this using the `--dist` option. \n\nFor example to copy the contents of the `build` output folder you would use: `bower-auto-release --dist build`\n\nOr, to copy everything simply use `--dist .` (note that in this case `dist` will be removed from `.gitignore` on the bower-component branch).\n\n### The `--git-repo` option\n\nBy default the output of your project is pushed to a branch on its own repository (designated by the `GIT_REMOTE_URL` environment variable). You can change this by pointing to a different repository using the `--git-repo` option.\n \nFor example: `bower-auto-release --git-repo git@github.com:wix/my-library-bower-component`\n\nThis option is typically used on monorepos that have multiple bower components to release. Since bower's design dictates one-to-one relationship between published component and git repository, you should create a separate repository for publishing and pass it using this option.\n\n### The `--branch` option\n\nBy default your project is published to a branch named `${package-name}-bower-component`. You can change this using the `--branch` option.\n\nFor example: `bower-auto-release --branch kuku`\n\nIn case you use a separate repository for publishing to bower from a monorepo as described above, it would make sense to do something like this: \n`bower-auto-release --git-repo git@github.com:wix/my-library-bower-component --branch master`\n\n### Your package is automatically registered to bower\n\nOnce you're build is complete in CI, your package can be installed with - \n```sh\nbower install package-name\n```\nwhere `package-name` is the name you gave your package in `bower init` above\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwix-incubator%2Fbower-auto-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwix-incubator%2Fbower-auto-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwix-incubator%2Fbower-auto-release/lists"}