Comments (4)
Yes, I think this is a great idea! I think glob will be a good fit for defining files with support for more. Maybe some rewrite is required though, for reading all files.
from mversion.
If you want to maximize concurrency you could go with two nested calls to async.parallel
, the first one to translate a pattern to a set of files (or a single file, if the pattern was just a filename). The second one to read each of the filenames.
In pseudo-code the flow would look like this:
async.parallel(_patterns.map(function (pattern)...
glob(pattern, function (files) ...
async.parallel(files.map(function (file)...
from mversion.
I rewrote the inner workings of the module. It's now using streams internally and supports globs as patterns for supported files - adding a lot more power.
Hope you like it! Please notify me if you find any troubles using it.
from mversion.
Thanks Mikael, it worked beautifully.
from mversion.
Related Issues (20)
- Paramenter `-m` doesn't create a tag HOT 4
- Execute precommit scripts right before the actual commit HOT 6
- mversion -m failing on Windows7 HOT 3
- Add "files" entry in package.json or .npmignore HOT 4
- Show 'next' version number. HOT 2
- Can't seem to run a build task in the right hook HOT 2
- Feature Request: `mversion -a` HOT 2
- TypeError on fresh install HOT 1
- no precommit nor postcommit execution HOT 4
- no output from preupdate script
- mversion with custom cwd from command line scripts HOT 2
- Handle explicit version that matches current version
- Support sonarqube properties files
- Avoiding bower.json
- is plan to support ios or android project HOT 1
- Please update MINIMATCH dependency HOT 1
- dependencies update HOT 3
- Not working if <newversion> argument contains '-h' in it
- GHSL-2020-110 HOT 2
- Remote Command Execution in mversion HOT 2
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 mversion.