Comments (3)
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.
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.
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)
- Implementing the module pattern with typescript? HOT 5
- [Feature,Discussion]: Use in monorepos HOT 3
- The hardest part about Builder is making an Archetype. HOT 4
- How to extend an archetype. HOT 2
- Alternatives to "the module pattern". HOT 2
- To shrinkwrap or not to shrinkwrap? HOT 3
- Not using a dev archetype, but builder throws errors about not finding one. HOT 1
- How to configure default log-level?
- Chore: Bump to node4+ and modernize code.
- CI: Empty environment parameters are super-flaky on Appveyor.
- Log: Add `debug` log level.
- Eslint: Update to modern configs
- builder and mono repos HOT 4
- Nested builder command doesn't work in Windows. HOT 4
- Why does Bolt have many more stars than Builder?
- CI/Appveyor: Appveyor breaks on old npm
- Node8: Update code to modern ES
- builder is unable to resolve archetypes when builder is symlinked in from external node_modules. HOT 2
- Running coverage with typescript support (bug?) HOT 1
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 builder.