Re:Neutrino by Mozilla: Create and build modern JavaScript a...
by niteshade on Wednesday February 22, 2017 @12:31AM
(#13703272)
This! So much this! I've spent the past few days thinking about making a "Webpack Cookbook" with up-to-date "recipes" for getting the job done, such as how to use SASS, add linting, hot reloading etc. Mozilla have definitely made my day :)
I might be in the minority, but I'd rather not learn all the idiosyncracies of Webpack, I just want to build my project and get on with my day. Webpack have done a great job with the documentation for v2, but it remains a complex beast.
Re:Neutrino by Mozilla: Create and build modern JavaScript a...
by eliperelman on Wednesday February 22, 2017 @01:29AM
(#13703521)
I'd go even further and say that even if you have learned the idiosyncrasies of Webpack, you still won't want to carry on maintaining multiple configurations, or repeat your work across many projects. I believe Neutrino can have appeal to those users as well; those that want to consolidate their work into presets and share.
Re:Neutrino by Mozilla: Create and build modern JavaScript a...
by tjholowaychuk on Friday February 24, 2017 @07:24AM
(#13722940)
Nice this looks like the best implementation of webpack-hiding stuff I've seen yet, forcing less on you but still hiding it nicely.
Glad that more people are realizing boilerplate generation is not a solution, I get angry even looking at webpack config haha, I appreciate what it can do, but it doesn't belong at the app level.
Re:Neutrino by Mozilla: Create and build modern JavaScript a...
by eliperelman on Friday February 24, 2017 @12:51PM
(#13725851)
Thanks, that means a lot! Totally agree about boilerplate. I quickly tired of the copying and staleness of boilerplates, but I think the contributors of create-react-app make some valid points.
Working with the configuration needs of many loaders and concerns is difficult. Webpack configuration is not well-suited for keeping these separate and merging them back together later. This is a big reason why Neutrino abandoned using raw Webpack-based configurations merging across presets, favoring a single configuration API that all presets interact with. It takes a lot of the difficulty away from keeping things separate and abstract.
Re:Neutrino by Mozilla: Create and build modern JavaScript a...
by eliperelman on Tuesday February 21, 2017 @03:32PM
(#13699608)
The main purpose of Yeoman is to generate files that could essentially become a boilerplate, almost like a boilerplate generator. It doesn't actually do any work for building or testing the project, rather it could potentially put the dependencies in place to do that for you.
Neutrino, on the other hand, consolidates those dependencies and configuration for you into presets. It is the power of the build tool + the preset that makes building the project simple. Had you just used Yeoman to generate the dependencies and configuration, you would still be on your own to continue to manage all the individual dependencies and configuration, while with Neutrino you can simply override what you need and still have the preset manage its own dependencies.
Re:Neutrino by Mozilla: Create and build modern JavaScript a...
by eliperelman on Wednesday February 22, 2017 @01:22AM
(#13703485)
Are you talking about the documentation, or an app you're trying to run with Neutrino? I'm not aware of any problems with either, but if you could raise an issue I'd be happy to investigate.
Re:Neutrino by Mozilla: Create and build modern JavaScript a...
by flukus on Wednesday February 22, 2017 @01:30AM
(#13703525)
The documentation that the link goes to, clicking any of those links on the left or the next/back button does nothing. It looks like it might be cause be the company zscalar or the site, the error is:
> has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://neutrino.js.org' is therefore not allowed access.
Either way, it ridiculous to require javascript to read a plain text site.
I might be in the minority, but I'd rather not learn all the idiosyncracies of Webpack, I just want to build my project and get on with my day. Webpack have done a great job with the documentation for v2, but it remains a complex beast.
Thank you for the kind words!
Glad that more people are realizing boilerplate generation is not a solution, I get angry even looking at webpack config haha, I appreciate what it can do, but it doesn't belong at the app level.
Working with the configuration needs of many loaders and concerns is difficult. Webpack configuration is not well-suited for keeping these separate and merging them back together later. This is a big reason why Neutrino abandoned using raw Webpack-based configurations merging across presets, favoring a single configuration API that all presets interact with. It takes a lot of the difficulty away from keeping things separate and abstract.
Neutrino, on the other hand, consolidates those dependencies and configuration for you into presets. It is the power of the build tool + the preset that makes building the project simple. Had you just used Yeoman to generate the dependencies and configuration, you would still be on your own to continue to manage all the individual dependencies and configuration, while with Neutrino you can simply override what you need and still have the preset manage its own dependencies.
Edit - I can open them with a middle click, so at least the fallback to a more reliable tech.
> has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://neutrino.js.org' is therefore not allowed access.
Either way, it ridiculous to require javascript to read a plain text site.
Anyway, we're using gitbook to render our documentation content:
https://github.com/GitbookIO/gitbook
The documentation also lives in the GitHub repository, albeit not as navigable as the website:
https://github.com/mozilla-neutrino/neutrino-dev/tree/master...