I want to use the yoma generator inside a NodeJS project
I installed yeoman-generatorand generator-git(the generator I want to use) as a local dependency, and at this point my code looks like this:
var env = require('yeoman-generator')();
var path = require('path');
var gitGenerator = require('generator-git');
var workingDirectory = path.join(process.cwd(), 'install_here/');
generator = env.create(gitGenerator);
obviously, the last line does not work and does not create a scaffold.
Question: how?
It is important to note that I want to stay at the level of local dependence!
source
share