Comments (8)
I can confirm it works, thanks a lot @ajalt
from mordant.
Hi @ajalt, stumbled over your library, looks pretty promising
Also, I would like to use it in a JS project. I read here #3 that you are waiting for a PR to be merged. As far as I can see it is but the corresponding change not yet publish. So I guess you still wait for JetBrains? Any chance you publish an artifact consumable by a JS project beforehand?
from mordant.
@robstoll version 2.0.0-beta1 was just released with JS support. There shouldn't be any more major API changes, so give it a try and let me know if it works out for you,
from mordant.
Unfortunately I cannot try this, though I'd like to. Maven can't resolve it due to the missing colormath JARs. Will try it out when that's fixed! The functionality looks great. I'm not sure if it's worth limiting the library too much for JS and Native. At least, the JVM version can be compiled to fast native binaries using GraalVM now. And I'm not sure there is much use for this in the JS world, which has similar libraries already.
from mordant.
Colormath is definitely published; maven central might have had an outage when you tried.
The JS target isn't designed to be used as an npm package from pure JS; it's targeted towards projects written in Kotlin/JS. Other node libraries exist, but mordant should be the best to use from Kotlin.
from mordant.
OK, it works with Maven (the tool) if you specify mordant-jvm
as the artifact ID instead of just mordant
. The reason is, the mordant/colormath POMs are empty, as are the javadoc JARs published alongside them.
I think what's happened here is that Gradle/Kotlin MPP is publishing POMs that aren't actually usable by Maven but in such a way that Maven itself doesn't notice there's anything wrong. It then generates a useless/misleading error message. I suspect this is a side-effect of the desire to use Maven Central as a CDN which would normally insist on having a JAR and a POM, but Gradle wants to only publish its own JSON module file, so it ends up making these empty files. Not ideal.
I think the fix is to provide separate instructions for Maven users that contains the JVM specific artifact, as Maven cannot read the multi-platform lib metadata anyway. I'll open a quick PR.
from mordant.
Hello @ajalt
could you notify me when intellij/markdown
and therefore mordant is available on Kotlin/Native?
I want to integrate it to my starter project for building command line tools
https://github.com/jmfayard/kotlin-cli-starter
from mordant.
Mordant 2.0.0-beta2 has been released, which includes macosX64 support (@jmfayard)
from mordant.
Related Issues (20)
- Typo in Borders member TOP_BOTTOM (TOM_BOTTOM) HOT 1
- No border between rows, or bottom border when borders = Borders.LEFT_RIGHT HOT 3
- Is there a way to display several progress bars? HOT 8
- Widgets don't compute correct width for Emoji sequences HOT 4
- Protected strings such as URLs
- A grid with a single column and fixed width n only hold n-1 characters HOT 3
- TerminalDetection not detecting IntelliJ HOT 5
- Feature request: support for sync protocol
- Module classpath missing HOT 1
- IntelliJ detection misfires if the program has a command line containing the word "idea" HOT 3
- `Terminal.print()` ignores new line feeds at the end of Strings HOT 1
- ProgressBar deletes previous text in IntelliJ Terminal (Jedi) HOT 4
- Tables (and therefore almost all layouts) cannot be empty HOT 2
- info.updateTerminalSize() can crash on MacOS Ventura HOT 13
- Feature request: prompt checkbox HOT 2
- Progress bar: length must be 2 or greater, was 1
- Expose methods for performing raw print request HOT 6
- TerminalInfo interactive doesn't check STDOUT / STDERR HOT 1
- Provide a way to disconnect animation TerminalInterceptor
- Adding log appender 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 mordant.