Giter Site home page Giter Site logo

Comments (5)

BitForger avatar BitForger commented on September 16, 2024 2

@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.

jacewardell avatar jacewardell commented on September 16, 2024 1

@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.

BitForger avatar BitForger commented on September 16, 2024 1

This should be resolved in the latest version

from barrelsby.

jacewardell avatar jacewardell commented on September 16, 2024

I'm running into the exact same issue.

from barrelsby.

bencoveney avatar bencoveney commented on September 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.