Code Monkey home page Code Monkey logo

Comments (6)

dtinth avatar dtinth commented on June 16, 2024 1

@jgm Sure. It is a Vite app using the Svelte framework.

The steps to build is as follows:

  1. Install Node.js (version 16 or above).
  2. Run corepack enable in a terminal to make the yarn command available.
  3. Run yarn install to install the project dependencies.
  4. Run yarn build to build the project.
  5. The files are in dist folder.

If you prefer not to install software, a cloud-based approach is available:

  1. Open the repo in Gitpod: https://gitpod.io/#https://github.com/dtinth/djot-playground (Gitpod will auto-detect the project build setup and install the dependencies automatically.)
  2. Open a new terminal and type yarn build to generate the files.
  3. Right click on the dist folder and select "Download" to download the build output.

Hope it helps.

from djot.

jgm avatar jgm commented on June 16, 2024

I will try to make one available. Of course it would be easier if we had a JavaScript version. I wonder how far one could get with automated Lua -> JS converters?

from djot.

wooorm avatar wooorm commented on June 16, 2024

👍

I have no lua experience so I don’t know the ecosystem. However, as they’re somewhat similar, and that I’d imagine more folks would need lua -> js, something probably exists? Or to WASM? https://github.com/ceifa/wasmoon or https://medium.com/@imwithye/port-lua-to-web-environment-using-webassembly-3144a8ac000e?

I’m also contemplating whether it is possible to have a feature flag in my markdown parsers to support djot or commonmark. It mostly depends on how big the difference is, whether that’s feasible. But that might work. I don’t plan on working on this any time soon though.

from djot.

dtinth avatar dtinth commented on June 16, 2024

Djot looks interesting!

I whipped up a little playground here: https://djot-playground-poc.vercel.app/

It loads up Djot source code directly from GitHub main branch and runs it through wasmoon. However, there is a hardcoded list of files that must be kept up-to-date. I have no intention to maintain the playground, so please feel free to fork. Hope it’s useful!

from djot.

jgm avatar jgm commented on June 16, 2024

@dtinth that's excellent! Before seeing this, I managed to get something working with emscripten. But yours might be a better approach (the code looks simpler), and if so I'll fork it. Thank you.

from djot.

jgm avatar jgm commented on June 16, 2024

@dtinth can you explain how to compile your code into something I could put on a web server? I don't know much about the JS ecosystem.

from djot.

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.