Giter Site home page Giter Site logo

better example about zxp-provider HOT 4 CLOSED

codearoni avatar codearoni commented on August 14, 2024
better example

from zxp-provider.

Comments (4)

codearoni avatar codearoni commented on August 14, 2024

zxp-provider simply provides a path to the executable, so yes you can use -selfSignedCert.

Using it is no different than any other child_process that you could start with node.js (see node's docs on how to spawn a child_process)

I think the quickest example would be in gizmo's gulpfile: https://github.com/codearoni/generator-gizmo/blob/master/app/templates/gulpfile.js#L89 (where zxp == binPath).

Gizmo will eventually utilize zxp-provider. No time at the moment to push through that change though.

from zxp-provider.

codearoni avatar codearoni commented on August 14, 2024

@jfairley, so in the process of trying to sanely integrate ZXPSignCmd into a build chain, I ended up creating another module with an actual interface: https://github.com/codearoni/zxp-sign-cmd

Is that what you're looking for?

from zxp-provider.

jfairley avatar jfairley commented on August 14, 2024

YES! https://github.com/codearoni/zxp-sign-cmd is exactly what I was thinking.

I mean I already have all this set up and working with shell scripts, but I like what you've done. Mostly because, no matter what tool I find myself using, executing the signer is always awkward to express in JS. Take your 10-line gulp task as an example.

Very cool. 👍

from zxp-provider.

codearoni avatar codearoni commented on August 14, 2024

Right on. Yea I've found that executable's can be troublesome to maintain in node child_processes when they're not wrapped in some fashion - especially when the exe is expecting arguments in a specific order, like ZXPSignCmd does.

I contemplated slapping it in here, but decided to keep it pure so that anyone could use zxp-provider to access the raw binary, should they choose. cheers

from zxp-provider.

Related Issues (7)

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.