项目作者: dropseed

项目描述 :
Build a custom component for deps.
高级语言: Python
项目地址: git://github.com/dropseed/deps-custom-example.git
创建时间: 2020-11-23T21:36:25Z
项目社区:https://github.com/dropseed/deps-custom-example

开源协议:MIT License

下载


" class="reference-link">deps-custom-example test

You can build custom deps components to automatically manage updates for custom dependency types.

This example stores the names and versions of custom dependencies in a separate YAML file,
acting like a rudimentary version of package.json.

If you have any questions (there are a number of undocumented things here!) then please don’t hestitate to ask for help or clarification.

Testing

Deps comes with a built-in testing framework.
Once you’ve installed deps on your machine,
you can run deps dev test -v while in this repo to test your component.
Note that if your test cases work by always looking for the latest version of a real dependency,
the results of the test might fail over time as new versions are published.
There are ways to avoid this,
but if you can’t,
then deps dev test --update is your friend and will automatically update your test files!
Just be sure to double-check the output yourself before comitting it.

Using it

You can use a custom component by putting it directly in your project:

  1. # deps.yml
  2. version: 3
  3. dependencies:
  4. - type: ./local-custom-component
  5. path: example.yml

Or by copying this repo template and referencing it remotely (best if you’re going to use it on multiple projects):

  1. # deps.yml
  2. version: 3
  3. dependencies:
  4. - type: your-org/deps-custom-component
  5. path: example.yml