senecajs-attic / generator-seneca-plugin

Yeoman generator for seneca plugins
MIT License
3 stars 3 forks source link

less is more #5

Open boneskull opened 9 years ago

boneskull commented 9 years ago

I was trying to find documentation on writing a Seneca plugin. Eventually I found this generator, used it, and realized that plugins were very straightforward.

I ended up removing every single devDependency except seneca.

My problem with so many Yeoman generators is that they are opinionated about technologies orthogonal to the thing that's supposed to be generated. Others may argue that providing everything will get you up-and-running more quickly. For me, it just slows me down, because I have my own preferred stack.

It'd be great if this generator just gave you:

  1. Some minimal version of seneca-echo or something equivalent (a plugin which is trivial but actually does something)
  2. A (single) unit test
  3. A (single) E2E test (leveraging seneca)

Tests should use assert. Since we shouldn't be making more than two assertions (or a handful at most), the test framework is unnecessary; tests can be run via node test/file.js.

This generator should not make assumptions about code style, so eslint* is unnecessary.

I understand if you disagree. Just a suggestion.

geek commented 9 years ago

@boneskull here is another example project: https://github.com/maxired/seneca-skeleton

We could always add options to the generator so that its a barebones generator with additive features that are optional. I am happy to accept a pull request for this.