Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterize index.js outfile location #150

Open
joshuamiller opened this issue Aug 25, 2022 · 3 comments
Open

Parameterize index.js outfile location #150

joshuamiller opened this issue Aug 25, 2022 · 3 comments

Comments

@joshuamiller
Copy link

I am using Krell to develop an app that has a share extension. In order to run both the main app and the share extension simultaneously, two different Krell processes need to be running. Krell handles everything for this already except for allowing you to specify where the index.js file is written to. Locally I've been able to add an option for this and update the write-index-js fn pretty easily. The result is I can run clj -M -m krell.main -co share.edn --index-js krell_index_share.js --index-js-out index.share.js -c -r in one terminal and the standard Krell repl in another and have repls into both.

Happy to provide more details or the implementation if desired.

@jeyasankar
Copy link

Hi @joshuamiller ,
I plan to add an extension to my react native ios app and wanted to use Krell to generate two index files like you had done. Also I wanted to use two Krell repl connections - one to the app and another to the extension. It seems you have already done those changes locally for you. Can you share the changes you have made ?

Thanks

@joshuamiller
Copy link
Author

@jeyasankar I pushed my changes that handle this here: master...joshuamiller:krell:joshuamiller-parameterize-index-js

It adds a --index-js-out repl option, so you can do clj -M -m krell.main -co share-compiler-opts.edn --index-js-out index.share.js ...

@jeyasankar
Copy link

Thanks @joshuamiller for a quick reply. That helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants