Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikong/ey-npm-packages
Chef recipe to install npm packages on EY Cloud.
https://github.com/mikong/ey-npm-packages
Last synced: about 1 month ago
JSON representation
Chef recipe to install npm packages on EY Cloud.
- Host: GitHub
- URL: https://github.com/mikong/ey-npm-packages
- Owner: mikong
- Created: 2015-07-18T07:52:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-18T08:08:10.000Z (over 9 years ago)
- Last Synced: 2023-04-10T23:23:41.985Z (over 1 year ago)
- Language: Ruby
- Size: 83 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NPM Packages Installation
This cookbook automates the installation of npm packages by running the following command on the server:
```
sudo npm install -g package
```It will then make the executable accessible by symlinking the bin file to /usr/local/bin which is part
of the PATH in EY Cloud.This is useful if you need the executables of your npm packages to be available on the server's command line inteface.
Check recipes/default.rb for more details, and feel free to customize it for your own environment.
## Using it
1. Add the npm packages in attributes/npm_packages.rb.
2. Add this directory to your cookbooks directory, and enable it in main/recipes/defaul.rb.
3. Upload and apply this to your staging environment for testing.## Example
```
default[:npm_packages] = [{:name => "bunyan", :command => "bunyan"},
{:name => "grunt", :command => "grunt"},
{:name => "grunt-cli"}]```