Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
buddy-dependencies
Advanced tools
buddy-dependencies is an add-on for Buddy to provide simple dependency management, supplementing the features provided by NPM.
Add buddy-dependencies
alongside buddy
in your package.json file:
{
"name": "myproject",
"description": "This is my web project",
"version": "0.1.0",
"devDependencies": {
"buddy": "0.12.0",
"buddy-dependencies": "0.2.x"
}
}
$ cd path/to/project
$ npm install
The install
command is run via buddy(1), and will download/copy all resources defined in package.json/buddy.js/buddy.json:
$ buddy install
Copy project boilerplate from a local directory into the project root:
package.json
{
"name": "myproject",
"description": "This is my web project",
"version": "0.1.0",
"devDependencies": {
"buddy": "0.12.x",
"buddy-dependencies": "0.2.x"
},
"buddy": {
"dependencies": {
".": {
"sources": ["../../boilerplate/project"]
}
}
}
$ buddy install
Download js dependencies browser-require
and jQuery
version 1.9.1, then concatenate and compress to www/libs.js
for inclusion in html:
package.json
{
"name": "myproject",
"description": "This is my web project",
"version": "0.1.0",
"devDependencies": {
"buddy": "0.12.x",
"buddy-dependencies": "0.2.x"
},
"buddy": {
"dependencies": {
"libs/vendor": {
"sources": [
"popeindustries/browser-require",
"jquery@1.9.1"
],
"output": "www/libs.js"
}
}
}
$ buddy install
Do the same as above but skip storing files in libs/vendor
:
package.json
{
"name": "myproject",
"description": "This is my web project",
"version": "0.1.0",
"devDependencies": {
"buddy": "0.12.x",
"buddy-dependencies": "0.2.x"
},
"buddy": {
"dependencies": {
"www/libs.js": {
"sources": [
"popeindustries/browser-require",
"jquery@1.9.1"
]
}
}
}
$ buddy install
Download visionmedia/nib
Stylus sources, specifying a specific directory to be referenced in your builds:
package.json
{
"name": "myproject",
"description": "This is my web project",
"version": "0.1.0",
"devDependencies": {
"buddy": "0.12.x",
"buddy-dependencies": "0.2.x"
},
"buddy": {
"dependencies": {
"libs/src/css": {
"sources": [
"visionmedia/nib#lib/nib"
]
}
}
}
}
$ buddy install
Dependency resources are installed from local locations or remotely from Github.
Sources: An array of local or remote resource locations.
destination: each group of sources will be installed to the project relative location specified. Alternatively, specify a file path to skip storage and directly concatenate/compress the sources.
identifier: github username/repo
identifiers are preferred, but it is also possible to use identifiers from the bower package manager: 'jquery', 'backbone', 'underscore'
, etc.
versioning: github sources can specify a version by appending @
and a npm-style symantic version: '*', '1.2.3', '1.x', '~1.2.0', '>=1.2.3'
resources: specific resources can be specified by appending #
and a list of |
separated relative file or directory locations: 'username/repo#a/file/or/directory|another/file/or/directory'
Output: A file destination to concatenate and compress the source contents. The order of sources determines the content order.
(The MIT License)
Copyright (c) 2011-2013 Pope-Industries <alex@pope-industries.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A simple dependency management tool for Buddy projects.
The npm package buddy-dependencies receives a total of 0 weekly downloads. As such, buddy-dependencies popularity was classified as not popular.
We found that buddy-dependencies demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.