Comments (5)
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.
globals is probably fine, can you explain further?
from nesh.
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.
@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.
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)
- Combining babel and eval leads to a syntax error in eval HOT 2
- How do I get global variables within nodejs
- Upgrade to babel 6 HOT 1
- Unable to require module inside eval file
- multi line for babel ?
- wished feature: multi line editing in history
- Error in plugin history: // > Error: ENOENT: no such file or directory,
- Integrate promirepl HOT 2
- Error Running nesh --plugins or --enable or --disable
- nesh crashes when tab completing at certain place
- async await support
- refactor to use es6/7
- Cryptic error when loading a module with babel HOT 3
- Cursor up in Windows git bash does not cycle history items
- Is there a way to set the history file without writing code? HOT 1
- coffeescript 2 ? HOT 1
- Good job
- Why method introspection does not work? HOT 2
- Debugger / --inspect ? HOT 1
- Is this project still active? HOT 2
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 nesh.