{"id":18648254,"url":"https://github.com/capistrano/npm","last_synced_at":"2025-04-11T13:31:18.113Z","repository":{"id":56843243,"uuid":"10538587","full_name":"capistrano/npm","owner":"capistrano","description":"Capistrano extension for npm","archived":false,"fork":false,"pushed_at":"2018-12-13T00:08:32.000Z","size":25,"stargazers_count":157,"open_issues_count":1,"forks_count":51,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T01:13:59.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/capistrano.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":"2013-06-06T23:27:57.000Z","updated_at":"2023-04-19T18:44:45.000Z","dependencies_parsed_at":"2022-09-09T04:12:07.863Z","dependency_job_id":null,"html_url":"https://github.com/capistrano/npm","commit_stats":null,"previous_names":["roots/capistrano-npm"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capistrano%2Fnpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capistrano%2Fnpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capistrano%2Fnpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capistrano%2Fnpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capistrano","download_url":"https://codeload.github.com/capistrano/npm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223470133,"owners_count":17150502,"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-11-07T06:29:51.500Z","updated_at":"2024-11-07T06:29:52.059Z","avatar_url":"https://github.com/capistrano.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capistrano::npm\n\nnpm support for Capistrano 3.x\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'capistrano', '~\u003e 3.1.0'\ngem 'capistrano-npm'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install capistrano-npm\n\n## Usage\n\nRequire in `Capfile` to use the default task:\n\n```ruby\nrequire 'capistrano/npm'\n```\n\nThe task will run before `deploy:updated` as part of Capistrano's default deploy,\nor can be run in isolation with `cap production npm:install`\n\nConfigurable options:\n\n```ruby\nset :npm_target_path, -\u003e { release_path.join('subdir') } # default not set\nset :npm_flags, '--production --silent --no-progress'    # default\nset :npm_roles, :all                                     # default\nset :npm_env_variables, {}                               # default\nset :npm_method, 'install'                               # default\n```\n\n### NPM Method\n\nAs of version 5.7.0 of npm, a new install method (`ci`) was introduced which utilises\nthe `package-lock.json` file. Change `npm_method` to `ci` in order to use make\nuse of the improved installation method.\n\n### Dependencies\n\nnpm allows for normal `dependencies` and `devDependencies`. By default this gem uses `'--production --silent --no-progress'` as the install flags which will **only** install `dependencies` and skip `devDependencies`. If you want your `devDependencies` installed as well, then remove `--production`.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapistrano%2Fnpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapistrano%2Fnpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapistrano%2Fnpm/lists"}