feathers-plus / generator-feathers-plus

A Yeoman generator to (re)generate a FeathersJS application supporting both REST and GraphQL architectural concepts and their query languages.
https://generator.feathers-plus.com/
Other
44 stars 30 forks source link

feat: add skipPublic and skipGenerateChore options #266

Closed blackholegalaxy closed 5 years ago

blackholegalaxy commented 5 years ago

Summary

Sometimes we don't want feathers-plus CLI to override some changes made in chore files such as package.json or we don't want the CLI to regenerate files we don't want (eg: renaming tsconfig.test.json into tsconfig.spec.json and regenerate -> CLI re-create tsconfig.test.json).

Building an API we also sometime don't want feathers to create the public directory.

New options

I added two options meant to be written in feathers-gen-specs.json under app path:

These options are meant to be added manually when needed after app generation in order to be able to run generate all without changing/resetting chore files where feathers doesn't inject anchors.

Tests

JS and TS tests with both options activated were added