question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[proposal] Ability to provide a provider for the File System

See original GitHub issue

Sorry for removed issue template. But looks irrelevant to question/rfc.

Problem: run fast-glob in non node env (i.e. browser/electron and etc).

Why: I contribute webpack and we have webpack bundle for run his in browser. For better zero configuration we want implement auto remove dist directory before each build (https://github.com/webpack/webpack/pull/7215). We use del package based on globby (i think del upgrade to latest globby in near future). globby use fast-glob in lastest version. But fast-glob use node fs module and it is and this makes the plugin not working in other environments.

Solutions:

  • Provide option/API to replace fs on own implementation (in webpack we have outputFileSystem which implement fs interface for other env).
  • Create separate bundles for each env (looks difficult and overhead).

Additional benefits:

  • Allow to implement playground with fast-glob.
  • Allow to implement glob as filter in browser file managers.

What do you think about this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alexander-akaitcommented, Feb 21, 2019

@mrmlnc We want to use this package for CleanerWebpackPlugin, we have memory-fs in watch mode, so we need support to set any fs (yep we keep compatibility with original fs)

0reactions
mrmlnccommented, May 28, 2019

This issue will be solved with release fast-glob@3 where we introduce the fs option. You can check release issue #181.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RFP-Managed-File-Transfer.pdf - DBHIDS
E.​​ A cost proposal must be provided based upon your best understanding of the scope of the project and the product and services...
Read more >
RFP: What a Request for Proposal Is, Requirements, and a ...
A request for proposal (RFP) is a business document that announces a project, describes it, and solicits bids from qualified contractors to complete...
Read more >
Request for Proposal (RFP) Template - HealthIT.gov
This template can be used to structure requests for vendors to send proposals on the specific health IT that needs to be acquired....
Read more >
io/fs: add writable interfaces · Issue #45757 · golang/go - GitHub
Go 1.16 introduced the embed and io/fs packages. The current implementation is a minimal readable filesystem interface.
Read more >
5-3 Preparing Technical Proposals for Government Contracting
The technical evaluation of a proposal is made by technical specialists or subject matter experts (SMEs) who are deliberately not shown the costs....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found