Comments (6)
Hi @jeffrson,
Thanks for the nice words and for reaching out.
Do you think you could make things work with the --dedupe
and the --prepare-command
command-line flags?
Best.
from caxa.
Yes, works for me (--no-dedupe
though).
The command line is rather long now (even with short parameters), but doesn't seem to matter.
from caxa.
Great. I’m glad you got things working.
from caxa.
Unfortunately I wasn't right.
Although everything seemed to be fine, it isn't:
--prepare-command
and --exclude
don't work well together. I exclude files from .yarn (eg .yarn/cache), which, however, are instantly recreated by the prepare-command I want to use.
So I think, the order of exclude and prepare should be switched, which, btw, sounds quite sensible: first prepare, then do all other things.
from caxa.
Oh, interesting. It seems like you and I understand the point of --exclude
differently:
You: --exclude
means “don’t include this file in the binary.”
I: --exclude
means “don’t copy this file over into the temporary directory where the application will be prepared.”
Your --exclude
comes late in the chain of processes that need to happen to make an executable. Mine comes early.
That’s a miscommunication that I’ll address in the documentation.
In light of this information, I suppose that you still can get what you want by using the existing configuration facilities in caxa:
-
Use
--exclude
to avoid copying stuff you don’t want into the temporary directory, for example,.git
. -
Use
--prepare-command
as<commands-that-you-want-to-run> && rm <files-that-were-generated-by-the-previous-commands>
.
How does that sound?
from caxa.
Hi @jeffrson,
Thanks for using caxa and for the conversation here.
I’ve been thinking about the broad strategy employed by caxa and concluded that there is a better way to solve the problem. It sidesteps the issues of --include
and --exclude
entirely. Can you please give it a try and report back? I don’t have any experience with package managers other than npm, so maybe you can help in that department.
It’s a different enough approach that I think it deserves a new name, and it’s part of a bigger toolset that I’m building, which I call Radically Straightforward · Package.
I’m deprecating caxa and archiving this repository. I invite you to continue the conversation in Radically Straightforward’s issues.
Best.
from caxa.
Related Issues (20)
- caxa with adonisJs It doesn't work for me can you help please!! HOT 3
- API usage in ESM module: TypeError: caxa is not a function HOT 3
- Hide console window HOT 11
- Windows executable can't be code-signed HOT 3
- "Unsupported 16-Bit Application" error on Windows exe HOT 1
- Freebsd stub ? HOT 2
- Guidance to change from os.tmpDir() to arbitrary path HOT 1
- Executable binary reading from a new file at runtime HOT 1
- MODULE_NOT_FOUND for any additional library HOT 1
- TypeError: Class extends value undefined is not a constructor or null HOT 1
- Current working directory on macos not per documentation HOT 1
- Are multiple commands supported? HOT 1
- Instead of replacing the previous executable entirely, it adds content of the previous executable to the new one and then replaces it. HOT 3
- Windows exe error .node dependencies HOT 1
- large file binaries in windows HOT 1
- libnode.so.108: cannot open shared object file HOT 1
- My code becomes exposed HOT 2
- can i tell caxa where it extracts itself too? HOT 1
- Caxa using current working directory instead of TMP dir for Express static serving HOT 1
- Cannot find module 'date-fns' 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 caxa.