{"id":21038607,"url":"https://github.com/degree9/boot-npm","last_synced_at":"2025-06-23T12:34:49.368Z","repository":{"id":62432365,"uuid":"65052623","full_name":"degree9/boot-npm","owner":"degree9","description":"Node Package Manager (NPM) wrapper task for boot-clj","archived":false,"fork":false,"pushed_at":"2020-04-28T20:04:03.000Z","size":130,"stargazers_count":17,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-22T11:39:14.640Z","etag":null,"topics":["boot-clj"],"latest_commit_sha":null,"homepage":"https://oss.degree9.io/","language":"Clojure","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/degree9.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":"2016-08-05T22:23:27.000Z","updated_at":"2024-04-01T08:27:37.000Z","dependencies_parsed_at":"2022-11-01T21:00:56.400Z","dependency_job_id":null,"html_url":"https://github.com/degree9/boot-npm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/degree9/boot-npm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degree9%2Fboot-npm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degree9%2Fboot-npm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degree9%2Fboot-npm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degree9%2Fboot-npm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/degree9","download_url":"https://codeload.github.com/degree9/boot-npm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degree9%2Fboot-npm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261434111,"owners_count":23157201,"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":["boot-clj"],"created_at":"2024-11-19T13:33:33.719Z","updated_at":"2025-06-23T12:34:44.354Z","avatar_url":"https://github.com/degree9.png","language":"Clojure","funding_links":["https://www.patreon.com/degree9"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"/.github/d9boot-npm.png\" width=\"445px\"\u003e\u003c/p\u003e\n\n[![Clojars Project](https://img.shields.io/clojars/v/degree9/boot-npm.svg)](https://clojars.org/degree9/boot-npm)\n[![Dependencies Status](https://jarkeeper.com/degree9/boot-npm/status.svg)](https://jarkeeper.com/degree9/boot-npm)\n[![Downloads](https://jarkeeper.com/degree9/boot-npm/downloads.svg)](https://jarkeeper.com/degree9/boot-npm)\n[![Slack][slack]][d9-slack]\n\u003c!--- [![CircleCI](https://circleci.com/gh/degree9/boot-npm.svg?style=svg)](https://circleci.com/gh/degree9/boot-npm) ---\u003e\n\nNode Package Manager (NPM) wrapper for [boot-clj][boot-clj].\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://degree9.io\" align=\"center\"\u003e\n    \u003cimg width=\"135\" src=\"/.github/logo.png\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003cb\u003eboot-npm is developed and maintained by Degree9\u003c/b\u003e\n\u003c/p\u003e\n\n---\n\n* Provides `npm` 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-npm` to your `build.boot` dependencies and `require` the namespace:\n\n```clj\n(set-env! :dependencies '[[degree9/boot-npm \"X.Y.Z\" :scope \"test\"]])\n(require '[degree9.boot-npm :as npm])\n```\n\nInstall a Node Module:\n\n```clojure\n(boot/deftask bower\n  \"Install bower to node_modules.\"\n  []\n  (npm/npm :install [\"bower@latest\"])))\n```\n\n## Task Options\n\nThe `npm` 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 i install     FOO=BAR [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```\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  (npm/npm :install [\"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  (npm/npm :install   [\"bower@latest\"]\n           :cache-key ::cache))\n```\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.patreon.com/degree9\" align=\"center\"\u003e\n    \u003cimg src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" width=\"160\" alt=\"Patreon\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003cb\u003eSupport this and other open-source projects on Patreon!\u003c/b\u003e\n\u003c/p\u003e\n\n---\n\n[boot-clj]: https://github.com/boot-clj/boot\n[slack]: https://img.shields.io/badge/clojurians-degree9-%23e01563.svg?logo=slack\n[d9-slack]: https://clojurians.slack.com/channels/degree9/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdegree9%2Fboot-npm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdegree9%2Fboot-npm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdegree9%2Fboot-npm/lists"}