Giter Site home page Giter Site logo

Comments (5)

ccheever avatar ccheever commented on September 21, 2024

Is there a reason they need to be locals and not globals?
If they can be globals, there are a number of ways that aren't too hard to set them.

from nesh.

GeoffreyPlitt avatar GeoffreyPlitt commented on September 21, 2024

globals is probably fine, can you explain further?

from nesh.

ccheever avatar ccheever commented on September 21, 2024

Easiest way is probably to look at an the nesh-hello example plugin and then basically make a copy and just set context.whatever to your object.
https://github.com/danielgtaylor/nesh-hello

from nesh.

danielgtaylor avatar danielgtaylor commented on September 21, 2024

@GeoffreyPlitt did you get this figured out? The example line that adds to the context is here:

https://github.com/danielgtaylor/nesh-hello/blob/master/hello.js#L8

There is no need to make a separate npm module for this. You can create an object with that postStart method defined and pass that into the plugin loader, all within your project.

from nesh.

GeoffreyPlitt avatar GeoffreyPlitt commented on September 21, 2024

Cool, thanks. The project I was using this for isn't active anymore, but
I'll keep this in mind for the future.

On Thu, Mar 12, 2015 at 10:16 AM, Daniel G. Taylor <[email protected]

wrote:

@GeoffreyPlitt https://github.com/GeoffreyPlitt did you get this
figured out? The example line that adds to the context is here:

https://github.com/danielgtaylor/nesh-hello/blob/master/hello.js#L8

There is no need to make a separate npm module for this. You can create an
object with that postStart method defined and pass that into the plugin
loader, all within your project.


Reply to this email directly or view it on GitHub
#17 (comment).

http://www.geoffplitt.com
http://facebook.com/geoffrey.plitt
https://twitter.com/GeoffreyPlitt
773.339.0915

from nesh.

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.