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

Build context object #114

Open
insin opened this issue May 30, 2016 · 1 comment
Open

Build context object #114

insin opened this issue May 30, 2016 · 1 comment
Labels

Comments

@insin
Copy link
Owner

insin commented May 30, 2016

The following are used as sources of info and config for most nwb commands:

  • Command-line arguments
  • The package.json of the project nwb is being run in
  • The nwb config file

Having a central place to manage and co-ordinate these would make things a bit cleaner.

Having this information available everywhere also makes it easier to add certain types of features, e.g. if we've determined that we're running a test AND the user has sinon or enzyme in their devDependencies AND they haven't enabled webpack.compat for these libraries, we could warn them how to fix the breakage they might be about to hit (or go ahead and do it for them as well, just in case)

@insin
Copy link
Owner Author

insin commented Jul 21, 2016

This is going to need to be done soon for maintainability purposes!

@insin insin added the chore label Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant