Skip to content

Parameterize index.js outfile location #150

Open

Description

@joshuamiller

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.

Activity

  1. jeyasankar commented on Jun 5, 2024

    @jeyasankar

    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

  2. joshuamiller commented on Jun 5, 2024

    @joshuamiller
    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 ...

  3. jeyasankar commented on Jun 5, 2024

    @jeyasankar

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions