GithubHelp home page GithubHelp logo

Comments (3)

ryan-roemer avatar ryan-roemer commented on September 28, 2024

LOCAL_DEV isn't meant to be used as a normal thing. Symlinks are going to be problematic for many things with builder. Your best bet is to probably look into https://github.com/FormidableLabs/lank#readme and see if there's a lank config that can get everything to work (note that it will conflict with symlink approach if same package at issue). Good luck!

from builder.

trusktr avatar trusktr commented on September 28, 2024

Interesting, thanks for sharing lank. It's interesting that it takes a different approach than symlinking; I haven't seen any other tools take that approach.

Another problem is that even though LOCAL_DEV is set, it seems to work only with the main archetype, but the variable does not have any effect on resolution of *-dev archetypes so all the same problems persist in any project using a -dev archetype regardless of that variable. I.e., the same problems as main archetypes without LOCAL_DEV being set, happen with -dev archetypes regardless of that variable being set or not.


For now, my new workaround is to simply make a package that provides a bin, and using commander to set up command like my-cli build and my-cli test, etc, that simply call functions with the equivalent names exported from a config file overridable/extendable by each project. This does not rely on mangling PATH or any env variables, its just runtime functions.

Regardless of this workaround for executing common tooling across projects, I think lank might be useful. I'll have to try that to see how it compares with other tools that symlink. Do you think the lack of symlinks will help builder operate as usual? If so, then maybe I don't need to implement my workaround.

from builder.

trusktr avatar trusktr commented on September 28, 2024

Oops, I forgot to push the reproduction branch I mentioned in the OP, so I pushed it up in case someone ever wants to try to reproduce it.

from builder.

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.