-
Notifications
You must be signed in to change notification settings - Fork 29
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
Brainstorming: Looking further than validation: creating configs #46
Comments
Do you mean some kind of interactive assistant that helps you creating new configs and helping you adding stuff to your existing configs? |
This is what I'm pushing towards with configuration parts. That said, there is a package dependency, webpack-merge, to make the approach sane. I map a technique to a part in the related book. If you want a cli tool, you could easily map a part to a question and then generate a reference to the part. Overall code generation should be simple this way. |
And of course it would integrate this great lib so webpack- buddy could validate too |
A web service providing rich inline annotations and possibilities to interactively extend the config with more stuff via comfortable choosing from gui-configurable, community-curated presets sounds pretty attractive though. |
Yeah, I see no reason why these ideas couldn't live on the web. A cli is a nice starting point as it forces you to develop an important part of the logic. |
I'm hyped about this. Just need to find some time. :) |
@christianalfoni Any thoughts on this? |
@jonathanewerner Me too. Count me in! |
http://graphql-swapi.parseapp.com def is an inspiration re autocomplete and inline documentation. |
I am actually thinking about adapting the code from https://github.com/graphql/codemirror-graphql to write a generic joi-interactive-codemirror package as a first step. (Could be used for all kinds of configs) Additional features would be a) selecting "parts" aka snippets for insertion and b) from the cli side (webpack-validator) a link to a to-be-existing-web service, where the link additionally has the webpack config that has just been validated included as a query string, so that the "intelligent" version of the config file existing in your local code base can be inspected at any time. Thoughts? |
Yes It's a great idea. Last week, I started to think about a "webpack-config-cli" to build webpack config step by step. But build something interactive with codemirror could be really better. If I find some time, I would love to help. |
I also keep thinking about this. ;) I can't really see people copy pasting the config between browser and local editor a zillion times... That's why i started webpack-explain, which has the long term goal of "tutoring" you through the creation of a webpack config. So if you start with an empty |
Hey people,
Something has been stirring my mind for a while: validating existing configs is nice, but the problem starts earlier: the point when you start building your config. It's just overwhelming. Copy pasting from existing, complex configs is suboptimal, you don't understand the stuff you're doing. And creating it from scratch is difficult too: you alt tab between webpack configuration documentation and your editor, rinse and repeat; probably followed by many hours of searching miscellaneous GitHub issues for best practices.
I wonder how this could be optimized. I don't want another abstraction over webpack, users should stay in control when needing advanced customization. I imagine some form of interactive guidance, incorporating and hinting at best practices from the beginning. One approach would be a web service like webpackbin does it, providing inline hints etc. back and forth copy pasting to usage in local project is suboptimal though. Yeoman generator would be another option, I'd like something that's more incremental though. Maybe some interactive cli thing that analyses existing webpack config and provides hints and suggests additions and modifications over time. Like an experienced pair programmer who has all webpack config and existing best practices in his head all the time. :)
So, just some rambling thoughts here. I'm just interested in your thoughts on something like that.
The text was updated successfully, but these errors were encountered: