Allow specifying a different output directory than app/?
See original GitHub issueIs your feature request related to a problem? Please describe.
I’m trying to use bubblewrap on an existing project that, per Rails conventions, has .rb
files in folders under app/
such as app/models
. This conflicts with the default bubblewrap build outputs under app/build
and app/src
.
Describe the solution you’d like
Can we have a flag like --outDir
to output to a different location?
bubblewrap build --outDir built
Describe alternatives you’ve considered
Moving the original app/
to a temp dir before build, then moving the build app/
to another temp folder, and moving the original app/
contents back. I don’t like this 😄
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
How to change output directory for a target - xcode
Go to File -> Project settings · Click the Advanced button · Click Done , then Done once more.
Read more >Change the build output directory - Visual Studio (Windows)
To change the build output directory using the legacy .NET Project Designer or C++ property pages · For C#, select the Build tab....
Read more >Delphi Compiler - RAD Studio - Embarcadero DocWiki
Use a semicolon to separate multiple symbols. ... If left blank, the global DCP output directory specified in the Tools > Options >...
Read more >Overview of docker compose CLI
When you use multiple Compose files, all paths in the files are relative to the first configuration file specified with -f . You...
Read more >Compile and build applications with IntelliJ IDEA - JetBrains
In Project Settings, select Project and in the Project compiler output field, specify the corresponding path. Project Structure dialog / ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You should be able to modify your
gradle.properties
and specify a different build directory, as described here: https://stackoverflow.com/questions/13915351/change-gradles-working-directory-when-compiling-a-groovy-projectWe could add this to
twa-manifest.json
so thatgradle.properties
is generated with the correct value when the project is regenerated.My solution was to create a custom npm script in the package.json. The script could cd into another directory other than app/ and then run the command. It would look something like this:
You could do the same thing with
bubblewrap build
or combine them into one command. Then all I have to do is runnpm run build-android
from app/ and it’ll do the rest. Or since you’re using Rails, you could use the rails equivalent of these custom commands.