Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running the generator locally #223

Closed
newtonianb opened this issue Nov 5, 2014 · 3 comments
Closed

Running the generator locally #223

newtonianb opened this issue Nov 5, 2014 · 3 comments

Comments

@newtonianb
Copy link

I also would love a new release but need this asap. What is the procedure to run this generator locally so that i can create a local release with the latest comimts?

@silvenon
Copy link
Member

silvenon commented Nov 5, 2014

You can se the instructions here.

@silvenon silvenon closed this as completed Nov 5, 2014
@newtonianb
Copy link
Author

thanks @silvenon, but I'm pulling my hair big time. I've tried several times following the instruction but the resulting files are not the latest from the repo everytime I don't understand where it's fetching these old files from!

$ mkdir -p ~/yeoman-test/ && cd ~/yeoman-test/
$ git clone git@github.com:yeoman/generator.git
$ cd generator
$ npm link
$ cd ~/yeoman-test/
$ git clone https://github.com/yeoman/generator-gulp-webapp.git
$ cd generator-gulp-webapp && npm link
$ cd ~/yeoman-test/
$ git clone git@github.com:yeoman/generator-mocha.git
$ cd generator-mocha && npm link
$ cd ~/yeoman-test/generator/
$ npm link generator-gulp-webapp
$ npm link generator-mocha
$ mkdir -p ~/yeoman-test/webapp/ && cd ~/yeoman-test/webapp/
$ yo --help

DD@ER ~/yeoman-test/webapp
$ yo --help
Usage: yo GENERATOR [args] [options]

General options:
  -h, --help     # Print generator's options and usage
  -f, --force    # Overwrite files that already exist

Please choose a generator below.


Gulp-webapp
  gulp-webapp:app

Mocha
  mocha:app

Webapp
  webapp:app
yo gulp-webapp

@silvenon
Copy link
Member

silvenon commented Nov 5, 2014

Not sure what you were doing here:

$ cd ~/yeoman-test/generator/
$ npm link generator-gulp-webapp
$ npm link generator-mocha

Also, why were you cloning yeoman-generator?

This should be sufficient for any generator:

$ git clone https://github.com/yeoman/generator-gulp-webapp
$ cd generator-gulp-webapp
$ npm link
$ yo gulp-webapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants