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

Migrating to input/output facade #120

Merged
merged 2 commits into from
Dec 10, 2019

Conversation

SparshithNR
Copy link

This is not complete migration as we are missing operations like

  1. removeSync is from fs-extra, fs.rmdir has recursive:true option, but node 12 onwards.
  2. unlinkSync needs to be added to broccoli-output-wrapper https://github.com/SparshithNR/broccoli-output-wrapper#apis
  3. symlinkOrCopy is one more method that is used extensively. Do we want to support that as well?

@stefanpenner
Copy link
Contributor

stefanpenner commented Dec 5, 2019

@SparshithNR good points!

for 1) let's implement/provide a fs.rmdir + recursive: true polyfil in FSMerger
for 2) let's add it
for 3) let's add it

Doing 1) 2) 3) will add lots of value, good find!

@SparshithNR
Copy link
Author

Depends on broccolijs/broccoli-output-wrapper#4

index.js Outdated Show resolved Hide resolved
@stefanpenner
Copy link
Contributor

@SparshithNR is this pending update of broccoli-output-wrapper?

@SparshithNR
Copy link
Author

broccoli-output-wrapper has now all the operations mentioned above

This is not complete migration as we are missing operations like

  1. removeSync is from fs-extra, fs.rmdir has recursive:true option, but node 12 onwards.
  2. unlinkSync needs to be added to broccoli-output-wrapper https://github.com/SparshithNR/broccoli-output-wrapper#apis
  3. symlinkOrCopy is one more method that is used extensively. Do we want to support that as well?

@stefanpenner
Copy link
Contributor

Windows failures are due to fixed, but not yet released, node version. Context: #119

@stefanpenner stefanpenner merged commit 338f9ad into broccolijs:master Dec 10, 2019
@stefanpenner
Copy link
Contributor

released as v3.0.1 🎉

ef4 added a commit to ef4/broccoli-funnel that referenced this pull request Mar 30, 2021
PR broccolijs#120 broke the case when you have both `srcDir` and some filtering options like `exclude`. The included test demonstrates the bug. It crashes during `processFile` because the `sourcePath` doesn't exist.

This PR fixes the bug by restoring the correct relative paths as inputs to `walkSync`.
@ef4 ef4 mentioned this pull request Mar 30, 2021
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