浏览代码

Merge pull request #2333 from giggsey/patch-1

Add documentation for resolve-dependencies
Jordi Boggiano 11 年之前
父节点
当前提交
5e160c0f9e
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      doc/articles/handling-private-packages-with-satis.md

+ 16 - 0
doc/articles/handling-private-packages-with-satis.md

@@ -170,3 +170,19 @@ bucket or on a CDN host. A CDN would drastically improve download times and ther
 
 Example: A `prefix-url` of `http://my-bucket.s3.amazonaws.com` (and `directory` set to `dist`) creates download URLs
 which look like the following: `http://my-bucket.s3.amazonaws.com/dist/vendor-package-version-ref.zip`.
+
+
+### Resolving dependencies
+
+It is possible to make satis automatically resolve and add all dependencies for your projects. This can be used
+with the Downloads functionality to have a complete local mirror of packages. Just add the following
+to your `satis.json`:
+
+```json
+{
+    "require-dependencies": true,
+}
+```
+
+When searching for packages, satis will attempt to resolve all the required packages from the listed repositories.
+Therefore, if you are requiring a package from Packagist, you will need to define it in your `satis.json`.