Giter Site home page Giter Site logo

Comments (3)

yann300 avatar yann300 commented on June 8, 2024

Sure we can do something.
where would live zksync.js? would this be part of a npm module or a helper that would be located in the remix file system?

from remix-project.

stranger80 avatar stranger80 commented on June 8, 2024

Actually thinking about this further, two command syntax approaches are possible:

  1. Follow the JS syntax, ie. expect the following syntax:
    <module-name>.<command>(<parameter-list>)

  2. Follow the "CLI convention", ie expect:
    <module-name> <command> <parameter1> <parameter2>...

Regarding the sourcing of the module JS file, I can imagine the following:
a) Publish the <module-name>.js as npm package and specify the package reference in the plugin descriptor
b) Publish the <module-name>.js together with plugin UI, and specify URL in the plugin descriptor
c) Put the <module-name>.js in remix workspace, following some convention (eg. /commands/module-name.js) and allow calling commands from there.

Option c) is imho the least favourable for our case, as we would like the commands to be bundled with the plugin, in a way which is transparent to the user...

from remix-project.

yann300 avatar yann300 commented on June 8, 2024

thanks for the details!
The module wouldn't be editable by the end user right?
solution a) could already work in some ways. If you already have such a NPM package, I would be happy to give it a try.

from remix-project.

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.