Yeoman Generator CoffeeScript Entry Point -


is possible hook 'index.coffee' file entry point yeoman generator?

the 'generator-generator' generator creates 'index.js' file. replacing 'index.coffee' hides generator yeoman.

i've looked in documentation , couldn't find mention of it.

https://github.com/yeoman/yeoman/wiki/generators

i found old fork of yeoman seems have had planned:

https://github.com/mklabs/yeoman/wiki/generators

for time being i've setup watcher compiles coffeescript files javascript.

you want index.js file contain this:

require('coffee-script'); module.exports = require('./index.coffee'); 

then put actual generator code in index.coffee. ported on example generator-generator here https://gist.github.com/tuxracer/6332601


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -