{"id":32181984,"url":"https://github.com/tailrecursion/boot-front","last_synced_at":"2025-10-21T22:56:47.180Z","repository":{"id":62434799,"uuid":"83044730","full_name":"tailrecursion/boot-front","owner":"tailrecursion","description":"task for invalidating amazon web services (aws) cloudfront paths.","archived":false,"fork":false,"pushed_at":"2018-09-02T19:02:56.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-10-13T01:52:27.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tailrecursion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-24T13:36:27.000Z","updated_at":"2018-10-04T13:34:39.000Z","dependencies_parsed_at":"2022-11-01T21:02:36.135Z","dependency_job_id":null,"html_url":"https://github.com/tailrecursion/boot-front","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tailrecursion/boot-front","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailrecursion%2Fboot-front","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailrecursion%2Fboot-front/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailrecursion%2Fboot-front/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailrecursion%2Fboot-front/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tailrecursion","download_url":"https://codeload.github.com/tailrecursion/boot-front/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailrecursion%2Fboot-front/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280102524,"owners_count":26272388,"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","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"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":[],"created_at":"2025-10-21T22:56:46.097Z","updated_at":"2025-10-21T22:56:47.173Z","avatar_url":"https://github.com/tailrecursion.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# boot-front\na boot task for invalidating cloudfront paths.\n\n[](dependency)\n```clojure\n[tailrecursion/boot-front \"1.1.0\"] ;; latest release\n```\n[](/dependency)\n\n## overview\nthis task inspects the fileset's metadata to identify files that were uploaded\nby preceeding tasks as indicated by a keyword with the name \"uploaded\", then\ninvalidates their corresponding paths (see [boot-bucket](https://github.com/tailrecursion/boot-bucket)).\n\n## usage\nexcerpt of a build.boot file using boot-front with boot-bucket for deployment.\n```clojure\n(require\n  '[adzerk.boot-cljs          :refer [cljs]]\n  '[adzerk.boot-reload        :refer [reload]]\n  '[hoplon.boot-hoplon        :refer [hoplon]]\n  '[tailrecursion.boot-bucket :refer [spew]]\n  '[tailrecursion.boot-front  :refer [burst]]\n  '[tailrecursion.boot-static :refer [serve]])\n\n(def buckets\n  {:production \"\u003cappname\u003e-production-application\"\n   :staging    \"\u003cappname\u003e-staging-application\"})\n\n(def distributions\n  {:production \"\u003cproduction-cloudfront-id\u003e\"\n   :staging    \"\u003cstaging-cloudfront-id\u003e\"})\n\n(deftask develop\n  \"Continuously rebuild the application during development.\"\n  [o optimizations OPM kw \"Optimizations to pass the cljs compiler.\"]\n  (let [o (or optimizations :none)]\n    (comp (watch) (speak) (hoplon) (target) (reload) (cljs :optimizations o) (serve))))\n\n(deftask build\n  \"Build the application with advanced optimizations.\"\n  [o optimizations OPM kw \"Optimizations to pass the cljs compiler.\"]\n  (let [o (or optimizations :advanced)]\n    (comp (speak) (hoplon) (cljs :optimizations o :compiler-options {:elide-asserts true}) (sift))))\n\n(deftask deploy\n  \"Build the application with advanced optimizations then deploy it to s3.\"\n  [e environment   ENV kw \"The application environment to be utilized by the service.\"\n   o optimizations OPM kw \"Optimizations to pass the cljs compiler.\"]\n  (assert environment \"Missing required environment argument.\")\n  (let [b (buckets       environment)\n        d (distributions environment)]\n    (comp (build :optimizations optimizations) (spew :bucket b) (burst :distribution d))))\n\n(task-options!\n  serve {:port 3001}\n  sift  {:include #{#\"index.html.out/\" #\"\u003capp-ns\u003e/\"} :invert true}\n  spew  {:access-key (System/getenv \"\u003cAWS_ACCESS_KEY_ENV_VAR\u003e\")\n         :secret-key (System/getenv \"\u003cAWS_SECRET_KEY_ENV_VAR\u003e\")}\n  burst {:access-key (System/getenv \"\u003cAWS_ACCESS_KEY_ENV_VAR\u003e\")\n         :secret-key (System/getenv \"\u003cAWS_SECRET_KEY_ENV_VAR\u003e\")})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailrecursion%2Fboot-front","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftailrecursion%2Fboot-front","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailrecursion%2Fboot-front/lists"}