Comments (4)
The problem is I don't have handle to Vinyl objects after parsing dependencies in files. Using readSync is more generic
from gulp-progeny.
In module.exports
of index.js
you resolve the path and forward it until it reaches parseDeps
in parse.js
β which is where you have your call to fs.readFileSync
. You could just as easily forward the Vinyl handle instead of the path and read the contents from that.
Using readSync is more generic
That is correct. It's also unnecessary since this is a gulp plugin and gulp βand, by extension, your codeβ relies on Vinyl objects. Additionally you introduce a problem that gulp wants to get around in the first place. One of gulp's main advantages over grunt is that it uses stream and thereby drastically reduces file-system access, which is one of the main bottle-necks of grunt. You may want to read up on this point here: https://github.com/substack/stream-handbook#why-you-should-use-streams
from gulp-progeny.
Pull request is welcome
from gulp-progeny.
For anybody interested, check this out: https://www.npmjs.com/package/gulp-inheritance
from gulp-progeny.
Related Issues (20)
- Reverse Progeny HOT 10
- contribute back to progeny HOT 2
- Example for .less files please HOT 1
- dependency graph not updated after first file read HOT 4
- Deep dependency detection deficiency HOT 1
- gulp-stylus -> gulp-progeny fails with progeny attempting to parse non-existant .css files HOT 4
- Consider dependency parser as separate components HOT 4
- Sync reading files HOT 12
- Error when deleting cache[child] in pushFileRecursive HOT 2
- Issue with many levels of dependencies HOT 13
- internal depCache gets overridden when using merge-stream HOT 1
- Doesn't handle glob imports (Stylus) HOT 2
- Support for progeny's altPaths HOT 4
- Update description HOT 4
- Add license HOT 1
- Exposing cache data HOT 9
- Usage with gulp-pug and includes HOT 5
- Error on included Pug partials HOT 2
- Move `fancy-log` to `devDependencies`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-progeny.