{"id":19135519,"url":"https://github.com/agzam/boot-yarn","last_synced_at":"2026-05-09T06:07:59.932Z","repository":{"id":57713047,"uuid":"105816897","full_name":"agzam/boot-yarn","owner":"agzam","description":"boot task to manage npm packages using yarn","archived":false,"fork":false,"pushed_at":"2017-10-05T00:40:49.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T08:59:04.578Z","etag":null,"topics":["boot-clj","boot-tasks","clojure","npm","yarn"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agzam.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}},"created_at":"2017-10-04T20:49:08.000Z","updated_at":"2020-05-30T22:31:53.000Z","dependencies_parsed_at":"2022-09-05T22:50:11.139Z","dependency_job_id":null,"html_url":"https://github.com/agzam/boot-yarn","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/agzam/boot-yarn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agzam%2Fboot-yarn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agzam%2Fboot-yarn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agzam%2Fboot-yarn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agzam%2Fboot-yarn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agzam","download_url":"https://codeload.github.com/agzam/boot-yarn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agzam%2Fboot-yarn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266499275,"owners_count":23938823,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["boot-clj","boot-tasks","clojure","npm","yarn"],"created_at":"2024-11-09T06:30:45.791Z","updated_at":"2026-05-09T06:07:54.888Z","avatar_url":"https://github.com/agzam.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# boot-npm\n[![Clojars Project](https://img.shields.io/clojars/v/ag/boot-yarn.svg)](https://clojars.org/ag/boot-yarn)\n[![Dependencies Status](https://jarkeeper.com/ag/boot-yarn/status.svg)](https://jarkeeper.com/ag/boot-yarn)\n[![Downloads](https://jarkeeper.com/ag/boot-yarn/downloads.svg)](https://jarkeeper.com/ag/boot-yarn)\n\nYarn (npm package manager) wrapper for [boot-clj][1].\n_this lib is based on work done in https://github.com/degree9/boot-npm_\n\n* Provides `yarn` task for installing node modules.\n* Provides `exec` task for executing node modules. (auto-installs local module)\n\n\u003e The following outlines basic usage of the task, extensive testing has not been done.\n\u003e Please submit issues and pull requests!\n\n## Usage\n\nAdd `boot-yarn` to your `build.boot` dependencies and `require` the namespace:\n\n```clj\n(set-env! :dependencies '[[ag/boot-yarn \"X.Y.Z\" :scope \"test\"]])\n(require '[ag.boot-yarn :refer [yarn]])\n```\n\nInstall a Node Module:\n\n```clojure\n(boot/deftask bower\n  \"Install bower to node_modules.\"\n  []\n  (yarn :add {:bower \"latest\"})))\n```\n\n##Task Options\n\nThe `yarn` task exposes a few options when using npm as part of a build process.\n\n```clojure\n[p package     VAL     str      \"An edn file containing a package.json map.\"\n a add         FOO=BAR {kw str} \"Dependency map.\"\n d develop             bool     \"Include development dependencies with packages.\"\n r dry-run             bool     \"Report what changes npm would have made. (usefull with boot -vv)\"\n g global              bool     \"Opperates in global mode. Packages are installed to prefix.\"\n c cache-key   VAL     kw       \"Optional cache key for when npm is used with multiple dependency sets.\"\n _ include             bool     \"Include package.json in fileset output.\"\n _ pretty              bool     \"Pretty print generated package.json file\"]\n s silent              bool     \"No output\"\n```\n\nThe `:install` option is provided for installing node modules, takes a map containing a dependency/version pair. This will install the module to a temporary `node_modules` folder and include this folder in the fileset output.\n\n```clojure\n(boot/deftask bower\n  \"Install bower to node_modules.\"\n  []\n  (yarn :add {:bower \"latest\"}))\n```\n\nThe `:cache-key` option is provided to avoid downloading node modules each time boot is restarted. This will cache the `node_modules` folder and include this folder in the fileset output.\n\n```clojure\n(boot/deftask bower\n  \"Install bower to node_modules.\"\n  []\n  (yarn :add   {:bower \"latest\"}\n        :cache-key ::cache))\n```\n\n[1]: https://github.com/boot-clj/boot\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagzam%2Fboot-yarn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagzam%2Fboot-yarn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagzam%2Fboot-yarn/lists"}