{"id":13806079,"url":"https://github.com/bazaarvoice/dropwizard-configurable-assets-bundle","last_synced_at":"2025-05-13T21:32:15.082Z","repository":{"id":5219895,"uuid":"6395921","full_name":"bazaarvoice/dropwizard-configurable-assets-bundle","owner":"bazaarvoice","description":"An implementation of an AssetBundle for use in Dropwizard that allows user configuration.","archived":true,"fork":false,"pushed_at":"2016-09-08T14:39:34.000Z","size":151,"stargazers_count":55,"open_issues_count":5,"forks_count":24,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-08-04T01:05:52.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"JakeWharton/butterknife","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bazaarvoice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-25T23:02:17.000Z","updated_at":"2024-05-27T14:59:58.000Z","dependencies_parsed_at":"2022-09-10T21:02:00.853Z","dependency_job_id":null,"html_url":"https://github.com/bazaarvoice/dropwizard-configurable-assets-bundle","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Fdropwizard-configurable-assets-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Fdropwizard-configurable-assets-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Fdropwizard-configurable-assets-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Fdropwizard-configurable-assets-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bazaarvoice","download_url":"https://codeload.github.com/bazaarvoice/dropwizard-configurable-assets-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225260373,"owners_count":17446086,"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-08-04T01:01:07.675Z","updated_at":"2024-11-18T22:31:16.057Z","avatar_url":"https://github.com/bazaarvoice.png","language":"Java","readme":"# Configurable Assets Bundle for Dropwizard\n\n**NOTE: THIS PROJECT IS DEPRECATED.** This projects is no longer maintained.  It is deprecated for\n[dropwizard-bundles maintained fork](https://github.com/dropwizard-bundles/dropwizard-configurable-assets-bundle).\nUsers of this project should update their project dependencies appropriately.\n\nThis GitHub repository contains a drop-in replacement for Yammer's `AssetsBundle` class that allows for a better\ndeveloper experience.  Developers can use the `ConfiguredAssetsBundle` class anywhere they would use a `AssetsBundle`\nin their Dropwizard applications and take advantage of the ability to specify redirects for URIs to that loads them from\ndisk instead of the classpath.  This allows developers to edit browser-interpreted files and reload them without needing\nto recompile source.\n\nThis version is compatible with dropwizard 0.7.X.\n\n## Maven Setup\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.bazaarvoice.dropwizard\u003c/groupId\u003e\n  \u003cartifactId\u003edropwizard-configurable-assets-bundle\u003c/artifactId\u003e\n  \u003cversion\u003e0.2.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Getting Started\n\nImplement the AssetsBundleConfiguration:\n```java\npublic class SampleConfiguration extends Configuration implements AssetsBundleConfiguration {\n  @Valid\n  @NotNull\n  @JsonProperty\n  private final AssetsConfiguration assets = new AssetsConfiguration();\n\n  @Override\n  public AssetsConfiguration getAssetsConfiguration() {\n    return assets;\n  }\n}\n```\n\nAdd the redirect bundle:\n```java\npublic class SampleService extends Application\u003cSampleConfiguration\u003e {\n    public static void main(String[] args) throws Exception {\n        new SampleService().run(args);\n    }\n\n    @Override\n    public void initialize(Bootstrap\u003cSampleConfiguration\u003e bootstrap) {\n        bootstrap.addBundle(new ConfiguredAssetsBundle(\"/assets/\", \"/dashboard/\"));\n    }\n\n    @Override\n    public void run(SampleConfiguration configuration, Environment environment) {\n        ...\n    }\n}\n```\n\nA sample local development config:\n```yml\nassets:\n  overrides:\n    /dashboard: src/main/resources/assets/\n  mimeTypes:\n    woff: application/font-woff\n```\n\nYou can override multiple external folders with a single configuration in a following way:\n```yml\nassets:\n  overrides:\n    /dashboard/assets: /some/absolute/path/with/assets/\n    /dashboard/images: /some/different/absolute/path/with/images\n```\n","funding_links":[],"categories":["Open Source"],"sub_categories":["Assets"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazaarvoice%2Fdropwizard-configurable-assets-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazaarvoice%2Fdropwizard-configurable-assets-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazaarvoice%2Fdropwizard-configurable-assets-bundle/lists"}