Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for default session values to be specified #12

Open
aweary opened this issue Mar 23, 2016 · 1 comment
Open

Allow for default session values to be specified #12

aweary opened this issue Mar 23, 2016 · 1 comment

Comments

@aweary
Copy link

aweary commented Mar 23, 2016

So I had the same idea for this module a while ago (great job btw!) and one of the things I wanted to do was allow for packages to allow a default session, meaning they could pre-define a few variables in their package.json file or somewhere else and that JSON would also be attached to the global object in the REPL section.

So say you have something like selectn and you want to test it. Instead of having to manually type in dummy data the package manager could add something to their package.json (or something) like:

...
"try": {
  "addresses":  [
  {"first": "blah blah blah"},
  {"second": "blah blah blah" }
 ]
}

And that would be parsed and loaded in just like the module itself.

@aweary aweary changed the title Allow for a default session to be specified Allow for default session values to be specified Mar 23, 2016
@victorb
Copy link
Owner

victorb commented Mar 29, 2016

Ah, this is a interesting idea, we can also hook into the tonic-dev values if they exist in the repository (http://blog.tonicdev.com/2015/10/28/npm-plus-tonic.html)

I say yes to this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants