Comments (9)
@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.
@thewoolleyman basic js support is available. It's not in master yet.
from rules_kotlin.
@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.
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.
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.
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.
@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.
node_modules should not be in the workspace. The example relies on rules nodejs to manage the node dependencies.
from rules_kotlin.
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)
- NoSuchMethodError using Gson in KSP plugin on Kotlin 1.9 HOT 1
- Kotlinc options don't pass through to JS Compile
- Make `kt_jvm_binary` produce a *_deploy.jar implicit target
- Following instructions for a custom kotlinc distribution causes builds to fail HOT 2
- Associates or friends leak the internals of their compile classpath HOT 2
- Xcontext-receivers, how? HOT 3
- retrieve generated class/src jars from rules_kotlin `KtJvmInfo` HOT 7
- Transitive `data` files do not propagate through `kt_jvm_library` as they do in `java_library`. HOT 2
- Missing support for passing options to KSP processors HOT 2
- ERROR: --nouse_workers_with_dexbuilder :: Unrecognized option: --nouse_workers_with_dexbuilder with Bazel@HEAD HOT 1
- Experimental strict kotlin deps should support target exclusion HOT 2
- Bazel OOMs during analysis phase when KSP provides Java outputs information HOT 1
- Support incremental compilation when using workers
- Fail to compile Java stubs in mixed-kotlin/Java setting
- Instructions on using rules_kotlin with bzlmod HOT 4
- java not found with bzlmod and `--nolegacy_external_runfiles` HOT 1
- KotlinKapt fails on Java 21 with java.lang.IllegalAccessError
- [Feature Request] Allow exporting KSP plugins
- Release notes for v1.9.0 contain incorrect url for http_archive HOT 4
- WorkerEnvironmentTest is failing with Bazel@HEAD 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 rules_kotlin.