Live data from Hacker News

Using Neutrino to jump-start modern JavaScript development

hacks.mozilla.org

11–20 of 68 posts

Re: Using Neutrino to jump-start modern JavaScript development

#12
post #2

Javascript Boilerplate Fatigue

After just reading the title, I assumed the same thing, but actually this is exactly what web development needs.

create-react-app is a great example of a project that abstracts away all the complexities of a JavaScript build process and dev environment, but customization inevitably requires you to 'eject' and reintroduce that complexity to your project.

This tool goes one step further and supports customization without this eject step.

This is finally where web builds need to be to provide a simple foundation for modern web development so devs can focus more on making apps and less on tooling.

I look forward to trying it out.

Re: Using Neutrino to jump-start modern JavaScript development

#13
What do I have to change with the "hello world" setup to get any kind of error reporting? If I introduce syntax errors in the index.js, I don't even get a good stacktrace on the CLI, never mind a neat compiler message in the browser itself (like create-react-app does).

Is this out of the scope for the basic example or an oversight? Anyway, if this is targeted at beginners, that's a bit of an issue.

Re: Using Neutrino to jump-start modern JavaScript development

#15

Maybe it's just me, but I didn't find it all that difficult to get started with webpack after a few tutorials and samples. This seems like it hides away something that people should probably understand, which isn't all that difficult to get started with. Also when you start combining different packages in webpack (or encounter an error (or want to make some decisions in the config script)), the standard copy/paste bo…

This was my biggest complaint with the Angular 2 cli generated app. I had to dig to even find out they were using webpack behind the scenes. And I know they just want to utilize it without troubling newbies, but I wish they had some means of customizing it. I think it's on their roadmap, or just being requested a lot on github. There's so much you can do with webpack that it's a shame it's hidden.

Re: Using Neutrino to jump-start modern JavaScript development

#17

I've been doing something like this for a while. I have my entire build process as a project on NPM itself. I just have to import it into my projects and write a small gulp project setup. It's very declarative and if I spent a little more effort could probably mostly eliminate. It has most of my preferred tools in it, including dev server setup, statically generated Pug templates, Babel, Rollup with tree shaking, and…

is it open? Would be interesting to use it.

It is, but I haven't documented it at all https://github.com/capnmidnight/notiontheory-basic-build

Here is an example of usage https://github.com/NotionTheory/Primrose/blob/master/gulpfil...

The name is lame, I hadn't considered sharing it and I misremembered that the dev server and doc gen are not yet a default part of the build project (though I could add them easily).

Re: Using Neutrino to jump-start modern JavaScript development

#18

I think this is a cool tool, but it's somewhere between funny and depressing that the article brags about how they were able to get a 'Hello, world!' program up in less than 5 minutes .

A Hello World GUI app, which is a fairly important distinction. Also one that runs on any machine with a web browser.

Re: Using Neutrino to jump-start modern JavaScript development

#19
post #16

Why not just use Yeoman? Moz really like reinventing the wheel.

There are few things I hate more than this asinine "don't reinvent the wheel" reply to people's project postings.

Also, Moz is a completely different, unrelated company.

Post reply on HN