biojs / generator-biojs-webcomponents

Generate all the boilerplate for your next BioJS tool!
http://training.biojs.net
MIT License
9 stars 2 forks source link

Added option to run generator in directory mentioned in arg #32

Closed Nikhil-Vats closed 4 years ago

Nikhil-Vats commented 4 years ago

Description

This adds the option to run the generator in the directory mentioned in the argument. Also changes the tests accordingly.

  1. yo @biojs/biojs-webcomponents will run the generator in a new directory named web-component in the current directory. If this directory already exists, the generator will run in the existing one.

  2. yo @biojs/biojs-webcomponents . will run the generator in the current directory.

  3. yo @biojs/biojs-webcomponents /pathToDIrectory will run the generator in the directory whose path is passed. If the directory whose path is passed doesn't exist, the generator will create a new directory.

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

sarthak-sehgal commented 4 years ago

Please update the README

sarthak-sehgal commented 4 years ago

Also, please attach relevant information like what arguments to pass, default behaviour, etc. here as well.

Nikhil-Vats commented 4 years ago

@sarthak-sehgal I have updated the PR with the relevant information. I will update the documentation soon in a separate PR.