Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better syntax for optional / required dependencies #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MarshallOfSound
Copy link
Owner

@MarshallOfSound MarshallOfSound commented Apr 7, 2018

Basically modules now have a relationship property which is an instance of the DepRelationship class which has the documented API.

getType(): DepType // The old depType value without OPTIONAL and DEV_OPTIONAL
getRequired(): DepRequireState // Optional vs Required

Tests have been updated accordingly

@MarshallOfSound MarshallOfSound force-pushed the better-opt branch 2 times, most recently from afa7a29 to 3800990 Compare April 7, 2018 16:44
Copy link
Contributor

@malept malept left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, modulo some docs fixes.

Remember to remove DEV_OPTIONAL from README.md.

/**
* These tests ensure that the method will not modify things that are identical
*/
it('should report OPTIONAL < OPTIONAL', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That description is not true...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants