Skip to content

Build a custom component for deps.

License

Notifications You must be signed in to change notification settings

dropseed/deps-custom-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

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

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

About

Build a custom component for deps.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages