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

feat: add support for contextDependencies in the {Object} interface (options.contextDependencies) #23

Merged
merged 2 commits into from
Nov 19, 2017

Conversation

raleksandar
Copy link
Contributor

@raleksandar raleksandar commented Nov 15, 2017

This change adds support for declaring directories as dependencies by using contextDependencies in object interface returned by the generator function.

Background: I've been using val-loader to generate modules based on some configuration files which are grouped in a single directory. In my generator function, I traverse that directory and parse all found configuration files adding them to the dependencies array. Problem is that in watch mode if a new file is added in that directory it will not be picked up by the webpack and I need to stop it and rerun it again.

Regarding the tests, I have simply added contextDependencies to test/fixtures/depenndencies.js in order to make codecov happy :)
If I need to do something more please let me know.

Hopefully, you will find this addition welcome :)

@jsf-clabot
Copy link

jsf-clabot commented Nov 15, 2017

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Nov 15, 2017

Codecov Report

Merging #23 into master will increase coverage by 0.27%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
+ Coverage   96.15%   96.42%   +0.27%     
==========================================
  Files           2        2              
  Lines          26       28       +2     
  Branches        7        8       +1     
==========================================
+ Hits           25       27       +2     
  Misses          1        1
Impacted Files Coverage Δ
src/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a59cd0f...1c2e1e2. Read the comment docs.

@michael-ciniawsky michael-ciniawsky changed the title Add support for marking context dependencies in the object interface feat: add support for contextDependencies in the {Object} interface (options.contextDependencies) Nov 15, 2017
Copy link
Member

@michael-ciniawsky michael-ciniawsky left a comment

Choose a reason for hiding this comment

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

@michael-ciniawsky
Copy link
Member

@jhnns Friendly ping to raise concerns

@d3viant0ne @evilebottnawi Could someone please merge this within the next ~48 hours or so, I haven't write access here :)

@alexander-akait
Copy link
Member

alexander-akait commented Nov 17, 2017

@michael-ciniawsky id don't have access as well

@joshwiens joshwiens merged commit 78aa6fe into webpack-contrib:master Nov 19, 2017
@joshwiens
Copy link
Member

@michael-ciniawsky - Published & available in val-loader@1.1.0

Access issues should also be resolved for both of you, the push access config was missing a team.

@raleksandar
Copy link
Contributor Author

Awesome, thanks guys!

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

Successfully merging this pull request may close these issues.

5 participants