You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@polygene.apache.org by Niclas Hedhman <ni...@hedhman.org> on 2016/08/20 10:50:34 UTC
Yeoman for scaffolding
Gang,
I came across Yeoman outside the usual JS world, and saw that it is
actually a very capable, almost fun, package.
So, I intend to scrap my tools/shell effort, and replace it with a Yeoman
generator.
The small test I ran last night shows that we can get a very interactive
creation of a project. See below for a quick sample.
If you have any thoughts on what is important on this, please speak up. If
you love coding in JavaScript, here is an opportunity to help out...
Cheers
--
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java
Re: Yeoman for scaffolding
Posted by Niclas Hedhman <ni...@hedhman.org>.
It is correct that I already started with it.
Resides in tools/generator-zest.
Install npm, then run "npm install yeoman" (possibly with sudo) and if I
remember correctly, it was enough to stand in the generator-zest directory
and do "npm link" (possibly with sudo) and after that the following command
can be issued;
yo zest
But only File ES, RDF indexing, Rest and Heroes Sample are somewhat
implemented. A fair bit for 1 day, but a lot more to do and any help is
useful.
Cheers
Niclas
On Thu, Aug 25, 2016 at 8:29 PM, Sandro Martini <sa...@gmail.com>
wrote:
> Sorry, just see that you already committed some stuff in Zest-Java
> under the 'ZEST-158' issue ... anyway do you need some kind of help on
> this (without so much knowledge of Zest) ?
>
> Sandro
>
> 2016-08-25 14:26 GMT+02:00 Sandro Martini <sa...@gmail.com>:
> > Hi Niclas,
> > like you I thing that Yeoman is an interesting tool, but up to now I
> > only used it few times.
> > As seen [here](http://yeoman.io/authoring/) shouldn't be too complex
> > to write custom generators, so could be a good thing to try :-) ...
> >
> > Are templates to use in generators already present somewhere in some
> > Zest repository (at least as samples) ?
> >
> > Last, to start write/review something, do you think a new folder
> > 'generators' in 'develop' branch of Zest-Sandbox could be used (or
> > other) ?
> >
> > Bye,
> > Sandro
>
--
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java
Re: Yeoman for scaffolding
Posted by Sandro Martini <sa...@gmail.com>.
Sorry, just see that you already committed some stuff in Zest-Java
under the 'ZEST-158' issue ... anyway do you need some kind of help on
this (without so much knowledge of Zest) ?
Sandro
2016-08-25 14:26 GMT+02:00 Sandro Martini <sa...@gmail.com>:
> Hi Niclas,
> like you I thing that Yeoman is an interesting tool, but up to now I
> only used it few times.
> As seen [here](http://yeoman.io/authoring/) shouldn't be too complex
> to write custom generators, so could be a good thing to try :-) ...
>
> Are templates to use in generators already present somewhere in some
> Zest repository (at least as samples) ?
>
> Last, to start write/review something, do you think a new folder
> 'generators' in 'develop' branch of Zest-Sandbox could be used (or
> other) ?
>
> Bye,
> Sandro
Re: Yeoman for scaffolding
Posted by Sandro Martini <sa...@gmail.com>.
Hi Niclas,
like you I thing that Yeoman is an interesting tool, but up to now I
only used it few times.
As seen [here](http://yeoman.io/authoring/) shouldn't be too complex
to write custom generators, so could be a good thing to try :-) ...
Are templates to use in generators already present somewhere in some
Zest repository (at least as samples) ?
Last, to start write/review something, do you think a new folder
'generators' in 'develop' branch of Zest-Sandbox could be used (or
other) ?
Bye,
Sandro
Re: Yeoman for scaffolding
Posted by Niclas Hedhman <ni...@hedhman.org>.
Forgot to show the sample,
niclas-249:heroes2 niclas$ yo zest
? Your project name (heroes2)
? Java package name (heroes2) org.hedhman.heroes
? Which entity store do you want to use? (Press <space> to select)
❯◯ file
◯ geode
◯ hazelcast
◯ jclouds
◯ jdbm
◯ leveldb
◯ in-memory
? Which indexing system do you want to use? (Press <space> to select)
❯◯ rdf
◯ elastic search
◯ solr
◯ sql
? Which caching system do you want to use? (Use arrow keys)
❯ none
memcache
ehcache
? Which serialization system do you want to use? (Use arrow keys)
❯ jackson
stax
org.json
? Other features? (Press <space> to select)
❯◯ rest api
◯ reindexer
◯ metrics
◯ jmx
◯ version migration
But Yeoman folds the selection away, so the terminal looks like this when
done;
niclas-249:heroes2 niclas$ yo zest
? Your project name heroes2
? Java package name org.hedhman.heroes
? Which entity store do you want to use? file
? Which indexing system do you want to use? rdf
? Which caching system do you want to use? none
? Which serialization system do you want to use? jackson
? Other features? rest api, reindexer, metrics, jmx, version migration
On Sat, Aug 20, 2016 at 6:50 PM, Niclas Hedhman <ni...@hedhman.org> wrote:
> Gang,
> I came across Yeoman outside the usual JS world, and saw that it is
> actually a very capable, almost fun, package.
>
> So, I intend to scrap my tools/shell effort, and replace it with a Yeoman
> generator.
>
> The small test I ran last night shows that we can get a very interactive
> creation of a project. See below for a quick sample.
>
> If you have any thoughts on what is important on this, please speak up. If
> you love coding in JavaScript, here is an opportunity to help out...
>
> Cheers
> --
> Niclas Hedhman, Software Developer
> http://zest.apache.org - New Energy for Java
>
--
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java