Comments (5)
@bencoveney I believe you're right. I believe this feature was half-implemented in the master branch and it looks like I didn't fix it in the right way.
I'll work on it this week.
from barrelsby.
@bencoveney I'm using barrelsby in my NX workspace and need to generate each app and lib's directory. I got around this by just doing barrelsby -d "apps/app1/src/app" && barrelsby -d "apps/app2/src/app"...
from barrelsby.
This should be resolved in the latest version
from barrelsby.
I'm running into the exact same issue.
from barrelsby.
Looks like there's a mismatch between what the docs say and what the code actually does:
https://github.com/bencoveney/barrelsby/blob/master/src/index.ts#L23
Could be solved by either:
- Update the code to reflect the docs as described above - In practice this sounds like just a
for
loop but I wonder if there's any edge cases to watch out for, like if somebody passes["dir/", "dir/nested"]
. - Update the docs to reflect the code - where barrelsby would need to be run once for each directory, probably keeping the code simpler.
@acmarcel @jacewardell I don't suppose you have any more information about how you use Barrelsby (like how your project is set up) that could help inform what to do?
from barrelsby.
Related Issues (20)
- barrelsby prints "[Function: configParser]" to the console HOT 2
- Multiple directories not working as expected HOT 2
- Recursive barrels with defaults incorrect create defaults HOT 1
- tree shaking? HOT 4
- Drop support for Node 12 HOT 5
- Use folders instead of index HOT 2
- Adding a --check flag for ci HOT 6
- Allow customisation of header comment HOT 5
- Allow extensions other than .ts HOT 9
- Check file annotation before deleting the index.ts
- .svelte files support HOT 1
- Issues with `-s filesystem` HOT 4
- Hello HOT 1
- Recommended way for skipping typescript declaration files? HOT 2
- Barrels files updated with wrong content on repetitive run if `noHeader` flag enabled
- Support | in regex HOT 2
- Tests are failing HOT 1
- --exportDefault generates default exports eventhough there are none HOT 2
- Migration to vs code HOT 1
- Add support to re-export files that are filtered using a module resolution-like behavior (e.g., file extensions)
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 barrelsby.