Code Monkey home page Code Monkey logo

Comments (9)

thewoolleyman avatar thewoolleyman commented on June 26, 2024

@hsyed Yes, If you have something working, even minimal, I'd love to try it out.

I'm wanting to use it on a greenfield project, so my requirements should be minimal, and I want to be as flexible and bazel-idiomatic as I can (I mainly just REALLY don't want to use gradle or maven, which are the only other real choices for multiplatform kotlin projects). I can open issues (and fix if I can) for anything that doesn't work or I don't understand. So, seems like a great fit.

Thanks!
-- Chad

from rules_kotlin.

hsyed avatar hsyed commented on June 26, 2024

@thewoolleyman basic js support is available. It's not in master yet.

from rules_kotlin.

thewoolleyman avatar thewoolleyman commented on June 26, 2024

@hsyed Thanks! I'll start playing with it when I have time, and use this issue to report any problems I can't get past.

from rules_kotlin.

thewoolleyman avatar thewoolleyman commented on June 26, 2024

I'm getting the following error when trying to build or fetch any of the node examples:

$ bazel fetch //examples/node/express:acme-routes
ERROR: error loading package 'examples/node/express': Extension file not found. Unable to load package for '@build_bazel_rules_nodejs//:defs.bzl': The repository could not be resolved
Building: no action

I'm probably missing something basic due to unfamiliarity with bazel, but I don't know what.

Thanks...

Edit: It would be helpful to put just a couple of lines in the js README.md with commands of how to run the examples.

from rules_kotlin.

hsyed avatar hsyed commented on June 26, 2024

Are you running the commands from the examples/node directory ? it is a nested workspace. If you run the commands from the root you will be in the root workspace.

from rules_kotlin.

thewoolleyman avatar thewoolleyman commented on June 26, 2024

Ah ok, it works from the examples/node directory.

I was confused because bazel build //examples/dagger:dagger_lib works fine from the root; I expected this to be the same.

from rules_kotlin.

thewoolleyman avatar thewoolleyman commented on June 26, 2024

@hsyed The example works fine for me (if run from the correct directory). I can build it and run the express app successfully.

I will try using it in a separate app when I get time.

My only suggestion is to add examples/node/node_modules to the .gitignore file.

from rules_kotlin.

hsyed avatar hsyed commented on June 26, 2024

node_modules should not be in the workspace. The example relies on rules nodejs to manage the node dependencies.

from rules_kotlin.

cgruber avatar cgruber commented on June 26, 2024

JS support exists at this point, but isn't well-maintained. I'm going to close this, as it is technically present, but we could use help from folks who have an interest in this capability.

There's also a larger kotlin multiplatform effort we are starting to think about, and this may be subsumed in that.

from rules_kotlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.