Loopback-next: Create yeoman template/generator for loopback-next

Created on 9 Jun 2017  路  6Comments  路  Source: strongloop/loopback-next

Even though parts of loopback-next are still in flux, I think it would be a good idea to begin building up a generator to rapidly spin up apps, rather than relying on the example as a template to bootstrap our own work.

This would be a good opportunity to properly dogfood the generator ourselves, as well as the design.

Questions

  • Do we have a "best practice" or default we'd like to follow for how the generated applications organize their resources? (Will we mimic [email protected]?)
  • Would we want to change generator-loopback to accept command line arguments/environment variables? (Useful for automated testing)
  • Would we create a new template rather than use the existing one?

Considerations

feature team-apex

Most helpful comment

My opinion:

  • +1 for creating a project template for loopback.next projects.
  • -1 for using yeoman, unless we are going to include loopback.next project template in the existing loopback-cli. In the long term, we need to rework loopback-cli to not depend on yeoman, see https://github.com/strongloop/generator-loopback/issues/139

Another thing to consider: integration with APIC Editor, possibly via loopback-workspace.

All 6 comments

cc @bajtos @raymondfeng @ritch @superkhau @rashmihunt

@kjdelisle I've been discussing some of the CLI experience with @ritch for things that should happen soon, so +1 from me. However, I'm not sure if this should happen in the current generator/yeoman, etc.

My opinion:

  • +1 for creating a project template for loopback.next projects.
  • -1 for using yeoman, unless we are going to include loopback.next project template in the existing loopback-cli. In the long term, we need to rework loopback-cli to not depend on yeoman, see https://github.com/strongloop/generator-loopback/issues/139

Another thing to consider: integration with APIC Editor, possibly via loopback-workspace.

@kjdelisle, looks like we might need a spike to see what are the Yeoman equivalent we could possibly use for interactive command line user interfaces. Are you ok to change this as a spike?

@bajtos mentioned Inquirer in strongloop/generator-loopback#139.

cc @rashmihunt

Was this page helpful?
0 / 5 - 0 ratings